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

Posted by Jay Blanchard on 01/19/06 20:31

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.

c:\php is in the path statement, but it does not show it as being there when
I remove it from c:\winnt

If for some reason you need to use PHP.INI in C:\WINNT then let me ask...

Changes in php.ini are not reflected in phpinfo() after an IIS restart
(cache cleared). For instance, the extensions folder is c:\php\extensions,
the ini reports c:\php4

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?)

Yes.It still reads before and after 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).

I'll check it.

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.



[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

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