Sagewire Logo

PHP Scripts to run in another directory with IIS

3 Message(s) by 2 Author(s) originally posted in php language


From: Jammer677 Date:   Saturday, September 08, 2007
I'd 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 don't 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.


From: shimmyshack Date:   Sunday, September 09, 2007
wrote in message:
I'd 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 don't 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 isn't 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'll probably need to
adjust your SERVER settings because the document root is server
specific, if you were running apache it'd be a text file change,
IIS its just a few right clicks.


From: Jammer677 Date:   Wednesday, September 12, 2007
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 not 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 does not 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 not
find anything. But as I said in the previous message, I still have a problem
with my php.ini.

I'd 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 don't 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.







Next Message: Redirection based on Query string


Blogs related to PHP Scripts to run in another directory with IIS

Good morning all We recently upgraded from MySQL 5022-log to MySQL ...
run 'locate my.cnf'. I have a really big problem. A PHP include at the bottom of my page seems to be reverting all the MySQL UPDATE's I have done on the script in question. But the file PHP is including is a file which contains NO PHP...

i have 3 php files onephp twophp threephp onephp form posts a ...
my php code is doing a system call which calls a shell script. my arguments need to have quotes around them however I think php is tripping them and hence my shell script doesn't run in php since the args are corrupted. ...

i want create a variable name with the same value of another ...
how do i send the html page before the php script finishes? we need more code,. AlexC_ http://pastebin.ca/656052. and still allow the php script to run afterwards so the page then refreshes again. " . $GET['answer']; it works ...

im playing around with php to try to learn it my first little ...
if you want to actually run it, you just need a "template" file alongside index.php and a "content" directory. the human braing is wysiwyg enough for me. I am happy reading it, thanks. Looks bloated. that's cool ...

hi i have a little problem i export a web page html to a word ...
Ive been using a commercial php script and have been including some custom php files. Anyway, i just upgraded it and now my files arent working anymore because it cant find the files. I was including a file as so: include = '. ...

hi ive installed a server apache on my linux distro added php but ...
I need to send a remote php script a command from another php webhosting script. While it isn't essential that nobody is able to execute that command, I would like to know what would be the best option for me to send that command ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional