nerf wrote:
How can I execute a javascript file(test.js) from within PHP. I'm
running oscommerce and want to insert a menu created in javascript by
Sothink DHTMLMenu. Thanks in advance
You don't really execute javascript in PHP as such - PHP is executed
server-side, whereas javascript is client-side.
Echoing <script language="JavaScript" type="text/javascript"
src="http://yourserver.com/test.js"></script> will include the file for
use by the client browser.