Hallo!
I have problem with PEAR on my serwer and DA. I need to install to use NET_SMTP and Mail function.
Info about my system (Debian ETCH):
zeus:~# php -v
PHP 5.2.8 (cli) (built: Jan 20 2009 20:49:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
zeus:~# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
Mail 1.1.14 stable
Net_SMTP 1.3.2 stable
Net_Socket 1.0.9 stable
PEAR 1.7.2 stable
Structures_Graph 1.0.2 stable
Pear ony work on script from command line example:
php test.php <- works fine
but from the web i have the following error:
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in /home/.../form_submit.php on line 8
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/local/lib/php') in /home/.../form_submit.php on line 8
I don't know where is the problem. Should I add someextra line in php.ini?
Thanks for help.
I have problem with PEAR on my serwer and DA. I need to install to use NET_SMTP and Mail function.
Info about my system (Debian ETCH):
zeus:~# php -v
PHP 5.2.8 (cli) (built: Jan 20 2009 20:49:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
zeus:~# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
Mail 1.1.14 stable
Net_SMTP 1.3.2 stable
Net_Socket 1.0.9 stable
PEAR 1.7.2 stable
Structures_Graph 1.0.2 stable
Pear ony work on script from command line example:
php test.php <- works fine
but from the web i have the following error:
Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in /home/.../form_submit.php on line 8
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/local/lib/php') in /home/.../form_submit.php on line 8
I don't know where is the problem. Should I add someextra line in php.ini?
Thanks for help.
Last edited: