Re: Beaten!

From: Date: Wed, 16 Apr 2003 17:28:20 +0000
Subject: Re: Beaten!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-144148@lists.php.net to get a copy of this message
Doesn't make a difference. I escaped all of the "'s everywhere in the entire class (more than 65kb file!) and it is still doing it :( Exactly the same error, same line, the works. -- me ----- Original Message ----- From: "RIVES Sergio SOFRECOM" <sergio.rives@sofrecom.com> To: "Jonathan Pitcher" <jpitcher@cfedc.com> Cc: "Chris Knipe" <savage@savage.za.org>; <php-general@lists.php.net> Sent: Wednesday, April 16, 2003 5:22 PM Subject: Re: [PHP] Beaten! > Hi, > > I think that your problem is there : > > $result .= '<font color="red">Error: bad MX name ' > > try this : > > $result .= '<font color=\"red\">Error: bad MX name ' > > > HTH > > Sergio > > > > Jonathan Pitcher a écrit : > > > Chris, I can't find an error with your code. > > > > Here is what I did. > > > > I copied your partial function and then closed all the open {'s and it > > can with out a parse error. > > > > See what I mean > > > > Function AddMXRecord($mx,$pref,$ttl) > > { > > global $db; > > $result = ''; > > $i = 0; > > while(list($key,$value) = each($mx)) > > { > > if($value != "") > > { > > if(!(checkDomain($value) || checkName($value))) > > { > > $result .= '<font color="red">Error: bad MX name ' . > > stripslashes($value) . '</font><br>\n'; > > $this->error = "Data error"; > > } > > else > > { > > > > } > > > > } > > } > > } > > > > That ran without a parse error. > > > > I would check your brackets or copy the entire function into an email. > > > > Jonathan > > > > On Wednesday, April 16, 2003, at 09:30 AM, Chris Knipe wrote: > > > > > Lo all, > > > > > > The code has one again beaten me... Below follows a function inside a > > > class... > > > > > > Function AddMXRecord($mx,$pref,$ttl) { > > > global $db; > > > $result = ''; > > > $i = 0; > > > while(list($key,$value) = each($mx)) { > > > if($value != "") { > > > if(!(checkDomain($value) || checkName($value))) { > > > $result .= ' > > > <font color="red">Error: bad MX name ' > > > . > > > stripslashes($value) . '</font><br>\n'; > > > $this->error = "Data error"; > > > } else { > > > > > > Line 134 = $result .= ' .... > > > > > > I get a parse error on line 134 :( > > > > > > > > > -- > > > me > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#144148) next »