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.


"Jack" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
02ff01c1259a$ebec2e80$[EMAIL PROTECTED]">news:02ff01c1259a$ebec2e80$[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?

<script language='JavaScript' src='/include/adjs.php></script>
"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