large external script to include in many pages

From: Date: Mon, 13 Aug 2001 19:53:26 +0000
Subject: large external script to include in many pages
Groups: php.general 
Request: Send a blank email to php-general+get-62491@lists.php.net to get a copy of this message
Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, "" . "" . "" . ""); and calling the script1 name in my PHP pages... this will be very, very long, is there a another way to create a kind of variable ($myscript == 600 lines of the DHTML) that I could simply call out in all my pages. Something like a <script src="../myscript.js"> The define approach doesn't seem to be very appropriate for a very long text inclusion... Thanks! -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Marc Andre Paquin

« previous php.general (#62491) next »