Really unheard error in PHP? Whassup??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Really unheard error in PHP? Whassup??

Post by n00b Saibot »

I was browsing here when my colleague showed me this...
Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in c:\web\Suman\usephp\try.php on line 15
relative line in php-code

Code: Select all

$num1 =(!empty($_REQUEST[‘num1’]))?$_REQUEST[‘num1’] ::null;
I know the error is with the colon in ternary op. but what in the hell is "T_PAAMAYIM_NEKUDOTAYIM" ??? :?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

It is Hebrew and means you have a double colon

http://digitalfiefdom.org/index.php/200 ... -the-heck/
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Thankx mate for this, So I take it they must have been deep in Hebrew, eh! That gives me enough inspiration to start writing extension to PHP which will report errors in Hindi, Urdu, Farsi or maybe Polish, Armenian or one of those Star (Wars|Trek) series languages :lol:

BTW, is there any other similar Hebrew error in PHP :?:

PS: Methinks, Regex has taken its toll on me, whaddya say...
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Pimptastic wrote:It is Hebrew and means you have a double colon

http://digitalfiefdom.org/index.php/200 ... -the-heck/
Nah, I believe it's jibberish for 'your code is <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurfer</span> 'd up :!:'
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Stewsburntmonkey
Forum Commoner
Posts: 44
Joined: Wed Aug 24, 2005 2:09 pm

Post by Stewsburntmonkey »

n00b Saibot wrote:Thankx mate for this, So I take it they must have been deep in Hebrew, eh! That gives me enough inspiration to start writing extension to PHP which will report errors in Hindi, Urdu, Farsi or maybe Polish, Armenian or one of those Star (Wars|Trek) series languages :lol:

BTW, is there any other similar Hebrew error in PHP :?:

PS: Methinks, Regex has taken its toll on me, whaddya say...
PHP will give you errors in whatever language you tell it to (as long as it has an error file in that language). :)
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

Pimptastic wrote:you have a double colon
It's possibly in Hebrew for this mixup possibility
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Stewsburntmonkey wrote: PHP will give you errors in whatever language you tell it to (as long as it has an error file in that language). :)
Yes, but this one presents the HEBREW verbage, even when other errors are in english.. its specifically a 'unique' phrase used to ensure there won't be confusion over "colon", as wwwapu mentioned.

At least, I think so. I'm not sure on this one. (pun intended).
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Stewsburntmonkey
Forum Commoner
Posts: 44
Joined: Wed Aug 24, 2005 2:09 pm

Post by Stewsburntmonkey »

I was actually fully aware of that. I was refering the part of the post where the poster said he was going to write extensions to give errors in different languages. I was simply pointing that this is already a part of PHP. :)
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Stewsburntmonkey wrote:I was refering the part of the post where the poster said he was going to write extensions to give errors in different languages. I was simply pointing that this is already a part of PHP.
So I guess I got a new project for myself. anyone wanna try a hand at it first ? How about onion2k :P
Post Reply