Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error - (include_path='c:\php4\pear') in Unknown on line 0

0 views
Skip to first unread message

Aleem

unread,
Apr 1, 2002, 8:21:46 AM4/1/02
to php-w...@lists.php.net
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

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

Martinahingis

unread,
Apr 1, 2002, 3:33:08 PM4/1/02
to php-w...@lists.php.net
I got the same problem today. I upgraded my php 4.1.1 to 4.1.2 a couple days
ago. But the error message come out today and only one of several apps. on
my server! I don't use the folder c:\php4. But it seems that some setting
changed the include dir? How can this occur! There's no explanation in my
mind.

Hope solving it a.s.a.p

"Aleem" <aleem....@utoronto.ca> wrote in message
news:000401c1d980$2ca4e590$886c6518@Raptor...

Ryan Grove

unread,
Apr 1, 2002, 4:21:15 PM4/1/02
to php-w...@lists.php.net
On Mon, 1 Apr 2002, Aleem wrote:

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

Martinahingis

unread,
Apr 1, 2002, 6:49:38 PM4/1/02
to php-w...@lists.php.net
I tried to change my php.ini
with
include_path="."

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

Martinahingis

unread,
Apr 1, 2002, 7:03:42 PM4/1/02
to php-w...@lists.php.net
one says me that
---------
for me, my php.ini has to be in winnt\ directory, not winnt\system32.

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

0 new messages