However, PHP can also be run on CLI (Command Line Interface). Most of the time, PHP programs run as a web server module. Step 5: The output for the above hello.php program will be shown as the screenshot below: Step 4: Now, open the web browser and type localhost your browser window. Step 3: Run the XAMPP server and start the Apache and MySQL. Otherwise, it will generate an error - Object not found. Note: PHP program must be saved in the htdocs folder, which resides inside the xampp folder, where you installed the XAMPP. Step 2: Save the file with hello.php name in the htdocs folder, which resides inside the xampp folder.
0 Comments
Leave a Reply. |