Re: [PHP] php in html-- what gives?

2001-07-24 Thread Ben Bleything

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:
>
>  if (!IsSet($session)) {
> $cookievalue = md5(uniqid(rand()));
> setcookie('session', $cookievalue, mktime
> (8,0,0,7,31,2001));
> } else {
> mail("[EMAIL PROTECTED]", "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 '' 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php in html-- what gives?

2001-07-24 Thread CGI GUY

I'm trying to test the following:

I have created a simple cookie script:



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 '' 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]