11
Introduction to php PHP TRAINNING IN GANDHINAGAR Shreedhoon Infotech

Introduction to php

Embed Size (px)

DESCRIPTION

we are providing professional training in gandhinagar. .net training in gandhinagar php training in gandhinagar java training in gandhinagar ios training in gandhinagar android training in gandhinagar - PowerPoint PPT Presentation

Citation preview

Page 1: Introduction to php

Introduction to phpIntroduction to php

PHP TRAINNING IN GANDHINAGAR

Shreedhoon InfotechShreedhoon Infotech

Page 2: Introduction to php

BackgroundBackground

• PHP is server side scripting system• PHP stands for "PHP: Hypertext Preprocessor"

• Syntax based on Perl, Java, and C • Very good for creating dynamic content

• If you want to focus on one system for dynamic content, this is a good one to choose

PHP TRAINNING IN GANDHINAGAR

Page 3: Introduction to php

HistoryHistory

• Started as a Perl hack in 1994 by Rasmus Lerdorf (to handle his resume), developed to PHP/FI 2.0

• By 1997 up to PHP 3.0 with a new parser engine by Zeev Suraski and Andi Gutmans

• Current Version of Php is 5.6.0 Released on 28-Aug-2014.

• In which all OOPs concepts are briefly taken on it.

PHP TRAINNING IN GANDHINAGAR

Page 4: Introduction to php

PHP ScriptsPHP Scripts

• Typically file ends in .php--this is set by the web server configuration

• The PHP script starts with a <?php tag and ends with ?>

Example : <?php echo “A simple PHP Script.”; ?>

PHP TRAINNING IN GANDHINAGAR

Page 5: Introduction to php

PHP Scripts

• You can alternatively start your PHP scripts with the <script> tag as follows :

Example : <script language="PHP"> echo "A simple intial script.";

</script>

PHP TRAINNING IN GANDHINAGAR

Page 6: Introduction to php

PHP Scripts

• If have short_open_tag enabled in its configuration file, you can use <? and ?>

Example : <? echo 'this code is within short tags'; ?>

PHP TRAINNING IN GANDHINAGAR

Page 7: Introduction to php

PHP Scripts

• If asp_tags is enabled in the PHP configuration file, you can use <% and %> as delimiters.

Example : <% echo 'You may optionally use ASP-style tags'; %>

PHP TRAINNING IN GANDHINAGAR

Page 8: Introduction to php

Two WaysTwo Ways

• You can embed sections of php inside html:

• Or you can call html from php:

<BODY> <?php

echo "Hello World!"; ?></BODY>

<?phpecho "<html><head><title>Howdy</title>…?> PHP TRAINNING IN GANDHINAGAR

Page 9: Introduction to php

How PHP Pages are Accessed and Interpreted

Page 10: Introduction to php

Address :   Shreedhoon Infotech 443, Third Floor, Sec- 16 shopping center, Nr, Petrol Pump, Gandhinagar - 382016, Gujarat, India.

Phone: (+91)98-98-843264

Email: [email protected]

Shreedhoon InfotechShreedhoon Infotech

PHP TRAINNING IN GANDHINAGAR

Page 11: Introduction to php

Thank you So Much..

PHP TRAINNING IN GANDHINAGAR