answersLogoWhite

0

How do you run PHP on Windows?

Updated: 10/3/2023
User Avatar

Wiki User

11y ago

Best Answer

No. However, PHP must be on your computer to process the PHP commands. You will also need a web server program like Apache.

A simple way to do this is to go to http://www.apachefriends.org/en/xampp.html and all the programs you need can be installed on your computer to run PHP, plus a MYSQL database, in case you want to really get into working with PHP.

Once the PHP and Apache are installed you can access your PHP web pages through your browser from your Apache "localhost" directory after storing your new PHP files there. No internet connection needed.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Learn bay

Lvl 8
2y ago

How to Setup PHP

Step 1: Save the PHP files to your computer. The PHP Windows installation is required.

Step 2: Open the files and extract them.

Step 3: Configure PHP

Step 4: Change the path environment variable to C:php

step 5: Configure PHP as an Apache module

Step 6: Put a PHP file to the test.

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

To open up a PHP file on your computer you need to open it in a text editor such as notepad, Dreamweaver, PSPad and there are many more out there!

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

PHP is platform independent. You just need to install WAMP or XAMPP server on windows and PHP will be executed using http://localhost.com

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

php -f file.php

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you run PHP on Windows?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does php run in Windows 7?

Php can run on windows 7, but it does not run directly on it. PHP is a server side-language that runs on Apache. So in order to use PHP on windows 7, you need to install Apache on it. You can do this by installing WAMP server on your windows 7 machine. PHP will automatically be available to you once installed.


How do you run a php application on windows 7 home basic?

Operating System is irrelevant for php. Just download the WAMP server for windows & your php is operational. If you run ASP.NET & IIS remember to change the port of WAMP server & things should work out


What is the server used to run PHP in Windows?

One of the Windows Server operating systems. PHP can be installed with Microsoft's IIS web server as an ISAPI filter, or you can install the WAMP server under Windows that contains the Apache web server, the PHP interpreter, and mySQL. There are others as well, such as the Xitami web server, etc., that work equally well with PHP under windows.


PHP can be run on Microsoft Windows IIS(Internet Information Server)?

IIS is a Windows-only application, however it's important to note that running PHP on IIS is not the same as running PHP on Windows. XAMPP or WampServer are two choices for running PHP on Windows. However, these two options provide you with some more options. They use MySQL or MariaDB as a database server and run Apache as a web server. To learn more about data science please visit- Learnbay.co


How do you run php?

Easiest way would be to download a full package preferably xampp, wamp for windows, lampp or lamp for linux and mamp for macintosh. Then run php through localhost


What are the requirement of the php?

To run PHP scripts you need a working WWW server (for instance Apache or nginx), with installed and compiled PHP sources (in Windows environment you can use binaries, there is no need to compile).


How can you run PHP files?

Use the 'include()' in your pages. Eg. include(link.php); ?> Normally PHP files are meant to be run through a web server which serves on a browser. What is outputted is the HTML of the page along with any information that is generated by php depending on the code inside the page. If you would like to run the PHP code from the command line you can using the php executable. If you are on a windows machine you can do the following: c:\php>php c:\websites\webroot\filename.php This will output the HTML that the PHP generates after being parse by PHP. You can also do this on Linux as follows: $->php /path/to/file.php


How save PHP file in window?

Assuming you meant windows the OS then you should write it in a text editor such as notepad and save it with the extension .php. You then need to install a web server with PHP installed such as WAMP or XAMPP to run it.


Is ASP.NET or PHP better for building WEB 2.0 applications?

PHP is more universal since it can run on Windows, Linux, Unix, etc. ASP.net must run on a Windows web server (specifically IIS). You can use Mono on Linux and other platforms to develop and run .NET applications, but PHP is still more universal. You also have better chances of finding open source extensions and code for specific purposes for PHP. With ASP.net you will probably need to pay for some commercial components.


Can php be ran on Microsoft Windows internet information server?

IIS is a Windows-only application, however it's important to note that running PHP on IIS is not the same as running PHP on Windows. XAMPP or WampServer are two choices for running PHP on Windows. However, these two options provide you with some more options. They use MySQL or MariaDB as a database server and run Apache as a web server. To learn more about data science please visit- Learnbay.co


Can you run PHP on Linux?

Yes. Many popular websites run PHP on Linux.


Can you run PHP 3 and 4 on the same server?

Yes, you can, provided that you run PHP as CGI.