SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Should this me noted in a FAQ for Windows installs? Harry, Kevin?

  2. #27
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Parry Sound, ON
    Posts
    725
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put the code somewhere before the first time you need to use $_SERVER['DOCUMENT_ROOT']. Top of the file would be OK.

    Technically it's not Windows, but IIS that does this. I'm pretty sure that var is there on Windows running Apache.

  3. #28
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes i am running Apache on WinXP and $_SERVER['DOCUMENT_ROOT'] is there. i think he would better be off with creating a function and putting in a file like config.php that he includes in every file and where evr he needs this var he would just call the function. i am just thinking but not sure whether that'd be practical

  4. #29
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That brings up a quandry that I can't comment on. While I am developing this new site I am traying at the same time to package the coding so I can drop into another site. Would the config.php be better serverd if this is taking place JR or HC?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •