I'm learning PHP script now, and each time when I want to test some php scripts, I have to upload the file to my server to see the result. How to preview the result without uploading the script to server? BTW, I'm using dreamweaver and notepad to edit the php script.
You'll need to install Apache, MySQL, and PHP (or some alternative, but it's the most popular). Theres a few applications that make this easy for you.. I personally use EasyPHP.
You need to install the environment for running PHP.The best way is installing WAMP server. You can find a step by step installation method for WAMP server here: http://chatintamil.org/installing_wamp_on_windows.php
if your OS is windows then there are many insatllers available online(XAMPP,WAMP,LAMP,PHPTRIAD,EASYPHP).these are setup file.you just need to follow instllation instructions. these are also available for LINUX. after installing them you will have htdocs folder,there you have to copy your scripts and run from your browser localhost/script name and one thing,try to find the most updated installer with all recent version of PHP,APACHE,MYSQL
I always test my programs on my laptop with http://www.uniformserver.com/ because it operates off a virtual drive W.
You can try using QuickPHP. It's perfect for beginners as there's no need to install anything. Simply download and run and you'll have yourself a little web server which runs PHP scripts. If anyone is interested, visit the QuickPHP page here: http://www.zachsaw.co.cc/?pg=quickphp_php_tester_debugger&sub=quickphp_php_tester_debugger_moreinfo
I use WAMP server.Its easy to install and bundled with apache, mysql, phpmyadmin,SQLLitemanager. Happy PHPing.
Better yet, get XMAPP Lite for Windows It's great. Just remember to set it up correctly: - set Listen localhost:80 in httpd.conf - setup a mysql password.
If you're looking for something simple to install and requires zero configuration, EasyPHP is the one. There's a step-by-step tutorial here too: http://klikr.net/local-test/
I need someone to help me with WAMP. The root directory is wamp/www/ which is default and I tried to load a script which I downloaded from the net. I tried copying the entire contents of the script to wamp/www/ folder and then accessing http://localhost/myscript/install/index.php . I just get the following error message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. I have configured WAMP properly. I'm able to see the test page when I goto http://localhost. What is the problem? Am I doing it wrong? Please help. Thanks in advance.
I'll like to suggest Apache2Triad. It's my any day first choice, because of its simplicity. Specially if you want to use the server as local one, Apace2Triad is the best. PHP, MySQL, CGI, Python is bundled within it. And you get handy tools like PHPMyAdmin, a easy-to-use Control Panel, Email Reader, FTP, PHPPGAdmin.
Well, what does the serverlogs say? The reason this doesn't work, might for example be a rogue .htaccess file (which isn't supported by the loaded extensions), or something similar. It's always hard to tell without having access to any logs or similar. Just to give you a hint: I installed WampServer2 on my laptop, because I was on a wifi-net which didn't allow normal FTP. So I needed a place to test my theme-making for Wordpress. Anyway, when I loaded my WIP theme, it didn't load at all - it turned out I was using a .htaccess entry which defined cache-options, and that wasn't supported out of the box on the server. Just FYI.