What is PHP?

PHP is a powerful, server-side scripting language that can be used to extend the functionality of your pages in many ways. It is available for all web hosting packages, and is invoked by naming the files that use it with the following extensions:

.php
.php5

The syntax of PHP is very similar to popular programming languages such as C and Perl. If you have any previous programming experience, it is likely that you’ll be able to pick up PHP in short order. No one tutorial could ever cover the hundreds of built-in PHP functions, so we highly recommend following and reading over the related links given at the bottom of this article.

PHP is embedded in a page by enclosing commands within the start tag


<?
echo "This text written by PHP!";
?>

Normal HTML tags and text cannot be included within blocks of PHP code. You can output HTML code from within a PHP block to the browser by using the echo command as shown above, or by ending the PHP block, outputting your HTML, and starting a new one. You can include as many separated blocks of PHP code in your file as you need, and any variables you set will be available to the block it was set in, and any block below that.

Further reading:

http://www.php.net/tut.php
http://www.w3schools.com/php/default.asp

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Upload a Website using FTP

A GEBO.pro hosting account provides a home for your website. Your website is published by...

Where can I view my error logs?

Your Error Logs are available in RoundCube: Browse to RoundCube (http://myaccount.gebo.pro)...

php.ini

php.ini is the PHP configuration file in which PHP directives are recorded. These can be altered...

Powered by WHMCompleteSolution