Page 1 of 1

PEAR include path

Posted: Wed Jan 22, 2003 8:01 am
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

Posted: Wed Jan 22, 2003 8:58 am
by jason
Have you restarted the server? You need to do that when you make changes to your php.ini file.

Posted: Wed Jan 22, 2003 9:28 am
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