I have a script that was working fine in the past. Now it dies. but here is the strange thing:
It dies at various different points depending on what I do with the echo statements. For example if I have this:
Code: Select all
print "<br>url: ";
print $url;If i have this:
Code: Select all
print "<br>url: ".$url;When I say it dies later on, I mean it dies on some other statement further down. For example, in this line, it dies half way through:
Code: Select all
if($value!="not used")if($hidden!="")$update=$update.',`hidden`=\''.$hidden.'\'';Code: Select all
if($value!="not used"){
echo "if 1<br>\n";
if($hidden!=""){
echo "if 2, ".strlen($update)."<br>\n";
$update.="";
echo "if 2a<br>\n";
$update.=",";
echo "if 2a ,<br>\n";
$update.="h";
echo "if 2a h<br>\n";
$update.="i";
echo "if 2a i<br>\n";
$update.="d";
echo "if 2a d<br>\n";
$update.="d";
echo "if 2a d<br>\n";
$update.="e";
echo "if 2a e<br>\n";
$update.="n";
echo "if 2b<br>\n";
$update.='=\'';
echo "if 2c<br>\n";
$update.=$hidden.'\'';
echo "if 2d<br>\n";
}
echo "if 1b<br>\n";
}Code: Select all
print_r($tags);
print "hello";
phpinfo();so - php 5.2.1 on apache/linux
in total it is a very simple script, nothing complicated, dies at around line 95.
Any ideas?
Thanks
Noel