foreach in Apache

From: Date: Tue, 03 Apr 2001 06:53:54 +0000
Subject: foreach in Apache
Groups: php.general 
Request: Send a blank email to php-general+get-46775@lists.php.net to get a copy of this message
foreach doesn't work in Linux-Apache and OK in Win with IIS: Fatal error: Call to unsupported or undefined function foreach() in ... My code: foreach ($lineas as $key => $value) { if (strpos($value,";".$idf.";")>0) { print "<tr bgcolor=$colorfila>"; $fila=split(";",$value); foreach ($fila as $celda => $c) print "<td>".$c."</td>"; print "</tr>"; $contador++; if ($colorfila=="eeeeee"){ $colorfila="ffffff";} else {$colorfila="eeeeee";} }; } I need a solution please! Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com

« previous php.general (#46775) next »