Try

<?php  include "/include/adjs.php"; ?>

in your html file to include some php code in there


[1]Javascript is a rather sh*tty client side language, it doesn't parse php
very well.  
[2]<script language='JavaScript' src='/include/adjs.php></script>
                                                 ^^^^^^^^^^^^^^^^^^^^^
Warning unterminated tag...


Cheers,

Lawrence.

-----Original Message-----
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: August 15, 2001 11:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] to include php file into html file


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
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to