Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
Since I keep getting off-list and on-list replies, apparently not everyone reads the threads as they should. As you'll see from the message below, I'm aware that it's in all languages. It was meant jokingly, but I forgot to type in the smiley face. Otherwise, thanks (to the eleven or so of you) who responded. ;-P -- Forwarded message -- From: Daniel Brown [EMAIL PROTECTED] Date: Wed, May 14, 2008 at 5:05 PM Subject: Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM To: mike [EMAIL PROTECTED] Cc: Tyson Vanover [EMAIL PROTECTED], php-general@lists.php.net On Wed, May 14, 2008 at 4:51 PM, mike [EMAIL PROTECTED] wrote: I've got that before and I am not using a Hebrew version of PHP :) Yeah, just a joke. I forgot to put the Trademark ;-P in its place. The etymology of that message could be attributed to the fact that Zeev and Andi are Israeli. Just taking a guess at it though. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
[snip] I have a class that is throwing the error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ... [/snip] Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM (Hebrew) It means there's an unexpected double colon where there shouldn't have been. self::$this-titles = array_merge(self::$this-titles, $special); //error Appears to be the trouble maker. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover [EMAIL PROTECTED] wrote: I have a class that is throwing the error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ... You're using a Hebrew version of PHP? That means something along the lines of two times the two marks in Hebrew. However, in your case, you're checking the error on the wrong line. Look at your foreach() statement. It should instead read as follows: ?php foreach($set as $key = $value) { // You just missed the $ before value. ? Also, check this line: ?php if (array_key_exists($key,$this-titles) ? You're missing a ')' to close the if() statement. It's not causing this problem, but it will cause a problem afterward. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
I've got that before and I am not using a Hebrew version of PHP :) On 5/14/08, Daniel Brown [EMAIL PROTECTED] wrote: You're using a Hebrew version of PHP? That means something along the lines of two times the two marks in Hebrew. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
In your code, it appears you forgot to close a pair of parentheses: --- foreach($set as $key=value) { if (array_key_exists($key,$this-titles) { $this-a[$key] = $value; } } --- It looks like that 3rd line should be: --- if (array_key_exists($key,$this-titles)) --- I hope that helps. Having another set of eyes take a look at it usually does. ;) Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
On Wed, May 14, 2008 at 4:51 PM, mike [EMAIL PROTECTED] wrote: I've got that before and I am not using a Hebrew version of PHP :) Yeah, just a joke. I forgot to put the Trademark ;-P in its place. The etymology of that message could be attributed to the fact that Zeev and Andi are Israeli. Just taking a guess at it though. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
Daniel Brown wrote: ?php foreach($set as $key = $value) { // You just missed the $ before value. ? This seems to be the culprit. Also, check this line: ?php if (array_key_exists($key,$this-titles) ? You're missing a ')' to close the if() statement. It's not causing this problem, but it will cause a problem afterward. Thanks for catching that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tracking down the elusive expecting T_PAAMAYIM_NEKUDOTAYIM
On Wed, May 14, 2008 at 5:43 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, May 14, 2008 at 4:05 PM, Tyson Vanover [EMAIL PROTECTED] wrote: I have a class that is throwing the error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM ... You're using a Hebrew version of PHP? not necessary should be the hebrew PHP version. by definition even in the english version T_PAAMAYIM_NEKUDOTAYIM is used to name :: That means something along the lines of two times the two marks in Hebrew. However, in your case, you're checking the error on the wrong line. Look at your foreach() statement. It should instead read as follows: ?php foreach($set as $key = $value) { // You just missed the $ before value. ? Also, check this line: ?php if (array_key_exists($key,$this-titles) ? You're missing a ')' to close the if() statement. It's not causing this problem, but it will cause a problem afterward. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Los sabios buscan la sabidurĂa; los necios creen haberla encontrado. Gabriel Sosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php