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 trialIan Taylor
3,525 PointsPreview Workspace for PHP comes up blank?
I just submitted this to Team Tree House and was told that I have to put it on the forum. Please can someone kindly help me?
The full index.php code from their exercise program produced a blank page, so I just shortened it to:
<html> <ul> <?php define(“MAX_BADGES”, 20); For($counter=3; $counter <= MAX_BADGES; $counter++) { echo “<li>” . $counter . “</li>”; } ?> </ul> </html>
However, this also produces a blank Preview Workspace?
The Preview Workspace Viewer is
http://port-80-q3hs66jxgp.treehouse-app.com/
I have also tried http://port-80-q3hs66jxgp.treehouse-app.com/index.php
best regards,
Ian.