UnThreaded | Threaded | Whole Thread (4) | Ignore Thread Prev | Next
Author: captainccs Big funky green star, 20000 posts Top Favorite Fools Old School Fool Add to my Favorite Fools Ignore this person (you won't see their posts anymore) Number: of 16451  
Subject: Re: PHP site giving error Date: 7/10/2014 4:59 PM
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Recommendations: 3
A bunch of funny coincidences.

The offending text is on line 1

Parse error: syntax error, unexpected 'version' (T_STRING) in /home/username/public_html/product/index.php on line 1

which means that since there is no "<?php" prior to it, php does not recognize

// or /* xxx */

because it's not yet in php mode.

If you insert "<?php" before the xml line, "/* xxx */" will work but "//" won't because php will recognize "?>" at the end of the line as ending php.

Denny Schlesinger
Post New | Post Reply | Reply Later | Create Poll . Report this Post | Recommend it!
Print the post  
UnThreaded | Threaded | Whole Thread (4) | Ignore Thread Prev | Next

Announcements

Pencils of Promise - Back to School Drive
"Pencils of Promise works with communities across the globe to build schools and create programs that provide education opportunities for children."
Managing Your Wealth
Our own TMFHockeypop from Rule Your Retirement fame on the TV show Managing Your Wealth.
When Life Gives You Lemons
We all have had hardships and made poor decisions. The important thing is how we respond and grow. Read the story of a Fool who started from nothing, and looks to gain everything.
What was Your Dumbest Investment?
Share it with us -- and learn from others' stories of flubs.
Community Home
Speak Your Mind, Start Your Blog, Rate Your Stocks

Community Team Fools - who are those TMF's?
Contact Us
Contact Customer Service and other Fool departments here.
Work for Fools?
Winner of the Washingtonian great places to work, and "#1 Media Company to Work For" (BusinessInsider 2011)! Have access to all of TMF's online and email products for FREE, and be paid for your contributions to TMF! Click the link and start your Fool career.
Advertisement