answersLogoWhite

0

How do you run php?

User Avatar

Wiki User

11y ago

Best Answer

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

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

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

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.


How can you run a PHP script?

A php script can only be executed within a Web server that runs php.


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 run php?

I have provided you with a two links that will take you through how to install PHP on your computer and how to setup a server so you can run your PHP code. See the relevant link below


How do you preview PHP source output?

The only true form of previewing PHP source output is to run the PHP script in question.


How can you run a php program?

To run PHP, just like any other programming/scripting language, you need to install an interpreter.If you're planning on using the PHP on a website, you can have a PHP interpreter run alongside your Apache/Nginx installation. Go ahead and look up the relevant installation information for your server's OS.


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 do you output a star using PHP?

type this in a file save it as something.php and then run it <?php echo '*'; ?>


How do you run php programs?

You need to install PHP either on a pre built apache server such as xampp or download PHP directly from the website.


Can you run PHP and MySQL on Linux?

Yes.


Is PHP runable in Linux?

PHP can run on any major operating system just like java as long as you have an interpreter. Try installing a LAMP (Linux, Apache, MySQL, PHP) server & you should be able to run php on your pc/server. There are some IDE's which would allow php development on linux os