PHP Introduction: What is PHP ?

PHP with Webserver and database
"PHP: Hypertext Preprocessor"

PHP is a server side scripting language, widely used in internet programming. We can develop pages with dynamic content by using PHP. By using PHP we can interact with database servers and manage the page content accordingly.

Introduction to PHP and XAMPP web server


Some important points about PHP

  • PHP runs at Web server side.
  • Your web browser at client end can鈥檛 execute PHP code.
  • PHP script handles database and manages records at server end.
  • Our PHP script at server end contains PHP code and other client side codes. After execution of PHP code, the output is posted to client side. These outputs will contain HTML , JavaScript and style codes.

What we can do by using Php?

  • Create member signup , login pages and store the details as records in a database.
  • Create shopping cart for an e-commerce site
  • Manage content of a website.
  • Create a discussion forum.
  • Create dynamic graphs and images, draw charts.
  • It is free and open source
  • PHP can run in many platforms like Linux , Windows , Max , Unix etc
  • Works well with all Web server like Apache, IIS etc
  • It can connect to many databases ( MSSQL, Oracle, MySQL etc )
Download PHP Here

Let us take one simple example.

Simple codes of Beginners



Server request for static html page by client

Installation

Installation Description
IIS7 ConfigurationAdding Modules, php5 dll
InstallationPHP5 on IIS7 server with setup Wizard
InstallationPHP5 on windees server and IIS
InstallationPHP on windees server and IIS
InstallationPHP5 on IIS7 server with setup Wizard
HostingPHP hosting server
You can read more on Installation of PHP here

PHP support and system

Function Description
phpinfo()List of settings and configuration about PHP support
php_uname()About server , OS , Host name, Machine type, version name
php_ini()Server configuration file edit and update
ini_get()Reading about the PHP settings of php.ini file settings
ini_set()Changing ( some of the ) PHP settings at page level
php_ini_loaded_file()Path of loaded php.ini file
PHP_VERSION()What is the version of PHP the system is using
Extension PHPExtension directory of PHP to store dll files for windows
Header RedirectRedirection of page using header

Basic Code

Function Description
Guide PHP beginners guide
echo()Printing output using PHP
sleep()Adding delay to script execution
CommentsAdding text to part of php code for better understanding and maintenance
NumbersPrinting numbers to screen using loop
includeInclude file with main file
ErrorsHandling PHP errors during code execution
print()Displaying output in PHP
Sample codeSimple scripts in php for beginners
When ever request comes for a static html or htm page the web server returns the page to the client. Here script processing or execution is not done. Such pages don't have dynamic capability and content is fixed. In Windows server the web server is IIS and for Linux systems Apache web servers are generally used. However PHP and Apache runs well in Windows platform also. This site is supporting PHP on a Linux platform. In the same way the server can run other scripts like ASP, Perl etc. PHP can be downloaded from www.php.net

Incase of PHP pages the server does not return the page directly to the client. The web server runs the PHP engine and the output of the executed script is posted back to the client machine.  Depending on the various input conditions the page content can be changed. PHP can easily connect to MySQL database and this combination is very popular in the internet
As per the client side browser it does not understand PHP or any other language. It can understand HTML, JavaScript, CSS etc.

The file extensions for PHP pages.
Web sites are organized at the server like we organize files and folders. So when we open a website one of the default file opens as home page of the site. Read here on how to fix the default page of a website . Usually files with php or php3 ( in old version of PHP ) extensions are files which contain PHP code. Same way we can say the files with .asp are the active server page files contains asp code. But this is not always true. At the server settings we can change the settings and tell the web server which type of files to execute through which engine or scripting language. A file with .htm extension can pass through php engine to execute php codes present inside. Read how IIS is set to pass different extensions through different engines.

However after executing different types engines the final script is posted to user browser which does not contain any PHP, ASP or any other types of scripting language and it only contains HTML and other client side scripts.

Answer these questions..
  1. By using PHP can we manage the layout of a web page ?
  2. Without installing PHP at the server can we execute a php file with php code inside ?
  3. Does the file extension matter ( by default without changing the settings ) at server end for executing scripts.
  4. Can I develop a member login script by using HTML


First PHP code displaying phpinfo() , Hello Word using localhost




basic questions on PHP


Guide to installation and How to write our first PHP Script Simple codes of Beginners

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com







    ranjith

    05-06-2009

    i want the complete tutorial of PHP.
    MAKBOOL AHAMAD ANSARI

    22-06-2009

    i would like to learn full php so i want the complete php tutorial
    walter

    22-06-2009

    Would like to learn php,so i want the full tutorial and how to configure it.
    khan

    23-07-2009

    can we have a video php tutorial
    senthil

    15-09-2009

    i want some sample project with clear coding in only php.
    thiloka

    07-10-2009

    what'sthe answer
    Md Sadique

    27-12-2009

    I want complete PHP scripts.
    nidhi

    05-01-2010

    i want whole php interview question ans and tutorial with demo
    harsha

    20-01-2010

    I need simple add save and delete code
    Prashant Patil

    14-03-2010

    want some sample project with clear coding in only php.
    sakthi

    16-03-2010

    i want to know php with mysql tutorials and also about how to create a table in mysql
    Krishna Kumar

    16-04-2010

    i really say thanks www.plus2net.com it helps more to php new learners
    phptechie

    22-06-2010

    Great stuff:)
    shakamedia

    24-06-2010

    how do I set up the server to accept php uploaded files?
    Josh

    14-12-2012

    Can you briefly explain what is php

    Post your comments , suggestion , error , requirements etc here





    PHP video Tutorials
    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer

    民权资讯网dos操作系统在线品牌起名旅游网站制作代码商丘民权机场网站外包建设公司周易与预测学下载李姓男孩起名大全字派起名wap网站建设开发网站设计广州公司给姓方的女孩起名儿童起名免费取名大全广告推广营销策划方案电视剧永不磨灭的番号全集江阴网站制作公司梦到买鞋合肥高端网站建设cnfg花町物语t恤设计网站有哪些七划的起名吉祥字大全贵溪网站制作2018年姓刘出生的男宝宝起名打分十三画的有哪些字起名字用女孩港汇恒隆广场内的美食虞城县豫剧团app营销企业推广网站设计 平面的设计郑姓 起名诗起名长津湖观后感350字少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

    民权资讯网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化