Manipulate web content

From: Date: Wed, 04 Aug 2004 00:00:56 +0000
Subject: Manipulate web content
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192637@lists.php.net to get a copy of this message
Hi, I am trying to do some work that involves parsing through the HTML of some webpages. But, I cannot find an easy way in PHP to actually get that HTML. Say, for example, I need the HTML returned from http://www.yahoo.com/, I tried doing an fopen(), but the only way I can do it is if I use passthru, or exec and use the linux wget, then use fopen() on that file. Does anyone know if there's an easy function or way of doing it? I essentially need to download the web file, and store the contents of it in a variable to manipulate with my program. ----------------------------------------------------------------- Thank you, Richard Bewley rbewley@eq-sys.com Equinox Systems and Development Website: http://www.eq-dev.com/ Also, please look at our webhosting services, specializing in business web hosting starting from $15 per month!

« previous php.general (#192637) next »