dgf
DESCRIPTION
HHHTRANSCRIPT
HEHEHEHECONTENTSACKNOWLEDGEMENT.5INTRODUCTION.61. PHP Syntax.71.1 Basic PHP Syntax.7
2. Comments in PHP....8 3. PHP variable..9 3.1 Variables In PHP...9 3.2 PHP is a loosely typed language...9 3.3 Naming rules for variable.9 4. PHP string ....10 4.1 String variable in PHP...10 4.2 The concatenation operatar...10 4.3 The strlen() function..11 4.4 the strpos() function11
5. PHP echo ...12 6. Conditional statements..12 6.1 Numeric arrays13 6.2 Acknowledgement
I express my sincere thanks to my guide Mr. Manish Shandilya (Web page developer in PHP, Bikaner), for guiding me right from the inception till the successful completion. I sincerely acknowledge him for extending his valuable guidance, support for literature, critical reviews on PHP (PHP: Hypertext Preprocessor) and the report and above all the moral support he had provided me with all stages of this topic. Thanks also too many people who provided detailed reviews on the topic PHP (PHP: Hypertext Preprocessor) and thanks also to the people who are responsible for the publication of the report.
Finally, with all this assistance, little remains for which I can take full credit.
ROHIT DUGGAL Computer Science & Engg.
VII semester, CETINTRODUCTION"PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly."
PHP is a server-side scripting language. This is generally a good definition of PHP. However, it does contain a lot of terms you may not be used to. Another way to think of PHP is a powerful, behind the scenes scripting language that your visitors won't see!
When someone visits your PHP webpage, your web server processes the PHP code. It then sees which parts it needs to show to visitors (content and pictures) and hides the other stuff (file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser.
So mainly PHP is:
PHP stands for PHP: Hypertext Preprocessor
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
PHP is an open source software
PHP is free to download and use It is also helpful to think of PHP in terms of what it can do for you. PHP will allow you to:
Reduce the time to create large websites.
Create a customized user experience for visitors based on information that you have gathered from them.
Open up thousands of possibilities for online tools. Check out PHP - Hot Scripts for examples of the great things that are possible with PHP.
Allow creation of shopping carts for e-commerce websites.Why PHP?
PHP runs on different platforms (Windows, Linux, UNIX, etc.)
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP is FREE to download from the official PHP resource: http://www.php.net/
PHP is easy to learn and runs efficiently on the server side
1. PHP Syntax
PHP code is executed on the server, and the plain HTML result is sent to the browser.
Basic PHP SyntaxA PHP scripting block always starts with. A PHP scripting block can be placed anywhere in the document.
On servers with shorthand support enabled you can start a scripting block with .
For maximum compatibility, we recommend that you use the standard form (