Page 1 of 1
Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:12 am
by CKEANEDesign
Hey guys! Is there anyway to test your PHP scripts locally? I know opening a .php file locally in firefox doesn't work.
Can someone help me out with that?
Thanks!
-PHP Noob Cory
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:15 am
by papa
If you have apache installed you use localhost.
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:18 am
by CKEANEDesign
papa wrote:If you have apache installed you use localhost.
Okay cool. Thanks, pal!
But obviously you can't view websites with php locally and use the SQL content right? like i cant sign on to an account (that's in the site server's database) on a website i made locally right?
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:29 am
by papa
Sure you can.
I use wamp which is very easy to install. There you have apache, php and MySQL and you can set up exactly as you have it on your webhosting provider for example and test everything first before you upload it "live".
You can easily export tables or the whole database in mysqladmin and import it where ever you want it.
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:31 am
by CKEANEDesign
papa wrote:Sure you can.
I use wamp which is very easy to install. There you have apache, php and MySQL and you can set up exactly as you have it on your webhosting provider for example and test everything first before you upload it "live".
You can easily export tables or the whole database in mysqladmin and import it where ever you want it.
awesome man. really appreciate it!

Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:36 am
by CKEANEDesign
oh one more thing! you know of any programs like wamp that are for the macintosh operating system?
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 8:39 am
by papa
This should do it:
http://lamphowto.com/
LAMP
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 9:17 am
by CKEANEDesign
hmm seems to be for linux
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 9:27 am
by papa
Sorry MAMP is what you need. Not really familiar with the other ones:
http://www.google.se/search?client=fire ... C3%B6kning
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 9:39 am
by CKEANEDesign
beautiful! installing now. hopefully it works well! thx 4 all ur help
Re: Testing your PHP scripts locally?
Posted: Thu Mar 26, 2009 10:08 am
by papa
NP, good luck and welcome to the family.
