Re: (Absolute beginner) .PHP3 and .HTM

From: Date: Mon, 16 Apr 2001 14:24:23 +0000
Subject: Re: (Absolute beginner) .PHP3 and .HTM
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48757@lists.php.net to get a copy of this message
Change the extension of hello3.htm to php3. The second one doesn't work because the web server only runs the php enginge when the file has a php extension (it depends on the server setting but usually just .php should work fine). PHP code can be embedded within HTML so basically you don't have to do everything in PHP like in your first script. Seung-woo Nam ulrichk@debitel.net wrote: > > My configuration: Win98 / Xitami / PHP3 / MySQL > PHP is installed in the path of Xitami. > > path xitami\cgi-bin\HELLO2.PHP3 > "http://localhost/cgi-bin/hello2.php3" It works! > > My bloody newbie question: > Where must I put HELLO3.HTM so that it can be run from the localhost > "http://localhost/hello3.htm" doesn't work! > > HELLO2.PHP3 > <?php > print"<html>\n<body>\n"; > echo "hello2"; > print"<body>\n<html>\n"; > ?> > > HELLO3.HTM > <html><head><title>PHP Test</title></head> > <body> > <?php echo "Hello World3<P>"; ?> > </body></html> >

« previous php.general (#48757) next »