CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Question on the PHP for Beginners tutorial
vincent
Permalink to comment
#
May 2010
I was doing the http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/ tutorial and was wondering how we were supposed to check if it's working? Do you just go to server/folder/
display.php
? I get a blank page if I do that.
Robskiwarrior
Permalink to comment
#
May 2010
you either have to upload it to a server that has PHP installed or install:
http://www.apachefriends.org/en/xampp.html
or
http://www.wampserver.com/en/
Then you can run PHP/mySQL locally and view it from your computer
vincent
Permalink to comment
#
May 2010
I am already running MAMP and I created a database.
Robskiwarrior
Permalink to comment
#
May 2010
then you need to:
1) Make sure you have put your files in the htdocs (or equivalent) folder...
2) access via
http://localhost/folder
if it is all set up right and it dosen't work - take another look at your code :)
Argeaux
Permalink to comment
#
May 2010
also make sure php error reporting on MAMP is on ... if you dont have it on you will get a white page if there is an error in your script.
Add a Comment
http://www.apachefriends.org/en/xampp.html
or
http://www.wampserver.com/en/
Then you can run PHP/mySQL locally and view it from your computer
1) Make sure you have put your files in the htdocs (or equivalent) folder...
2) access via http://localhost/folder
if it is all set up right and it dosen't work - take another look at your code :)