Re: why doesn't this work ?

From: Date: Sat, 17 Apr 2004 18:52:38 +0000
Subject: Re: why doesn't this work ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-183737@lists.php.net to get a copy of this message
I took out the scrip tags and put in <?php in the beginning and ?> at the end, but it returns this: $file "; } } closedir($handle); } echo " "; ?> Any ideas how to fix this? "John W. Holmes" <holmes072000@charter.net> wrote in message news:408176E1.3000702@charter.net... > Daniel Clark wrote: > > > I should have also said: > > > > Because it's missing the <?php and ?> tags, the > > web server isn't going to run the code, but pass > > it back to the client browser. > > You are right, but not for the reason you think. <script language="php"> > is a valid way of starting PHP mode. > > http://us2.php.net/manual/en/language.basic-syntax.php > > Because the file extension is .html, though, the PHP engine will not > parse any of the PHP in the file, though. > > -- > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ > > php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#183737) next »