RE : [PHP] RE : include interpreted php file
| From: | you | Date: | Sun, 01 Sep 2002 19:42:02 +0000 |
| Subject: | RE : [PHP] RE : include interpreted php file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114841@lists.php.net to get a copy of this message | ||
nope sorry...
-----Message d'origine-----
De : Chris Knipe [mailto:savage@savage.za.org]
Envoyé : samedi 31 août 2002 20:10
À : you; 'Richard Lynch'
Cc : php-general@lists.php.net
Objet : Re: [PHP] RE : include interpreted php file
fopen()
Regards,
Chris Knipe
Cell: (072) 434-7582
MegaLAN Corporate Networking Services
/-------
| This email is confidential and may contain legally privileged
information.
| If you are not the intended recipient, you must not disclose or use
| the information contained in it. If you have received this email in
error,
| please notify us immediately by return email and delete the document.
\-------
----- Original Message -----
From: "you" <kciop@ifrance.com>
To: "'Richard Lynch'" <rich@phpbootcamp.com>
Cc: <php-general@lists.php.net>
Sent: Saturday, August 31, 2002 7:44 PM
Subject: [PHP] RE : include interpreted php file
Hi,
Thanks for u help. But i just wanna include a php file in an other. But
the included file must be interpreted before including it.
Thx
kciop
-----Message d'origine-----
De : Richard Lynch [mailto:rich@phpbootcamp.com]
Envoyé : samedi 31 août 2002 02:12
À : you
Cc : php-general@lists.php.net
Objet : Re: include interpreted php file
>pb : include a php file in an other php file
>contraints : the php file must be interpreted before being included
>solution known : fsock then get the html code from the server and
include
>it...
>
>Is there an other solution (easier) to include that file?
Not real sure if you *want* the PHP file interpreted or not, but if not,
try
this:
<?php
$html = file("http://example.com/whatever.htm") or
die("Could not load
remote HTML");
echo implode('', $html);
?>
You may (or may not) also want to use http://php.net/htmlentities to
show
the actual HTML source instead of making it a part of your web design
layout
HTML...
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php