RE: [PHP] large external script to include in many pages
| From: | scott [gts] | Date: | Mon, 13 Aug 2001 19:59:50 +0000 |
| Subject: | RE: [PHP] large external script to include in many pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62494@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
here docs also work good for big blocks of text
(although interpolation will occur, which you might
not want)
$mytext = <<<EOT
blah blah blah
EOT;
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.hered
oc
> -----Original Message-----
> From: Web Manager [mailto:web@inter-resa.com]
> Sent: Monday, August 13, 2001 3:53 PM
> To: php-general@lists.php.net
> Subject: [PHP] large external script to include in many pages
>
>
> 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
>
> --
> 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
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3gxtsaXTGgZdrSUEQIzHQCg1Ivtu/+SNFKuirQTcWXPZnVIPS4An30v
1nznfGe0KiMu3y/kvg70v82k
=Lmgl
-----END PGP SIGNATURE-----