Re: php in html-- what gives?

From: Date: Tue, 24 Jul 2001 20:28:46 +0000
Subject: Re: php in html-- what gives?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59429@lists.php.net to get a copy of this message
Put it in a .php file. Your webserver probably doesn't interpret PHP in HTML files (as is proper). If it MUST be in a HTML file, you'll have to set up your webserver to interpret php in html files... that process depends on your webserver. Ben On Tue, 24 Jul 2001, CGI GUY wrote: > 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/ > > -- > 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 (#59429) next »