Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Unable to run PHP in Chromium console under Ubuntu. Produces "Uncaught SyntaxError: Unexpected identifier(...)"
When I try to replicate what the instructor is doing in my console in Chromium I receive the above error. The code in my php script is an exact replica of the instructors. I suspect more to do with trying to run a php script in my console (something I've never attempted before). Googling a solution did not bear useful fruit. I know my localhost setup has PHP installed and running. It has been some years since I mucked about in php though so may just be simple newbie problem. Any help much appreciated.
Seth Kroger56,412 Points