123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computers >> View Article

Getting Started With Php Development – Part 2

Profile Picture
By Author: diwiyne johnson
Total Articles: 25
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

In the previous article, I gave you some introduction about PHP and getting started with it. We ended with the installation of XAMPP. Now let us proceed to open the XAMPP control panel.
On this Control Panel, first click the START option which will embark the Apache software. If you do not wish to open the Control Panel to start APache, press the 1st SVC button and press the exit option to close the Control Panel. Now your web server is ready for use. Point your web browser to http://localhost. If everything has been done properly then you will see a message -'It Works!' on the screen where you opened http://localhost.
Selecting A Source Code Editor
If you write your PHP code in a word processing editor such as MS Word then you may include all junk characters such as style definitions etc in your code. PHP cannot process this junk and so you will need a text editor such as a Notepad or Notepad++. Text editors do not include any junk characters; they simply produce plain text which is the only thing that PHP comprehends.
Highlighting Syntax
After you write few lines of code in the notepad, you need ...
... to check it if it produces the desired results. If you have forgotten a single quote on a specific line, it may not be able to run your script. If it's just few lines of code it is not that tough to check which quote you forgot. But, if you are testing a thousand lines of code, then what would you do? It is that this stage that Syntax Highlighting assumes an important role. When you enable it, you can view different colors for instructions, declarations etc. It will be easy for you to check the missing quote in those thousand lines of coding.
A number of source code editors come with syntax highlighting. Source code editors provide a number of helpful options. Notepad++ is the most preferred one as it is simple to use.
Till here, we have installed XAMPP, and a source code editor but we now need to check if PHP is installed or not. Open Notepad++, copy and paste-

in a new text document and save it as code.php in your webroot. You can also save the file with any other name that you can easily remember. Webroot servers as directory used by APACHE to retrieve files.
You can find the webroot in xampp\htdocs (the default value for Windows is C:\xampp\htdocs). If you are using a web host, then you should take the FTP details for using the webroot from your provider. This helps you in transferring files to a web server. Point your browser to http://localhost/info.php and if you are able to see PHP version and other details on the screen then it implies that you have correctly installed PHP. If nothing happens, then it implies that PHP is not correctly installed and so the PHP code will not be parsed. Your browser may not identify tag and may not process them.

Diwiyne Johnson is working as a content writer at vanitypoint, he has a relevant experience of writing content about software,
PHP Web Development,
PHP website developer Irvineetc.

Total Views: 229Word Count: 532See All articles From Author

Add Comment

Computers Articles

1. Web Scraping Top Grocery Chains In Michigan
Author: FoodDataScrape

2. How Refurbished Laptops Help Students Save Money And Study Smarter In 2025
Author: usedstore

3. Why The Ls3002 Barcode Scanner Is Perfect For Retail In 2025
Author: prime pos

4. Does Cleaning Temporary Files Really Improve Laptop Speed? (what To Expect)
Author: Neha Jain

5. Extract Supermarket Data From Walmart & Target In Usa
Author: FoodDataScrape

6. How Odoo Partners Drive Growth: From Implementation To Innovation
Author: Alex Forsyth

7. Leverage Web Scraping Cold Drinks Data On Swiggy Instamart
Author: FoodDataScrape

8. Empowering Universities Through Student Engagement Crm Solutions|e2s
Author: Brenda Joyce

9. Odoo Manufacturing And Lean Practices For Small And Medium Enterprises
Author: Alex Forsyth

10. How Posiflex Pos Machines Enhances Customer Service
Author: pbs

11. Scrape Keeta Food Delivery App Data In Saudi Arabia For Insights
Author: FoodDataScrape

12. Microsoft Office Professional Plus 2021 Vs. Microsoft Office Professional Plus 2024: Which One Should You Choose?
Author: davudobuya55

13. Microsoft Office Professional Plus 2019 Vs. Microsoft Office Professional Plus 2019 Dvd: Which Version Should You Choose?
Author: davudobuya55

14. Microsoft Office Professional 2024 Vs. Microsoft Office Professional Plus 2010: Which One Is Right For You?
Author: davudobuya55

15. Microsoft Office Home Business 2021 For Mac Vs Microsoft Office Home Student 2021 For Mac: Which Is Right For You?
Author: davudobuya55

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: