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 trial

PHP Build a Simple PHP Application Creating the Menu and Footer Starting the Project

Issue With Computer Server WAMP

I've been following the PHP Development track (loving it!) but have run into my first issue.

I am using Windows 7, and rather than the instructed server I am using WAMP server. Its worked great for everything else I've tried and seems to be about the same as the option used in the video.

Anyways, I've downloaded the zip file included in the course, unpacked the files into my wamp server localhost folder, and the two folders I unpack into that local host folder have their text labels highlighted green. http://prntscr.com/4sr8wr

Not sure what this means or if it has anything to do with my issue, but they're still green if I move them to another folder on my PC.

Now then, whenever I open "localhost" or "localhost/index.html" I get the "Tshirts 4 Mike" page, but without any css applied or images loaded!! http://prntscr.com/4sra5c If I open the specific file in my browser (file:///C:/wamp/www/index.html) everything looks and works fine. http://prntscr.com/4srah0

Does anyone know why the other address isn't loading the images or CSS? Does it have to do with the way the images and css files are referenced in the html files?

Thanks in advance, first time post, apologies for writing a novel :)

UPDATE: Upon completing the first step in the video course- changing index.html to index.php, loading the full address (file:///C:/wamp/www/index.html) is giving me a poor result as well. Looks like the images are fine but the CSS isn't loading: http://prntscr.com/4srepm

Aaron Lafleur
Aaron Lafleur
10,474 Points

Would you be able to post the code you have so far? Recently, I had some issues getting my shirts.php page to load properly. It turned out a couple of my files were in the wrong spot. Could your issue be your CSS link reference markup?

Also, check that index.php is indeed a php file, and not just index.php.txt

Aaron Lafleur thanks for the reply m8. This issue is actually all with code that is taken directly from the "Project Files". So its nothing I wrote and I highly doubt they'd publish it in a major track without someone catching it yet. Here's how I have my "Project Files" organized -> http://prntscr.com/4sr8wr

1 Answer

Jorge Alcala
Jorge Alcala
4,500 Points

Hello Sean Jones I had the same problem and it's no the script, for some reason when you unzip the "shirts4Mike" folder, Windows Encrypt the files to secure the data.

So to fix this go to the "shirts4Mike" folder and with your mouse click the right button and go to Properties then advanced then click in the area where said "Encrypt content to secure data" do click to un-select this option, then "ok" and apply, this area have to be unselected.

You will notice that the green color on the title folder will be black now, then make sure the files on the folder are black, if not, do the same process.