Re: to include php file into html page
| From: | Hugh Bothwell | Date: | Tue, 14 Aug 2001 15:13:50 +0000 |
| Subject: | Re: to include php file into html page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62651@lists.php.net to get a copy of this message | ||
"Jack" <jacky@activelifestyle.com> wrote in message
news:021501c12508$abb1b200$6400a8c0@activelifestyle.com...
> 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>
> *******************
This will run the php script, then try to interpret the
result as JavaScript... which is exciting, but probably
not what you had in mind.
Why not try the plain old boring method,
<html>
<body>
<?php
include('/include/adjs.php');
?>
</body>
</html>