Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ozzieing

macrumors newbie
Original poster
Jun 24, 2009
6
0
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?
 
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.
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.