Re: Displaying PHP-File
| From: | Martin Thoma | Date: | Thu, 10 Aug 2000 08:03:44 +0000 |
| Subject: | Re: Displaying PHP-File | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11084@lists.php.net to get a copy of this message | ||
> > <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.
Regards
Martin