Mollien dot Net is IPv6 Enabled!


   My About.Me page
   View my profile on LinkedIn
   Follow me on Twitter
    View my Facebook profile   View my Hyves profile   View my YouTube favorites and uploads

      01010011
      01100101
      01110010
      01101001
      01101111
      01110101
      01110011
      01000111
      01100101
      01100101
      01101011

IPv6 Certification Badge for Cas Mollien
 


 
PHP under IIS
 
Solving the missing DOCUMENT_ROOT variable
 
When installing PHP on Windows/IIS (instead of Apache, which I prefer), some PHP variables are missing. One that I miss most is the $_SERVER["DOCUMENT_ROOT"] variable.

The problem here is that Windows implementations of PHP do not define the $DOCUMENT_ROOT variable, even with register_globals = On. The way that I solved the problem was to edit php.ini and edit the following line:


I then created a new windows.php file that looks like this:


Now all you have to do is restart IIS and you should be good to go.
 
Found this script/snippet useful? Please consider buying me a beer - or something else useful..
 

 
Terug naar Mollien Dot Net

Terug naar Mollien Dot Net

Terug naar Mollien Dot Net
Total Hits: 1
Unique Visitors: 1
Page Impressions : 1
Remote address: 54.81.210.99