This is a discussion on PHP Scripts to run in another directory with IIS within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I would like to have PHP for windows run in another directory than c:\inetpub\wwwroot. I have tride changeing ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I would like to have PHP for windows run in another directory than
c:\inetpub\wwwroot. I have tride changeing parameters in php.ini in my c:\php directory. But nothing changes. When I run the phpinfo() I always get Configuration File (php.ini) Path as c:\windows. But I do not have the php.ini file there. Is there something I am doing wrong or is it a bug. I tried renameing the php.ini file and reseting the IIS and believe it or not my scripts still work in c:\inetpub\wwwroot. |
|
|||
|
On Sep 9, 3:18 am, "Jammer677" <richard_perrea...@hotmail.com> wrote:
> I would like to have PHP for windows run in another directory than > c:\inetpub\wwwroot. I have tride changeing parameters in php.ini in my > c:\php directory. But nothing changes. When I run the phpinfo() I always get > Configuration File (php.ini) Path as c:\windows. But I do not have the > php.ini file there. Is there something I am doing wrong or is it a bug. > > I tried renameing the php.ini file and reseting the IIS and believe it or > not my scripts still work in c:\inetpub\wwwroot. either is it or is not in c:\windows, put junk in the php.ini file you are adjusting, does php fail? try copying a php.ini into c:\windows does it report there is one already? you can serve php from any directory, but you will probably need to adjust your SERVER settings because the document root is server specific, if you were running apache it would be a text file change, IIS its just a few right clicks. |
|
|||
|
I am sorry I made a mistake. When I placed my test.php file in another
directory it worked. This file was a simple phpinfo() script. The real problem is with a counter, email script I tried to get to work. At first it gave me a permissions error and I solved it by changing the security settings on that directory. But I still can't get it to work. In reality it is an image file that runs a php script. I know it works because it works on another server. It just doesn't work on my local machine. I get this error "The image file cannot be displayed, because it contains errors". I have tried everything but nothing works. I looked everywhere on the net but I can't find anything. But as I said in the previous message, I still have a problem with my php.ini. "Jammer677" <richard_perreault@hotmail.com> wrote in message news:qJIEi.27139$S86.426247@weber.videotron.net... >I would like to have PHP for windows run in another directory than >c:\inetpub\wwwroot. I have tride changeing parameters in php.ini in my >c:\php directory. But nothing changes. When I run the phpinfo() I always >get Configuration File (php.ini) Path as c:\windows. But I do not have the >php.ini file there. Is there something I am doing wrong or is it a bug. > > I tried renameing the php.ini file and reseting the IIS and believe it or > not my scripts still work in c:\inetpub\wwwroot. |