Introduction to PHP


INTRODUCTION OF PHP

  • ·       PHP (Personal Home Pages) developed by Rasmus Lerdorf in 1995. 
  •      Also stands for Hypertext Pre-processor ( Hypertext:- text containing web mark-ups, Pre-processor:- all the Hypertext is processed first and then the result is sent as HTML to the web browser)
  •       A client cannot see the PHP source code.
  • ·    A server-side scripting language (interpreted on the server).
  • ·    Used to develop Static websites or Dynamic websites or Web applications.
  • ·   A scripting language interprets scripts at runtime.
  • ·   Script:- a set of programming instructions, embedded into other software environments and used to enhance the performance or perform routine tasks for an application.
  • ·  Server-side scripts:- interpreted on the server ex. Php
  • ·  Client-side scripts:- interpreted by the client application ex. Java script. 
  •      Client computers accessing the PHP scripts by a web browser.
  • ·   PHP code embedded into HTML code or used in combination with various web template systems, web content management systems, and web frameworks.
  • A PHP file contains PHP tags and ends with the extension ".php".


Syntax:- 
<?Php
PHP code goes here
?>

Html embedded php code
 
<html>
 
<head>
<title>PHP Example</title>
</head>
 
<body>
 
<?Php
PHP code ;
?>
</body>
 
</html>
 
 Example:
<html>
 
<head>
<title>PHP Example</title>
</head>
 
<body>
<?Php echo "Hello, World! This is PHP code";?>
</body>
 
</html>
 
 
Output:
Hello, World! This is PHP code
 
 =================================

PHP Features

Performance:

  • The PHP script is executed much faster than other languages such as JSP and ASP.
  • Uses own memory, so the server workload and loading time is automatically reduced, and processing speed faster and better performance. 
  • An Interpreted language, need not a compiler.


Open Source:

  • Source code and software are freely available on the php.net official website
  • Easy to install and set up.


Familiarity with the syntax:

  • Many syntaxes, features, and specific functions are similar to C, Java, and Perl.
  • Easily understandable syntax.
  • Comfortable coding.


Embedded: 

  • Easily embedded within HTML tags and script. 
  • Use  forms, for collect the data from users, save it into the database and return output useful information to the user. For example - Registration form.


Platform Independent:

  • Available for WINDOWS, MAC, LINUX & UNIX operating system.
  • Application developed in one OS can be easily executed in other OS also.


Database Support:

  • Supports all the leading databases such as MySQL, SQLite, ODBC, etc.


Error Reporting:-

  • Use predefined error reporting constants to generate an error notice or warning at runtime. E.g., E_ERROR, E_WARNING, E_STRICT, E_PARSE.


Loosely Typed Language:

  •  Use variable without declaring its datatype.
  • Automatically convert or use data type according to store value at runtime.


Web servers Support:

  • Compatible with almost all local servers used today like Apache, Netscape, Microsoft IIS, etc.


Security:

  • Provides multiple layers of security to prevent threats and malicious attacks. 
  • Encrypt the data and apply validation.


Control:

  • Maximum control over the websites due to few lines of code and can changes easily whenever we want. 
  • Supports various protocols such as Hypertext Transfer Protocol (HTTP), POP3 (Post Office Protocol 3), Simple Network Management Protocol (SNMP), LDAP (Lightweight Directory Access Protocol),  Internet Message Access Protocol (IMAP), and many more. 
  • It handles dynamic content, database as well as session tracking (maintain state (data) of an user.) And cookies (a small piece of text sent to your browser by a website when we visit. It helps the site remember information about our visit, )for the website.


Help by PHP Community:

  • A large community of developers regularly updates documentation, tutorials, online help, and faqs. 
  • Provides Many good PHP frameworks like Zend, Codeigniter, and Laravel. 
  • Develop Popular Content Management Systems like Joomla, Drupal, etc . 

Uses of PHP

  • Create Web applications like Social Networks (Facebook, Digg), Blogs(WordPress, Joomla), e-commerce websites(OpenCart, Magento etc.) Etc.
  • Common Line Scripting to perform different operations on any machine.
  • Sending Emails or building email applications.
  • WordPress is one of the most used blogging(content management system  -CMS) platforms in the World and provides WordPress plugin for application development.



================================================


Post a Comment

0 Comments

哆哆女性网武汉申通快递电话成都网站制作培训小学生作文四年级的seo大神排八字算命最准的生辰八字算命福星高照电影在线看贸易公司起名大全参照贵阳房地产网站建设病毒库电子签名一般多少钱网络营销推广软件吧现在学seo怎么样初心使命指的是什么trackpad做seo的公司武汉姓单咋起名公司网站建设文案包头餐饮店周公解梦 佛滔姓黄给宝宝起名字大全seo优化404诗词一家风水师周易设计入门网站周易书籍免费阅读的cctv15php网站建设多少钱张 高起名金南俊延边网站设计淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化