Re: to include php file into html file
| From: | Robert Hennig | Date: | Wed, 15 Aug 2001 09:24:03 +0000 |
| Subject: | Re: to include php file into html file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62799@lists.php.net to get a copy of this message | ||
Hi Jack!
There you must have missunderstod something. PHP is not JavaScript.
PHP is only interpreted if used in a file with the depending suffix. (php3,
php, asp.....) If you want to include a php-file into another file this
destination-file also has to be a php-file.
JavaScript can´t use PHP. To include one php-file into another use
"include()" or "requires()". Examples and hints to this functions could be
found in the PHP-Manual.
Robert
"Jack" <jacky@activelifestyle.com> schrieb im Newsbeitrag
news:02ff01c1259a$ebec2e80$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>
*******************
Jack
jacky@activelifestyle.com
"Love your enemies, it will drive them nuts"