Undefined Offset Error

From: Date: Tue, 02 Jul 2002 12:35:20 +0000
Subject: Undefined Offset Error
Groups: php.general 
Request: Send a blank email to php-general+get-104901@lists.php.net to get a copy of this message
Here is a piece of my code... Could someone tell me what I did wrong? I get the following errors; Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 33 Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 34 (obviously, the line numers will not be the same here) define('SCRIPT_NAME', 'InXNews'); define('SCRIPT_VERSION', 'v1.1'); define('SCRIPT_CREATOR', '<a href="mailto:ccrane@inxdesign.com">Chris Crane</a>'); define('CREATE_DATE', '05/29/02'); define('REVISED_DATE', '06/04/02'); $open = fopen("http://www.yahoo.com/index.html", "r"); $read = fread($open, 25000); fclose($open); list($StringA, $StringB)= split ("In The News", $read); list($StringC, $StringD)= split ("</td></tr></table></td></tr></table>", $StringB); list($StringE, $StringF)= split ("</td></tr></table>", $StringD); $StringE = str_replace("s/", "http://yahoo.com/s/", $StringE); $StringE = str_replace("<a ", "<a target=\"_new\" ", $StringE); // Can be changed to whatever you like or remove all together. print "<small><b>In the News</b></small>"; // Keep this line, everything else can change for the output. print "$StringE</table>"; // Ok to be suppressed. print "<small><b>Script Name:</b> " . SCRIPT_NAME . "<br><b>Version:</b> " . SCRIPT_VERSION; print "<br><b>Creator:</b> " . SCRIPT_CREATOR . "</small>"; Christopher J. Crane Network Operations Manager IKON Office Solutions 860.659.6464

« previous php.general (#104901) next »