Skip to content

PHP 'Hello World' Tutorial added #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 22, 2015
Merged

PHP 'Hello World' Tutorial added #210

merged 6 commits into from
Sep 22, 2015

Conversation

eddiejaoude
Copy link
Contributor

PHP is such a popular language for Dynamic Websites and Web Applications.

I have created a Lesson 1. I will ping this link to some friends and colleagues for review.

3. `0.0.0.0` is the IP that the WebServer should listen on. By using `0` it will listen on everything - fine for development
4. `8080` is the port to listen on - fine for development but in production the default port is `80` and therefore not required when accessing a URL

Lets see the script output in the browser, in your browser (ideally **Firefox** or **Chrome**) navigate to ` http://localhost:8090/` and you should see:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You say listen on 8080, but then direct them to 8090. Is this right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well noticed! I will update it. Thanks

@eddiejaoude
Copy link
Contributor Author

One other thing to consider? Use repository name that keeps codebar's URI clear. See mine for example! ^-^

@kaichanvong what do you mean?

@kaivongcom
Copy link

@eddiejaoude – exactly what was said. And sneaky sneaky moving the chat here! But OK hehe ^_^

@eddiejaoude
Copy link
Contributor Author

exactly what was said

I didn't understand 'what was 'said', hence why I was asking.

And sneaky sneaky moving the chat here

Moving the chat? Sorry you lost me...I had multiple tabs open and just used one that was in the PR. What is the difference? 😕

@kaivongcom
Copy link

Oh. Okay. It's a fun problem to try figure out. Or chat to me in person, or someone else about it at a Codebar session! hf gl!

^hf gl!^Have fun, good luck (not mean't sarcastically as some people may think)!

@eddiejaoude
Copy link
Contributor Author

It's a fun problem to try figure out

Which problem are you referring to? I didn't realise there was one 😄

Thanks for your feedback though, well the ones I understood 😜

@deniseyu
Copy link
Contributor

Hey @eddiejaoude thanks for your work on this. minor nitpick -- could you include a link to install in case it's not on the OS? (I'm not sure it comes by default on all Linux distros) Would also be useful to prompt the user to run php -v with the expected output to sanity-check that php is successfully installed.

@eddiejaoude
Copy link
Contributor Author

@deniseyu good point. I will update it shortly.

@eddiejaoude
Copy link
Contributor Author

TODO

  • Link on how to install PHP & check the version / correct installation
  • Create another tutorial/PR for Cloud9IDE (c9ide)
    • login in with GitHub account
    • create PHP environment
    • run CLI command to see output
    • run apache & browser to see output

@eddiejaoude
Copy link
Contributor Author

@deniseyu I have added an installation link to the official documentation and the check command to make sure it is installed correctly.

@deniseyu
Copy link
Contributor

👍

deniseyu added a commit that referenced this pull request Sep 22, 2015
PHP 'Hello World' Tutorial added
@deniseyu deniseyu merged commit 7f280af into codebar:gh-pages Sep 22, 2015
octopusinvitro pushed a commit that referenced this pull request Aug 14, 2016
PHP 'Hello World' Tutorial added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants