Re: Displaying PHP-File

From: Date: Thu, 10 Aug 2000 09:19:09 +0000
Subject: Re: Displaying PHP-File
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-11098@lists.php.net to get a copy of this message
Brian Clark wrote: > > Martin Thoma wrote: > > > > What version of PHP are you running? Are you pages showing the actual code > > > in your browser or is it just a blank page? > > > >When looking at the source-code AFTER printing it out, it shows exactly > >the file with the "include" like its on my harddisc without changing the > >php-section. It shows: > > > >...myHTMLCode <?PHP include ?> ...moreHTMLCode > > <?PHP probably should be <?php > > <?PHP works fine for me, but who knows on Win32. > > Other than that.. > > Did you restart Apache after you installed PHP? If it's showing <?php > include('blah'); ?> when you view source, then Apache doesn't know anything > about your PHP installation. > .. 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 other script detects an error, "myform.php4" should be read-in as a file, modified (for example displaying "There is an error in field ..." somewhere) and then be 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 (#11098) next »