+ Reply to Thread
Results 1 to 6 of 6

Thread: an error that is not

  1. #1
    grummbunger is offline x10Hosting Member grummbunger is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    3

    an error that is not

    <?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;

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: an error that is not

    They are running PHP 5.2.13 here.

    goto was introduced in PHP 5.3
    Nothing is always absolutely so.

  3. #3
    grummbunger is offline x10Hosting Member grummbunger is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    3

    Re: an error that is not

    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.

  4. #4
    grummbunger is offline x10Hosting Member grummbunger is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    3

    Re: an error that is not

    Quote Originally Posted by descalzo View Post
    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...

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: an error that is not

    Quote Originally Posted by grummbunger View Post

    hmm wow how they do without goto,

    A lot of people wondered why they added goto .
    Nothing is always absolutely so.

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: an error that is not

    Quote Originally Posted by grummbunger View Post
    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.

    Quote Originally Posted by grummbunger View Post
    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.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 02-16-2011, 09:42 AM
  2. Replies: 1
    Last Post: 08-20-2010, 03:26 AM
  3. Replies: 2
    Last Post: 04-15-2010, 07:44 PM
  4. Replies: 1
    Last Post: 03-03-2008, 10:58 AM
  5. Replies: 1
    Last Post: 09-01-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers