PHP_Execution
PHP_Execution
Step-1:
First of all we have to open Xampp control panel for checking servers status.
To do it , open your terminal and enter the below command:
sudo /opt/lampp/manager-linux-x64.run
Step-2 :
Now Check server’s status at ‘Manage Servers’
Step-3:
If the servers are not running then click on ‘start all’
Then minimize the Xampp control panel window (!Don’t close it).
After starting the servers Press ‘ctrl+c’ on terminal to get access on it.
Step-4:
Now you have to get permissions for accessing folders in path : ‘/opt/lampp/htdocs’ on your
computer’s ‘Other Locations’ .
(my UserName)
Step-6:
Right click on the newly created file and open it in your coding platform.
Step-7:
Write your code in this file and save it by pressing ‘ctrl+s’.
Step-8:
Now open your browser and in the search bar enter ‘http://localhost/dashboard/’ to check
your Xampp is running or not.
Step-9:
After that replace the ‘/dashboard/’ part in the search bar with your file name as shown
below:
Then you’ll get the output for your code which was written in given file.