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! While you're at it, check out some resources Treehouse students have shared here.
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 trialMichael Van Dusen
12,136 PointsIs this webhostingforstudents attempt at irony?
While working through the PHP course I arrived at the Pick a Web Host video and followed the recommendation to webhostingforstudents.com After a small delay I was greeted with this error.
Parse error: syntax error, unexpected '/' in /home/wideskyw/public_html/webhostingforstudents.com/wp-blog-header.php on line 12
ROFL...I am guessing this is an example of how NOT to write PHP!
Of all the times for a website to have a PHP error, the middle of a course on how to write PHP has got to be the most unfortunate!
1 Answer
Codin - Codesmite
8,600 PointsI don't seem to be able to replicate the error but the site is incredibly slow, header is broken and I can confirm I have spotted a couple of SQL injection vulnerablites throughout the website from poor use of PHP (Which I will not disclose for their data protection ^_^).
They should get their developers over here at Teamtreehouse to learn how to use PHP properly! :)
Throughout the years I have seen some very poorly secured websites (some of them being huge multi million user websites), it is shocking how many PHP based websites are still vulnerable. I've always figured it is due to PHP being a quick and easy backend language to pick up and use for a new developer. Unfortunately a lot of new developers do not take the time to check if the code they are using is safe and secure, and PHP has many potential security pot holes for new developers to fall into.