Is there a way I can have PHP scripts work offline by perhaps installing a PHP program on my computers hard drive. As of right now, I do all my PHP on a host server online and sometimes it's really slow. I would like to do my programming offline and then once it's working correctly, upload it to my host server as I imagine it would be faster. I think I would also have to install MySQL on my local machine as well. I'm not really sure how other programmers do it, unless they do it all online, but I've had a programmer tell me before when he was working on a project for me that he would upload the updates to his server once he was finished encoding, so there must be a way to do it.
Yes : you can get apache + mysql + php in a single package and install it on your PC, once done with the code just upload it to the server. You can try something like : http://www.wampserver.com/en/ (it even has phpmyadmin).
use XAMPP search google for it.. Very easy.. Also there are other Like EasyPHP.. There are many just do a google search PHP ON LOCALHOST.
download WAMP and install it and u can work on PHP on ur local server , u need to turn of IIS before that
In xampp u do not need to know abt IIS and other stuff.. Just install and Put ur PHP files in the htdocs folder... There is a neat control panel for xampp just run APACHE from there. And type the address http://localhost/xxxx/xxxxx.php etc Easy
Thanks for the help, I guess I'll research into some of these and try them out to see which one I like best.
You might want to think about getting a free hosting account or something if you really want to test the scripts online. There are many of those too. Search Google.
free hosting account works for me. but also was looking for somthing to run on my pc, i test wampserver.com/en works good. thanks
I actually have a paid hosting as they are always better. I was just looking for a solution to doing all my PHP offline instead of always being online. I downloaded XAMPP simply because it looked easy to use and you can also convert back and forth between PHP 4 and 5. It seems to work very well know that I have it working on my computer. Does anyone know how I can click on a PHP file and have it run right away in IE from my localhost using XAMPP. I uploaded the files to the htdocs folder, but when I click on a PHP file to run in IE, it doesn't work. Instead I have to go and type in the URL in the address bar.
Well that's kind of tricky ... first of you should have the files in the htdocs folder. Then you should specify that php files are opened with IE or FF and then (that's what I don't know how to do) instead of opening them in the htdocs folder it should be directed to http://localhost/filename.php . I know how to make this work in Dreamweaver but that's something else
Seems a lil strange that you would know how to program but not know how to install apache + php + mysql :S
1) Download Apache: http://httpd.apache.org/download.cgi I recommend using 2.0.xx for windows IIS. 2) Download Mysql: http://dev.mysql.com/downloads/ 3) Download PHP: http://www.php.net/downloads.php I recommend using 4.x.x on IIS * If using PHP 5.x.x, you will need to activate mysql from php.ini. Peace,
Yes, that's exactly what needs to happen is it needs to open in IE as (http: //localhost/filename .php). As of right now it's just opening it from the document folder as something like (http: //program files/XAMPP/htdocs/filename .php), so it doesn't work. I actually get a dialog box that opens asking me to download the file. I had to put the spaces inbetween the links because I apparently haven't met my post quota. I do have apache and php installed and it still won't work. I'm not an experienced programmer and I can only do some things in PHP. I usually have another programmer do the things I don't know how to do, but would like to learn how to do more of the PHP coding myself. I've always worked with PHP scripts online because they wouldn't work offline, which is why I wanted to find a tool to do it offline because my host server is sometimes slow and it's a longer process. I'm experienced in HTML and knew how to do that offline, it was just the PHP code that I wanted to do offline.