"Jack" <[EMAIL PROTECTED]> wrote in message
021501c12508$abb1b200$[EMAIL PROTECTED]">news:021501c12508$abb1b200$[EMAIL PROTECTED]...
> 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>




-- 
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