PHP Scripts to run in another directory with IIS

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-09-2007
Jammer677
 
Posts: n/a
Default PHP Scripts to run in another directory with IIS

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.

Reply With Quote
  #2 (permalink)  
Old 09-09-2007
shimmyshack
 
Posts: n/a
Default Re: PHP Scripts to run in another directory with IIS

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.

Reply With Quote
  #3 (permalink)  
Old 09-13-2007
Jammer677
 
Posts: n/a
Default Re: PHP Scripts to run in another directory with IIS

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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0