ID: 7971
Updated by: jmoore
Old-Status: Open
Status: Analyzed
Bug Type: Sockets related
PHP Version: 4.0.3pl1
Assigned To: 

the fopen wrappers do not currently handle redirects (unless this has been correct) 
use and it will work.

- James

Previous Comments:

[2000-11-25 15:46:41] [EMAIL PROTECTED]
**This is the code **
// Headlines Grabber by Neil Moomey,
// You are free to use this code as you wish.
// Make sure you get permission from any web sites you grab code from.
// You may want to write the headlines to a file on your server to speed things up.
// Grab source code from a file or web site
echo "The news interface is down for maintenance.";
// Read each line and add to $myLine
// Extract everything between start and end.  You need to include these lines
//in the headlines or pick some unique  substring in the html to mark the start 
//and end of the news.
$start="<!---START OF HEADLINES--->";
$end="<!---END OF HEADLINES--->";
$start_position=strpos($myLine, $start);
$end_position=strpos($myLine, $end)+strlen($end);
$myLine=substr($myLine, $start_position, $length);
// Display HTML
echo $myLine;

**end of code**

**error message**
Warning: fopen("","r") - Undefined error: 0 in 
/var/apache/htdocs/news/parse_site4.php on line 8
The news interface is down for maintenance.
**end of error message**


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
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