Here's a function I'm trying to use to execute a php and then read the html.
I've tried the actual hostname instead of localhost but that's not working
either.

It's causing a segmentation fault. I'm running linux apache php 4.0.4

Any thoughts?

function get_web_page_desc($filename)
{
 $uri = 'http://localhost'.get_web_page_uri($filename);

 $fp   = fopen($uri, 'r');
 $contents  = fread($fp, 360000 );

    // do stuff with contents....

 return strip_tags($para);
}


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