RE: [PHP] HTML page and php

From: Date: Thu, 21 Nov 2002 23:01:34 +0000
Subject: RE: [PHP] HTML page and php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125530@lists.php.net to get a copy of this message
There are several ways you can do this. The easiest way is to include the file like this: include("path_for_html_file"); 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... - Nilaab > -----Original Message----- > From: Martin Johansson [mailto:d99majo@swipnet.se] > Sent: Thursday, November 21, 2002 10:16 AM > To: php-general@lists.php.net > 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); > > /Newbie > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#125530) next »