You are here: Re: [PHP] odd behavior « PHP « IT news, forums, messages
Re: [PHP] odd behavior

Posted by tg-php on 01/19/06 20:15

Ok.. now maybe a constructive answer :)

If I recall, PHP on Windows will look for PHP.INI in your Windows system folder (in this case C:\WINNT) first, then in the folder where PHP is installed. Deleting the PHP.INI under WINNT should be fine (sounds like removing that makes things work ok for you). I'd think phpinfo() would show that it's in C:\PHP (or whereever) in that case.

If for some reason you need to use PHP.INI in C:\WINNT then let me ask... if you go to (no index.php) on it, is that when you get the 404? Then you say you refresh and it works fine? (does it still read or does it read before you hit refresh?)

If you get 404, it's the web server telling the browser it can't find the page. So it shouldn't be a permissions issue or anything with PHP.INI (although I'd check to make sure... IIS may not have permissions to read things from C:\WINNT for security reasons... by default at least... or could be that owner/group is now "jay" or "users" instead of "system" or whatever it needs to be for IIS to have access to the PHP.INI file.. I forget the exact permissions).

If removing C:\WINNT\PHP.INI doesn't work.. or isn't an option... and permissions look ok... then I'm not sure. But drop a line back when you've messed around with it some more and maybe we can figure it out.


= = = Original message = = =

When I expire you will find my hands wrapped tightly around the throat of a
Windows network administrator.

I had PHP installed on a web server, and all was working OK, save for one
small thing. phpinfo() indicated that the path to the php.ini was c:\WINNT,
which it was not. So I copy the file from the c:\php directory to the
c:\winnt directory and restart IIS. Now, when I click a link to take me to a
directory with an index.php I get a 404, not found error. If I refresh the
page shows up just fine. So I remove the ini page, start and stop the IIS
server, click the link, and no problem...the page is delivered just fine.

Has anyone experienced this behavior before, and how do I fix that damned
path to the ini? TIA!

Sent by ePrompter, the premier email notification software.
Free download at



[Reply to this message]

Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация