PEAR include path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
voidstate
Forum Newbie
Posts: 8
Joined: Wed Jan 22, 2003 8:01 am

PEAR include path

Post by voidstate »

Hi

I'm trying to use pear for the first time. I'm using PHP 4.2 and IIs.

The problem I'm having is in setting the include path.

with only

Code: Select all

<body>
<?
include('Mail.php');
?>
</body>
I get:

Warning: Failed opening 'Mail.php' for inclusion (include_path='.;c:\php4\pear') in D:\Websites\php\mailinglist\test2.php on line 14

even though I have changed the include_path in php.ini to:

.;c:\php\pear

, when i do phpinfo() though it shows up as:

.;c:\php4\pear

despite having changed it.

Do you have nay idea what I'm doing wrong?

Ferg
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Have you restarted the server? You need to do that when you make changes to your php.ini file.
voidstate
Forum Newbie
Posts: 8
Joined: Wed Jan 22, 2003 8:01 am

Post by voidstate »

Even when running PHP as a CGI? I was under the impression it was opened afresh each time it is called.

Is there some way I can avoid restarting the server? The systems admin is away and I'd rather not wait a week...

:?

Ferg
Post Reply