Re: PHP scripts in HTML

From: Date: Thu, 15 Feb 2001 06:12:26 +0000
Subject: Re: PHP scripts in HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39842@lists.php.net to get a copy of this message
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" <don@lclcan.com> To: "php list" <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#39842) next »