-----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:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 3:53 PM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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


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