an error that is not

grummbunger

New Member
Messages
3
Reaction score
0
Points
0
<?php

alable:

?>

upload and run i get
Parse error: syntax error, unexpected ':' in any ideas all my labels bring this up, labels are the prime thing (even more than variables) that make a program so what gives? why do i get this error?

---------- Post added at 04:50 PM ---------- Previous post was at 04:49 PM ----------

oh and ofcourse elsewhere in the code is a

goto alable;
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
They are running PHP 5.2.13 here.

goto was introduced in PHP 5.3
 

grummbunger

New Member
Messages
3
Reaction score
0
Points
0
i did in fact upload that specific code to my server (which is displaying all other commands includeing filecreation and location headers redirects) and got the same error. i have all my files running on my server, and the code above is pretty clearly written its a lable.
 

grummbunger

New Member
Messages
3
Reaction score
0
Points
0
They are running PHP 5.2.13 here.

goto was introduced in PHP 5.3

hmm wow how they do without goto, lol ok well thanks.. they should upgrade, off to remove my account then, lol. (black cloud on that) how do they expect to draw buisness?

---------- Post added at 05:09 PM ---------- Previous post was at 05:07 PM ----------

too bad have really nice game, gunna be highly addictive, make coin...
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
hmm wow how they do without goto
Because it's unnecessary. See Dijkstra's "Go To Statement Considered Harmful" and David Tribble's "Go To Statement Considered Harmful:
A Retrospective
". To wit, PHP is a high level language, and branches, loops and recursion mean goto statements are largely superfluous.

off to remove my account then
You say that like it's a matter of import.

PHP will hopefully be upgraded in a few months when the free servers get overhauled. Support for "goto" isn't the real advantage to 5.3; closures and namespaces are the biggest wins. Late static bindings and the new magic methods __callStatic and __invoke are nothing to sneeze at, either.
 
Top