ga-wdi-exercises / sweet-libs

[meta]
0 stars 12 forks source link

Intro to PHP #26

Closed malissaromero closed 8 years ago

malissaromero commented 8 years ago

Repo: https://github.com/malissaromero/teachyourself_php

Comfort Level: 5

I wasn't able to see my code in my browser while I was going through the Treehouse tutorial. I tried to open index.php through the terminal and localhost/index.php straight into the browser. Am I missing something?

RobertAKARobin commented 8 years ago

You need to have an Apache server running on your computer. Take a look at the section about installing XAMPP here: https://github.com/ga-dc/pbj/tree/master/10-back-and-front-of-front-end/intro-to-php

kristingreenslit commented 8 years ago

Very cool! I'm looking forward to learning more about PHP. What steps did you take to get a server up and running?

malissaromero commented 8 years ago

@RobertAKARobin Hey, when you get a chance, let me know what I am doing wrong? I do have it running but I still cannot see index.php on my browser. This is running in my background:

screen shot 2015-09-08 at 2 29 46 pm

kristingreenslit commented 8 years ago

I don't know the first thing about PHP, but I got "hello world" to render in the browser by adding <?php include_once("home.html"); ?> to the top of the index.php file and opening home.html in the browser.

screen shot 2015-09-08 at 20 19 25