[01-Apr-2002 02:45:41] PHP Warning: Failed opening
'/apache/htdocs/php.php' for inclusion (include_path='c:\php4\pear') in
Unknown on line 0
I have put up online copies of my httpd.conf and php.ini files up at:
http://one.com.pk/tmp/httpd.conf.txt
http://one.com.pk/tmp/php.ini
I'm on a Win2K machine, running PHP v4.1.2. I was running 4.0.6 and then
ran the windows installer version of 4.1.2 but when that failed I got
the zipped version, and installed fresh in c:\php
I'm running Apache 1.3.42 and even installed the latest MDA Components
(2.7 RTM)
The error occurs even on a simple php page with the following: <?
phpinfo() ?> ( http://one.com.pk/php.php )
The page appears blank and logs an error to the log file as pasted on
top of this mail. I have thus far tried all variations in the install
guide, copied php4ts and others from php/dll into the system32 folder,
copied the php.ini in system32, etc. I don’t understand why it's giving
me the same error even after a fresh install (I had the Zend Scripting
Engine installed before installing 4.1.2 but that shouldn't have left
any legacy files either because I complete remoed the php folder and
installed over... my guess is it has something to do with apache)
tia,
Aleem
Hope solving it a.s.a.p
"Aleem" <aleem....@utoronto.ca> wrote in message
news:000401c1d980$2ca4e590$886c6518@Raptor...
> I am getting the wierdest PHP error. I couldn't find anything on the web
> regarding this error. The exact error is as follows:
>
> [01-Apr-2002 02:45:41] PHP Warning: Failed opening
> '/apache/htdocs/php.php' for inclusion (include_path='c:\php4\pear') in
> Unknown on line 0
*snip*
I had the same problem when I upgraded to 4.1.2. You just need to change
the setting of "include_path" to search the current directory first. So,
for example:
include_path="."
Or, if you need to use the PEAR repository:
include_path=".;c:\php\pear"
(replace c:\php with your PHP path)
--
Ryan Grove
ry...@wonko.com
http://wonko.com/
copy php.ini to winnt\system32 and restart apache
but no change i still gett the error message that include path is php4/pear
and the included file doesn't exits
can anyone help?
--
martina.
"Ryan Grove" <ry...@wonko.com> wrote in message
news:Pine.WNT.4.44.0204011318230.1668-100000@nooch...
can you successfully run a "<?php phpinfo() ?>" file? in the results, it
will tell you were it is expecting your php.ini file.
---------
I actually copy php.ini to winnt, winnt/system and winnt/system32 always.
it seems winnt in phpinfo
but problem still exists.
but the interesting thing is that the inclue_path problem exists in only one
work in my server. I mean there are several web appz. at my server but only
of them gives the error. although most of them uses the include(""); none of
them generates error besides one.
--
martina.
"Martinahingis" <ra...@ug.bcc.bilkent.edu.tr> wrote in message
news:2002040123480...@pb1.pair.com...