answersLogoWhite

0

How do you run a PHP file?

Updated: 8/17/2019
User Avatar

Wiki User

15y ago

Best Answer

you need to be running a lamp / wamp server on your machine... point the browser to the file and it wll run.

you can also use command line to run php scrips when you have lamp/wamp installed

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

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

Can you open php file in your PC?

Since a PHP file basically is a text file, yes. But beware - opening and running a PHP file are not the same. If you want to run a PHP file, you will need a webserver with PHP module enabled.


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 run php program in wanp server in window?

Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.


Is php a binary file?

No, PHP is text file with .php extension.


What is a PHP file?

A PHP file is a text file containing code to be run on a webserver by a program called php. It's the most used dynamic page script engine as it is free and open source.Use the fopen() function to open files in PHP. The first parameter of this function is the file to be opened and the second parameter specifies in which mode the file should be opened


What file extension is used to save a php file after code has been written into it?

The file extension for PHP is .php


What is the Malay-utf-8.inc. php file?

This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".


How can I know what PHP version my site is running on?

Set up a PHP file and put the following in it. <?php phpinfo(); ?> Then run it on the server, it will have all the information you will need including what version you are running.


What is the file extension .php?

A file whose extension is "*.php" are typically interpreted by the PHP language. (php.net)


Why you need wamp server to run php file on web browser?

PHP Web Development and Running PHP application requires a lots of efforts and tools. For running PHP file on web browser we required a compiler which can convert php files to HTML files. And a web server like Wamp helps a php file to convert it to PHP. Basic Component of WAMP Server are : Wnodows : Which is our OS. Apache : Web server for responding with web pages. MySql : Databases Query and PHP


What is the usual file name extension for PHP?

.php


How do you create a DIV type file using PHP?

A file with the DIV file extension is a DivX Movie file, it cannot be created with PHP. PHP is a web programming language for web site building.