SEOClerks

How to run php in PC?



Enter a reason for deleting this comment

How to run php in PC?

We can't run php file saved in our computer,to check them we need to upload it to a host..... it is a real headache because it wastes time and makes programing boring.Actually I just started to learn php.
There were some softwares and methods which can make php files run,but can anyone recommend a software or a method???

thank you.

Comments

Please login or sign up to leave a comment

Join
ninjasalesgroup

You need some sort of Apache Mysql PHP setup. The simplest I'm aware of for Windows is offered by portable apps, but it's been a long time since I've been in the windows world.

https://portableapps.com/apps/development/xampp



Enter a reason for deleting this comment

NomanProdhan

I don't know which Operating System are you using. But I will recommend you to try XAMPP. XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use. After installing XAMPP you will be able to run PHP files on your computer.
You can find the software here : https://www.apachefriends.org/download.html



Enter a reason for deleting this comment

achi007

thanks noman....
Do you use it?



Enter a reason for deleting this comment

NomanProdhan

Yes, I use it to learn PHP and MySQL. It works like a charm. Even you can taste several kind of scripts like WordPress, MyBB etc. with XAMPP. I don't know if XAMPP perfect for an advanced developer but I believe that if you are learning PHP/MySQL or want to run any PHP scripts in your PC then XAMPP will be the best one !



Enter a reason for deleting this comment

Fuzyon

This is the best answer! I use XAMPP to run all my PHP and SQL scripts and it has worked flawlessly ever since I started out. Definitely recommend!



Enter a reason for deleting this comment

itommy

I used XAMPP in the past but to be honest it could not compare with Appserv which is easy to config and upload files to folder and using your website on localhost.



Enter a reason for deleting this comment

achi007

Thanks Noman......... I'm a rookie so it would be prefect...



Enter a reason for deleting this comment

overcast

You need to download WAMP stack from Bitnami. And with that you can execute the PHP on your own PC. Basically Bitnami creates the virtual server serving the PHP. You can then consider running the script by pasting them into /htdocs folder. And you would able to access the localhost. That seems to be the common method whether you try XAMP from apache friends or the WAMP from bitnami.



Enter a reason for deleting this comment

Bonzer

Well, you got to download both PHP software and Apache Web Server from php.net and apache.org which is pretty straightforward. You'll then have to browse to localhost on port 80, http://loalhost.

The above is a conventional process. Nevertheless, you can download XAMPP as "NomanProdhan" advised above. It comprises of a bundled software like Apache, MySQL PHP, and Perl and so on.

In any case, installing and starting up Apache server is a must.



Enter a reason for deleting this comment

coolavender

I've installed XAMPP, too, when I was learning PHP. It works for both Windows and Linux and it's open source. The control panel still says MySQL, but it's actually MariaDB which isn't bad at all. You just have to save your scripts on a the htdocs/ folder and test them by typing localhost//filename. You may need to work on different websites and for that purpose, you can set up separate folders within the htdocs and launch them by typing localhost//newfolder/filename.



Enter a reason for deleting this comment

itommy

You can download Appserv and install it on your PC.
After that, you will have a virtual web server which allows you to run PHP and Mysql on your PC.



Enter a reason for deleting this comment

azsdpa12

Move the file "C:\Windows\php.ini" to the directory "C:\Server\php" so it's easier to edit when you need to. Open "My Computer" and browse to "C:\Windows". Find the file "php.ini" in the windows directory. Right-click an empty area in the window and select "Paste"



Enter a reason for deleting this comment