Does PHP3 setcookie() function have a return value? AGAIN

From: Date: Sat, 21 Oct 2000 22:37:19 +0000
Subject: Does PHP3 setcookie() function have a return value? AGAIN
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-21596@lists.php.net to get a copy of this message
Hi, I have included a setcookie() function in my code which works well. As per the manual and other references the setcookie function fails if other output is sent to the browser first. I note that using @setcookie() supresses the error text, which is good, however... The setcookie() function does not seem to return an exit value so how do I check for success as in? if setcookie("Cookie") { echo "All OK"; else echo "No Good"; } Regards Grant Walters Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND Telephone: +64 4 4765175, CellPhone 025488265 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#21596) next »