php in html-- what gives?

From: Date: Tue, 24 Jul 2001 19:33:36 +0000
Subject: php in html-- what gives?
Groups: php.general 
Request: Send a blank email to php-general+get-59410@lists.php.net to get a copy of this message
I'm trying to test the following: I have created a simple cookie script: <?php if (!IsSet($session)) { $cookievalue = md5(uniqid(rand())); setcookie('session', $cookievalue, mktime (8,0,0,7,31,2001)); } else { mail("name@server.com", "cookie", $session); } ?> I have placed it in an html page, at the very top (no spaces, lines, etc.), and have left no lines/spaces between the '?>' and '<html>' tags. Yet the script does not execute (nor does it return an error of any kind). What gives?!?! __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

« previous php.general (#59410) next »