Upload
jayc8586
View
22
Download
1
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
Introduction to phpIntroduction to php
PHP TRAINNING IN GANDHINAGAR
Shreedhoon InfotechShreedhoon Infotech
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
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
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
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
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
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
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
How PHP Pages are Accessed and Interpreted
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
Thank you So Much..
PHP TRAINNING IN GANDHINAGAR