There are several ways you can do this.
The easiest way is to include the file like this:
You can place this line wherever you need the html file included.
See the include() function on php.net for more info.
If, instead, you want to capture the html file and do something with it, you
can use the file functions listed on php.net. It might seem a little
difficult to grasp at first, but it will be very straightforward once you
get used to using these functions. Just search for "FileSystem" on php.net
and it will get you to the exact place you need to be to start learning
about how to deal with files. Here is the direct link, just in case:
http://www.php.net/manual/en/ref.filesystem.php. This site might also help
you: http://www.devshed.com. Have fun...
> -----Original Message-----
> From: Martin Johansson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] HTML page and php
> How do I get a html page into a string variable in php?
> Isnt there any function working like this:
> $homepage = getHtmlPage(c);
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php