Seg Fault with fopen

From: Date: Mon, 19 Mar 2001 06:52:23 +0000
Subject: Seg Fault with fopen
Groups: php.general 
Request: Send a blank email to php-general+get-44492@lists.php.net to get a copy of this message
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); }

« previous php.general (#44492) next »