Re: why doesn't this work ?

From: Date: Sat, 17 Apr 2004 17:38:35 +0000
Subject: Re: why doesn't this work ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-183725@lists.php.net to get a copy of this message
How do I do that? I don't have a webserver, it is hosted by a hosting company. "John W. Holmes" <holmes072000@charter.net> wrote in message news:40816A01.6020209@charter.net... > Pooya Eslami wrote: > > If I put the following script in a .php file it would work but if I put it > > in an .html file doesn't work, why? script tag is only used in .html file. > > You web server determines whether or not to look for PHP in a file based > upon its extension. You must set up your web server to look for PHP code > in .html files. > > -- > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ > > php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#183725) next »