Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

Re: [PHP] php in html-- what gives? From: Ben Bleything (bleythbe <email protected>)
Date: 07/24/01

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 <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 '<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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>