Re: Displaying PHP-File

From: Date: Thu, 10 Aug 2000 08:46:14 +0000
Subject: Re: Displaying PHP-File
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-11093@lists.php.net to get a copy of this message
> 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. .. sorry, I think you didn't quite get the point. The page with HTML and php-code is called "myform.php4" and works perfectly when calling it directly (for example typing "myform.php4 into the url-field of the browser). Now I want to do the following: Antoher script is called, and when this script detects an error, "myform.php4" should be read-in as a file, modified (for example displaying "There is an error in field ...") and then printed out. When printing out the page, the HTML-Code is shown, but the form is gone because the php-part is not execute. How can I avoid this ? (if possible without using redirection because I got a lot of redirections in my code and this one redirection would make it much more complicated). Regards Martin

« previous php.general (#11093) next »