Re: to include php file into html page
| From: | Evan Nemerson | Date: | Tue, 14 Aug 2001 10:02:32 +0000 |
| Subject: | Re: to include php file into html page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62606@lists.php.net to get a copy of this message | ||
The language is php, not javascript. Plus I'm not sure if you can use an src
attribute, but you can use the include or require functions...
http://php.net/manual/en/language.basic-syntax.php
On Tuesday 14 August 2001 14:32, you wrote:
> Hi people
> I have tried to include php file into html page using the syntax below and
> it said syntax error at this part when the page is loaded. What is wrong
> with calling php file this way? Or is there any other way to call php file
> from html page?
>
> *******************
> <html>
> <body>
> <script language='JavaScript' src='/include/adjs.php></script>
> </body>
> </html>
> *******************
>
> Jack
> jacky@activelifestyle.com
> "Love your enemies, it will drive them nuts"