Testing your PHP scripts locally?
Moderator: General Moderators
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Testing your PHP scripts locally?
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
Can someone help me out with that?
Thanks!
-PHP Noob Cory
Re: Testing your PHP scripts locally?
If you have apache installed you use localhost.
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Re: Testing your PHP scripts locally?
Okay cool. Thanks, pal!papa wrote:If you have apache installed you use localhost.
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?
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.
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.
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Re: Testing your PHP scripts locally?
awesome man. really appreciate it!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.
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Re: Testing your PHP scripts locally?
oh one more thing! you know of any programs like wamp that are for the macintosh operating system?
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Re: Testing your PHP scripts locally?
hmm seems to be for linux
Re: Testing your PHP scripts locally?
Sorry MAMP is what you need. Not really familiar with the other ones:
http://www.google.se/search?client=fire ... C3%B6kning
http://www.google.se/search?client=fire ... C3%B6kning
- CKEANEDesign
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 26, 2009 8:04 am
Re: Testing your PHP scripts locally?
beautiful! installing now. hopefully it works well! thx 4 all ur helppapa wrote: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?
NP, good luck and welcome to the family. 