How to run a PHP script ?

How to run a PHP code in browser .


8 Answers
1-8 of  8
8 Answers
  • SERVER-SIDE :
    If you want to use PHP scripts on server-side like a webpage, you can use Wamp, mamp, Xampp, easyphp, whatever. You have tons of tutorials on it.
    You can do manually but itis not really convenient as wamp.
    I can give you some other way for windows :
    You can use webmatrix with Web Platform and install php directly. Because you can simulate php on IIS Server. If you want want apache, wamp is better.

  • To locally run a PHP Script:

    1.Click the arrow next to the Run button on the toolbar and select Run Configurations -or- go to Run | Run Configurations. A Run dialog will open.
    2.Double-click the PHP Script option to create a new run configuration.
    3.Enter a name for the new configuration.
    Select the required PHP executable. If no PHP Executables are listed, click the PHP 4.Executable link and add a PHP Executable in the PHP Executable Preferences page. The PHP Executables must match the Debugger type.
    5.Under PHP File, click Browse and select your file
    6.Marking the 'Display debug information when running' checkbox will cause debug views to be displayed.
    7.If necessary, you can add arguments in the PHP Script Arguments tab to simulate command line inputs.
    8.Click Apply and then Run.

    Your script will be run and displayed in a browser.

  • The steps are:
    1. Click the arrow next to the Run button  on the toolbar and select Run Configurations 
    2. Double-click the PHP Script option to create a new run configuration.
    3. Enter a name for the new configuration.
    4. Select the required PHP executable. If no PHP Executables are listed, click the PHP    
        Executable link and add a PHP Executable in the PHP Executable Preferences page. The   
        PHP Executables must match the Debugger type.
    5. Under PHP File, click Browse and select your file
    6. Marking the 'Display debug information when running' checkbox will cause debug views to be      displayed.
     7. If necessary, you can add arguments in the PHP Script Arguments tab to simulate command       line inputs.
     8. Click Apply and then Run.

  • First of all it is a server side language so either you have and online server or an offline server(which will run on your desktop) like Xampp, and after that just edit the PHP script and open it in browser and that's it you can now run every PHP script file in browser.

  • Localhost

  • PHP is a server-side language which can only be executed on a server like Apache Tomcat..
    For this you need to downloa XAMPP for any type of Operating System and in particular you have LAMPP for Linux and WAMPP for Windows, but it is recommended you download XAMPP as it would be easy in installation.

Php

Didn't get the answer.
Contact people of Talent-Php directly by clicking here