Mac PHP issue?

Discussion in 'Web Design and Development' started by ozzieing, Feb 28, 2010.

  1. ozzieing macrumors newbie

    Joined:
    Jun 24, 2009
    #1
    Essentially whenever i try to run a PHP file from the browser I get exactly the same error, although the name of the file obviously changes:
    "Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in /Applications/XAMPP/xamppfiles/htdocs/run.php on line 10"

    Even if (as in this case) all that is in the file is:
    PHP:
    <?php 
    ?>
    I'm using the latest version of Xampp and I've tried reinstalling it countless times. Does anyone know how I can fix this?
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Have you checked the PHP configuration file? It may have something wrong in there like including other PHP files that have an issue with them. I use MAMP personally. I've had issues with XAMPP on Mac in the past.
     
  3. Bostonaholic macrumors 6502

    Bostonaholic

    Joined:
    Aug 21, 2009
    Location:
    Columbus, Ohio
    #3
    Like angelwatt, I use MAMP. The problem doesn't seem to be with your php file. Check out that run.php file that the error message identifies, line 10 specifically. Is there anything peculiar/wrong with that line?
     

Share This Page