Re: Displaying PHP-File

From: Date: Thu, 10 Aug 2000 08:34:24 +0000
Subject: Re: Displaying PHP-File
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-11090@lists.php.net to get a copy of this message
Martin Thoma wrote: > > > > <SCRIPT LANGUAGE="PHP"> > > > include "ShowForm.php"; > > > </SCRIPT> > > > > Just qurious, why not use "<?php" and "?>"? > Okay, but this doesn't work, too. > > > > But when reading-in the file above and printing it, the PHP-Section is > > > not executed and the form is not displayed. > > > > "include" needs parantheses (sp?): > > > > include("ShowForm.php"); > > > > (strangely enough, the first example at > > "http://www.php.net/manual/function.include.php" > > has none... weird). > > > > Also note that ShowForm.php will start out in HTML mode. > > .. I think I didn't quite get the point: How do I make the PHP-Script in > the HTML-Page work when printing it ? It does work when calling the page > directly of course. The only way I can think of is to make php parse _all_ your web pages by adding .html to your server configuration... In apache I think you add it to the line where you link the x-http-php mine types to .php/.php.

« previous php.general (#11090) next »