I have never used E_ALL, still I don't have lots of bugs in my PHP apps, and
when I get one, I track it down in secs anyway... Let me show you an example
of how my code looks like:

$exp=preg_replace(array("#(\+|\-)([a-z])#i","#(\+|\-)
#"),array("\\11\\2","\\1"),$exp);
echo $exp," = ";$s=split(" ",$exp);
for($i=0;$i<count($s);$i++){
$t=preg_replace("#(\+|\*|\-|/)?([0-9]+)([a-z]*)#ie","('\\3'?'\\3':'@').':::'
.chval('\\1','\\2',('\\3'),'\\3'?\$v['\\3']:\$v['@']);",$s[$i]);
$tmp=split(":{3}",$t);$v[$tmp[0]]=$tmp[1];
}$c=0;while(list($var,$val)=each($v))
{if($var=="@")$var="";
if($c)
{echo (($val>0)?"+$val":$val).$var;}
else{
echo $val.$var;
$c++;
}}

I'm at the age of 14... If I got no problem with tracking down bugs, not
many ppl can have...

About register_globals... I guess you're right... But still, how many things
change like that? I made one script in my entire life that wasn't exactly
what I expected it to be (was going to be a test for how to open and read
files, became an entire screenshots script with upload and descriptions
based on txt files, lol)... That was the first script I ever made... All the
others have followed their orginal purpose to 100%... And it's like the
manual states, turning on register_globals doesn't make all scripts safe...
Although, you didn't really say that neither but... Also, if he already have
the book, chances are that he bought it before 4.2.0...

Anyway, today is the last day I'm here to discuss this (going on a camp for
three weeks, no comp there)... So, post quickly or send me a mail in cc: or
something if you are going to reply, please...

// DvDmanDT
"Per Lundberg" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to