[PHP] Please help, problem with set_ini

2004-06-02 Thread Warren Gardner
Hi,

I'm having a problem with a set_ini command... I need to be able to set
the -f parameter (to set the originating address on my server). I am getting
a false response code when I run the following command:

$Result=ini_get(sendmail_path),
/usr/sbin/sendmail -t -f.$DataUserInfo['OriginatingEmail']);

How can I set this parameter at runtime, or are there any other alternatives

Warren

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Please help, problem with set_ini

2004-06-02 Thread Matt Matijevich
[snip]
I'm having a problem with a set_ini command... I need to be able to
set
the -f parameter (to set the originating address on my server). I am
getting
a false response code when I run the following command:
[/snip]

looks like sendmail_path has to be set in http.conf or php.ini

http://www.php.net/ini_set

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Please help, problem with set_ini

2004-06-02 Thread Marek Kilimajer
Warren Gardner wrote:
Hi,
I'm having a problem with a set_ini command... I need to be able to set
the -f parameter (to set the originating address on my server). I am getting
a false response code when I run the following command:
$Result=ini_get(sendmail_path),
/usr/sbin/sendmail -t -f.$DataUserInfo['OriginatingEmail']);
How can I set this parameter at runtime, or are there any other alternatives
Warren
False response error? You mean parse error. It should be
ini_set(sendmail_path, /usr/sbin/sendmail -t 
-f.$DataUserInfo['OriginatingEmail']);

But that will not work, as sendmail_path is PHP_INI_SYSTEM - can be set 
only in php.ini or httpd.conf

You can use mail()'s fifth parameter if you are not under safe mode. Or 
connect directly to port 25 using any of the smtp classes.

HTH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php