you should use include() function instead of the javascript style includes

refer to the php manual for more details

best regards

Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India

----- Original Message ----- 
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 2:58 AM
Subject: [PHP] PHP scripts in HTML


> I would like to know if there is a way to accomplish the following:
> In my HTML file, I have the following:
> 
> <script language="php" src="/phpscript/testscript.php"></script>
> 
> In the testscript.php file, I have:
> 
> <?PHP
> echo "Hello Don";
> echo "What is up?";
> ?>
> 
> When I run the html file, I do not see the PHP code but if  I place the
> above code directly in my HTML file, it displays.
> 
> 
> -- 
> 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]


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