PHP may seem to be a very easy language but many of don't know how PHP works. We will discuss the less known facts about PHP and we will also cover some common type of software design patterns used with PHP
The PHP date() function formats timestamps to readable dates and times. It takes a format string as the first parameter to specify how the date/time should be formatted. Common format characters include d for day, m for month, and Y for year. The date() function can also take an optional second parameter, which is a timestamp. If no timestamp is provided, it will use the current date and time. Cookies are often used to identify users across multiple pages. The setcookie() function creates a cookie, while $_COOKIE retrieves cookie values. Sessions in PHP allow information to be stored and retrieved across multiple pages for a single user.
PHP works through a multi-step lifecycle process when handling web requests. It includes:
1. Parsing, compilation, and scanning of PHP code when the web server starts.
2. When a request is made, PHP initializes extensions and populates variables through each extension's MINIT and RINIT methods.
3. PHP executes the requested page's code.
4. After page execution, PHP performs cleanup by calling each extension's RSHUTDOWN method and unseting variables.
5. PHP finally shuts down by calling each extension's MSHUTDOWN method to unregister handlers and free memory.
This document provides an overview of PHP memory usage and management. It introduces key concepts like the Zend Memory Manager (ZendMM), which handles memory allocation and freeing for each PHP request. The document demonstrates how to monitor memory usage from PHP using functions like memory_get_usage() and from the OS perspective using /proc. It also discusses potential memory issues like references and circular references, and how to track reference counts. The goal is to help understand and optimize PHP memory consumption.
This document contains notes from a PHP extensions workshop. It introduces Julien Pauli, the workshop presenter, and outlines what attendees should bring and know, such as C skills and a Linux environment. The document then covers various topics around PHP extensions, including compiling PHP with debugging, creating an extension skeleton, extension APIs and versions, memory management using Zend Memory Manager, and working with zvals (PHP variables). Attendees will learn how to create, build, and load their first PHP extension.
Mysqlnd, an unknown powerful PHP extensionjulien pauli
The document discusses mysqlnd, a PHP extension that replaces libmysql. Mysqlnd provides significant memory savings when processing result sets by avoiding duplicating result data in memory. It also includes detailed statistics collection and an extensible plugin architecture. Mysqlnd is now the default MySQL connector used by PHP.
The document summarizes a training presentation on PHP with MySQL. It begins with an introduction to the Center for Electronic Governance (CEG), which was established in 2006 by the Government of Rajasthan to oversee technical education. The presentation then covers the history of PHP, what PHP is, its features, code syntax, components like variables, operators, arrays and functions. It discusses advantages of PHP like being open source and supporting multiple databases. Finally, it provides an overview of why MySQL is a popular database to use with PHP before describing some basic MySQL queries.
PHP is an open-source server-side scripting language used for web development. It was created by Rasmus Lerdorf in 1994. Some key points:
- PHP scripts are embedded into HTML pages and executed on the server side, with the output sent to the client. This allows PHP to generate dynamic web page content.
- PHP is free to use and runs on many platforms including Windows, Linux, and Mac. It is compatible with many databases like MySQL.
- The language syntax is loosely based on C and Java. Key constructs include variables, strings, arrays, functions, loops, conditional statements, and object-oriented capabilities.
- PHP files use .php extensions and code
The document discusses PHP functions for ZIP files, filesystems, and calendars. It provides examples of ZIP functions like zip_open() and zip_read() to open and read ZIP files. Filesystem functions like basename() and is_writable() are described to manipulate system files. Calendar functions like cal_days_in_month() and cal_to_jd() allow working with different calendar formats by converting between Julian dates and calendar representations. Code examples demonstrate using several of these functions.
The PHP date() function formats timestamps to readable dates and times. It takes a format string as the first parameter to specify how the date/time should be formatted. Common format characters include d for day, m for month, and Y for year. The date() function can also take an optional second parameter, which is a timestamp. If no timestamp is provided, it will use the current date and time. Cookies are often used to identify users across multiple pages. The setcookie() function creates a cookie, while $_COOKIE retrieves cookie values. Sessions in PHP allow information to be stored and retrieved across multiple pages for a single user.
PHP works through a multi-step lifecycle process when handling web requests. It includes:
1. Parsing, compilation, and scanning of PHP code when the web server starts.
2. When a request is made, PHP initializes extensions and populates variables through each extension's MINIT and RINIT methods.
3. PHP executes the requested page's code.
4. After page execution, PHP performs cleanup by calling each extension's RSHUTDOWN method and unseting variables.
5. PHP finally shuts down by calling each extension's MSHUTDOWN method to unregister handlers and free memory.
This document provides an overview of PHP memory usage and management. It introduces key concepts like the Zend Memory Manager (ZendMM), which handles memory allocation and freeing for each PHP request. The document demonstrates how to monitor memory usage from PHP using functions like memory_get_usage() and from the OS perspective using /proc. It also discusses potential memory issues like references and circular references, and how to track reference counts. The goal is to help understand and optimize PHP memory consumption.
This document contains notes from a PHP extensions workshop. It introduces Julien Pauli, the workshop presenter, and outlines what attendees should bring and know, such as C skills and a Linux environment. The document then covers various topics around PHP extensions, including compiling PHP with debugging, creating an extension skeleton, extension APIs and versions, memory management using Zend Memory Manager, and working with zvals (PHP variables). Attendees will learn how to create, build, and load their first PHP extension.
Mysqlnd, an unknown powerful PHP extensionjulien pauli
The document discusses mysqlnd, a PHP extension that replaces libmysql. Mysqlnd provides significant memory savings when processing result sets by avoiding duplicating result data in memory. It also includes detailed statistics collection and an extensible plugin architecture. Mysqlnd is now the default MySQL connector used by PHP.
The document summarizes a training presentation on PHP with MySQL. It begins with an introduction to the Center for Electronic Governance (CEG), which was established in 2006 by the Government of Rajasthan to oversee technical education. The presentation then covers the history of PHP, what PHP is, its features, code syntax, components like variables, operators, arrays and functions. It discusses advantages of PHP like being open source and supporting multiple databases. Finally, it provides an overview of why MySQL is a popular database to use with PHP before describing some basic MySQL queries.
PHP is an open-source server-side scripting language used for web development. It was created by Rasmus Lerdorf in 1994. Some key points:
- PHP scripts are embedded into HTML pages and executed on the server side, with the output sent to the client. This allows PHP to generate dynamic web page content.
- PHP is free to use and runs on many platforms including Windows, Linux, and Mac. It is compatible with many databases like MySQL.
- The language syntax is loosely based on C and Java. Key constructs include variables, strings, arrays, functions, loops, conditional statements, and object-oriented capabilities.
- PHP files use .php extensions and code
The document discusses PHP functions for ZIP files, filesystems, and calendars. It provides examples of ZIP functions like zip_open() and zip_read() to open and read ZIP files. Filesystem functions like basename() and is_writable() are described to manipulate system files. Calendar functions like cal_days_in_month() and cal_to_jd() allow working with different calendar formats by converting between Julian dates and calendar representations. Code examples demonstrate using several of these functions.
The document provides an overview of installing PHP on Windows systems. It discusses choosing between the Windows InstallShield method (for beginners) or manual binary installation. The InstallShield process is demonstrated step-by-step using IIS as an example, covering downloading, choosing options, file extensions, and testing. The manual method requires copying files, setting permissions, and configuring the web server by adding application mappings in IIS. Examples demonstrate including header and footer files to create templates.
PHP was created in 1994 by Rasmus Lerdorf. It began as a simple scripting language for generating dynamic web pages and has grown over 20+ years to become one of the most popular web development languages. PHP 7 was released in December 2015 and brought major performance improvements through optimizations in the Zend engine. While some criticize PHP's design, others appreciate how easy it is to learn, install, and find work developing with PHP due to its large community and number of open source projects that use it.
PHP is a widely used scripting language originally designed for web development. It code is embedded into HTML and interpreted by a web server to produce dynamic web pages. PHP can also be run from the command line or used for desktop applications. It is available on most operating systems and works with many databases. The PHP source code is free to use and customize.
The document provides an overview of PHP, MySQL, Apache, and how they relate. It discusses:
1) The history and purpose of PHP, MySQL, Apache, and how they work together in the AMP stack.
2) How PHP is used to create dynamic web pages, MySQL is used for data storage, and Apache runs PHP pages.
3) Configuration steps for installing PHP with IIS or WAMP on Windows systems.
PHP is a server-side scripting language that is commonly used for web development to create dynamic web pages. It allows developers to manage forms, interface with databases like MySQL, and generate HTML on the fly. PHP scripts can easily be embedded into HTML documents and has seen tremendous growth since its creation in 1994, now being used on over 20 million websites. It is free to use, open source, and has a large community constantly improving it.
PHP is a widely used open source scripting language that is embedded in HTML and interpreted by servers to produce dynamic web pages. It supports features like variables, functions, arrays, sessions, cookies, and connecting to databases like MySQL. PHP code is written in .php files and contains HTML tags. It allows combining of HTML markup and PHP code to create dynamic content.
PHP is a scripting language originally designed for web development to produce dynamic web pages. It is especially suited for server-side web development. PHP code is embedded into HTML and executed by the PHP runtime on the web server to create dynamic content. A sample PHP code displays "Hello World" by echoing the text. PHP supports various data types including integers, arrays, strings, and resources. Code optimizers aim to improve PHP performance by reducing code size and execution time. PHP includes many open source libraries and allows developers to extend its functionality through extensions written in C.
Everyone must migrate to PHP 7! Take advantage of exceptional performance improvements, cut your hardware use in half and enjoy the best of PHP. This workshop is for everyone that is still eyeing PHP 7 while still using PHP 5, and wants to review their 1 million LOC project before jumping to PHP 7. When migrating, we need to check old code and target only the interesting issues. This session will connect the backward incompatibilities and new features to their actual location in the code, relying on static analysis to quickly process a large code base. Based on our accumulated experience and tools, we'll review the issues, diagnose criticality, select the best fixes and prioritize the tasks. All tools are Open Source, and ready to be integrated into your project lifecycle.
PHP is a loosely typed scripting language commonly used for web development. It was created by Rasmus Lerdorf in 1995 and has evolved through several versions. PHP code is interpreted at runtime and allows for features like conditionals, loops, functions, classes, and objects to build dynamic web applications.
PHP is a server-side scripting language used to create dynamic web pages. It was created in 1994 by Rasmus Lerdorf and is now used by over 20 million websites. PHP code is embedded into HTML and is interpreted by the server before the page is sent to the browser. It allows developers to support databases, include files like images, and build e-commerce sites, forums, and other dynamic content without licensing fees. PHP is a flexible, scalable, and easy to use language for developing dynamic websites.
This document provides an overview of basic PHP concepts including:
- PHP syntax with opening and closing tags <?php ?>
- Language constructs like echo and print for outputting strings
- Variables, data types, operators, and functions
- Conditional statements like if/else and switch statements
- Looping with while, do/while, and for loops
- Arrays for storing multiple values
- Form handling with $_GET and $_POST superglobals
- Connecting to databases using MySQLi or PDO extensions
The document covers PHP fundamentals and is intended as an introduction for learning the language. It explains core PHP concepts through examples and explanations in a step-by-step manner over 47 sections
This document discusses writing PHP extensions in Go using cgo. It explains how to build a Go package as a shared library, export functions so they can be called from C, and register the extension in PHP. Some constraints of calling C from Go like lack of function-like macros and union member access are also noted. The document provides code examples and links to a sample GitHub project for building a PHP extension in Go. It raises that segmentation faults may occasionally occur during PHP shutdown, which could indicate an issue in the Go runtime.
PHP is one of the most popular open source programming languages in the world. It powers some of the highest traffic sites in the world, and at the same time it powers some of the lowest traffic sites in the world. But have you ever wondered how it works under the hood? Have you been overwelmed by the thought of looking at the C code that runs PHP? Well, this talk is for you!
We're going to explore how PHP works under the hood, by looking at a PHP implementation of it: PHPPHP! Have you ever wondered what an OPCODE Cache is really doing? Have you ever wondered what a T_PAAMAYIM_NEKUDOTAYIM is? Have you ever wondered why an interpreted languages has a compiler? We'll explore all of these topics, and more! And the best part of it all? You don't need to know C to understand the details! Using PHPPHP, we can explore the language details in a high level language, where things like memory management don't get in the way of the real content. If you've ever wanted to know how PHP works, this is the talk for you!
This document summarizes the key configuration options and settings in the PHP initialization file (php.ini). It outlines the order PHP searches for this file, describes the development and production php.ini files, and provides an overview of common php.ini directives for expressions, errors, syntax highlighting, paths/directories, and more. Key settings for different PHP modules are also highlighted.
PHP is a widely-used open source scripting language that can be used to create dynamic web pages. PHP code is executed on the server and generates HTML that is sent to the browser. PHP files have a .php extension and can contain HTML, CSS, JavaScript, and PHP code. PHP can connect to databases, collect form data, generate dynamic content, and more. It runs on many platforms and is compatible with popular web servers. Many large sites like Facebook use PHP due to its capabilities and flexibility.
The document summarizes PHP, an open-source scripting language commonly used for web development. PHP can be embedded into HTML and is interpreted by web servers to create dynamic web pages. Key points covered include PHP's origins, popularity, uses, and how to install and configure it by placing PHP files on a web server and ensuring the server can parse the files. The document also provides links to tutorials on installing PHP and its dependencies.
This document provides an overview of PHP (Hypertext Preprocessor), a popular scripting language used to develop dynamic web applications and websites. It discusses what PHP is, how it works with web servers, basic PHP syntax like comments and variables, and PHP data types. Key points covered include that PHP code is executed on the server and outputs HTML, PHP variables do not require declaration, and PHP supports common data types like strings, integers, floats, booleans and arrays.
This document provides an introduction and overview of PHP, including:
1. PHP is an open-source scripting language used for web development that allows developers to add dynamic content to websites. It can be embedded into HTML and is commonly used to create dynamic websites.
2. Key features of PHP include that it is free, runs on most web servers, and supports a wide range of databases. It allows developers to generate dynamic page content, collect form data, and more.
3. The document discusses PHP syntax, variables, embedding PHP code in web pages, and outputting data through functions like print(), echo(), and sprintf(). It provides examples of how to write PHP code and integrate it into HTML
The document provides an overview of installing PHP on Windows systems. It discusses choosing between the Windows InstallShield method (for beginners) or manual binary installation. The InstallShield process is demonstrated step-by-step using IIS as an example, covering downloading, choosing options, file extensions, and testing. The manual method requires copying files, setting permissions, and configuring the web server by adding application mappings in IIS. Examples demonstrate including header and footer files to create templates.
PHP was created in 1994 by Rasmus Lerdorf. It began as a simple scripting language for generating dynamic web pages and has grown over 20+ years to become one of the most popular web development languages. PHP 7 was released in December 2015 and brought major performance improvements through optimizations in the Zend engine. While some criticize PHP's design, others appreciate how easy it is to learn, install, and find work developing with PHP due to its large community and number of open source projects that use it.
PHP is a widely used scripting language originally designed for web development. It code is embedded into HTML and interpreted by a web server to produce dynamic web pages. PHP can also be run from the command line or used for desktop applications. It is available on most operating systems and works with many databases. The PHP source code is free to use and customize.
The document provides an overview of PHP, MySQL, Apache, and how they relate. It discusses:
1) The history and purpose of PHP, MySQL, Apache, and how they work together in the AMP stack.
2) How PHP is used to create dynamic web pages, MySQL is used for data storage, and Apache runs PHP pages.
3) Configuration steps for installing PHP with IIS or WAMP on Windows systems.
PHP is a server-side scripting language that is commonly used for web development to create dynamic web pages. It allows developers to manage forms, interface with databases like MySQL, and generate HTML on the fly. PHP scripts can easily be embedded into HTML documents and has seen tremendous growth since its creation in 1994, now being used on over 20 million websites. It is free to use, open source, and has a large community constantly improving it.
PHP is a widely used open source scripting language that is embedded in HTML and interpreted by servers to produce dynamic web pages. It supports features like variables, functions, arrays, sessions, cookies, and connecting to databases like MySQL. PHP code is written in .php files and contains HTML tags. It allows combining of HTML markup and PHP code to create dynamic content.
PHP is a scripting language originally designed for web development to produce dynamic web pages. It is especially suited for server-side web development. PHP code is embedded into HTML and executed by the PHP runtime on the web server to create dynamic content. A sample PHP code displays "Hello World" by echoing the text. PHP supports various data types including integers, arrays, strings, and resources. Code optimizers aim to improve PHP performance by reducing code size and execution time. PHP includes many open source libraries and allows developers to extend its functionality through extensions written in C.
Everyone must migrate to PHP 7! Take advantage of exceptional performance improvements, cut your hardware use in half and enjoy the best of PHP. This workshop is for everyone that is still eyeing PHP 7 while still using PHP 5, and wants to review their 1 million LOC project before jumping to PHP 7. When migrating, we need to check old code and target only the interesting issues. This session will connect the backward incompatibilities and new features to their actual location in the code, relying on static analysis to quickly process a large code base. Based on our accumulated experience and tools, we'll review the issues, diagnose criticality, select the best fixes and prioritize the tasks. All tools are Open Source, and ready to be integrated into your project lifecycle.
PHP is a loosely typed scripting language commonly used for web development. It was created by Rasmus Lerdorf in 1995 and has evolved through several versions. PHP code is interpreted at runtime and allows for features like conditionals, loops, functions, classes, and objects to build dynamic web applications.
PHP is a server-side scripting language used to create dynamic web pages. It was created in 1994 by Rasmus Lerdorf and is now used by over 20 million websites. PHP code is embedded into HTML and is interpreted by the server before the page is sent to the browser. It allows developers to support databases, include files like images, and build e-commerce sites, forums, and other dynamic content without licensing fees. PHP is a flexible, scalable, and easy to use language for developing dynamic websites.
This document provides an overview of basic PHP concepts including:
- PHP syntax with opening and closing tags <?php ?>
- Language constructs like echo and print for outputting strings
- Variables, data types, operators, and functions
- Conditional statements like if/else and switch statements
- Looping with while, do/while, and for loops
- Arrays for storing multiple values
- Form handling with $_GET and $_POST superglobals
- Connecting to databases using MySQLi or PDO extensions
The document covers PHP fundamentals and is intended as an introduction for learning the language. It explains core PHP concepts through examples and explanations in a step-by-step manner over 47 sections
This document discusses writing PHP extensions in Go using cgo. It explains how to build a Go package as a shared library, export functions so they can be called from C, and register the extension in PHP. Some constraints of calling C from Go like lack of function-like macros and union member access are also noted. The document provides code examples and links to a sample GitHub project for building a PHP extension in Go. It raises that segmentation faults may occasionally occur during PHP shutdown, which could indicate an issue in the Go runtime.
PHP is one of the most popular open source programming languages in the world. It powers some of the highest traffic sites in the world, and at the same time it powers some of the lowest traffic sites in the world. But have you ever wondered how it works under the hood? Have you been overwelmed by the thought of looking at the C code that runs PHP? Well, this talk is for you!
We're going to explore how PHP works under the hood, by looking at a PHP implementation of it: PHPPHP! Have you ever wondered what an OPCODE Cache is really doing? Have you ever wondered what a T_PAAMAYIM_NEKUDOTAYIM is? Have you ever wondered why an interpreted languages has a compiler? We'll explore all of these topics, and more! And the best part of it all? You don't need to know C to understand the details! Using PHPPHP, we can explore the language details in a high level language, where things like memory management don't get in the way of the real content. If you've ever wanted to know how PHP works, this is the talk for you!
This document summarizes the key configuration options and settings in the PHP initialization file (php.ini). It outlines the order PHP searches for this file, describes the development and production php.ini files, and provides an overview of common php.ini directives for expressions, errors, syntax highlighting, paths/directories, and more. Key settings for different PHP modules are also highlighted.
PHP is a widely-used open source scripting language that can be used to create dynamic web pages. PHP code is executed on the server and generates HTML that is sent to the browser. PHP files have a .php extension and can contain HTML, CSS, JavaScript, and PHP code. PHP can connect to databases, collect form data, generate dynamic content, and more. It runs on many platforms and is compatible with popular web servers. Many large sites like Facebook use PHP due to its capabilities and flexibility.
The document summarizes PHP, an open-source scripting language commonly used for web development. PHP can be embedded into HTML and is interpreted by web servers to create dynamic web pages. Key points covered include PHP's origins, popularity, uses, and how to install and configure it by placing PHP files on a web server and ensuring the server can parse the files. The document also provides links to tutorials on installing PHP and its dependencies.
This document provides an overview of PHP (Hypertext Preprocessor), a popular scripting language used to develop dynamic web applications and websites. It discusses what PHP is, how it works with web servers, basic PHP syntax like comments and variables, and PHP data types. Key points covered include that PHP code is executed on the server and outputs HTML, PHP variables do not require declaration, and PHP supports common data types like strings, integers, floats, booleans and arrays.
This document provides an introduction and overview of PHP, including:
1. PHP is an open-source scripting language used for web development that allows developers to add dynamic content to websites. It can be embedded into HTML and is commonly used to create dynamic websites.
2. Key features of PHP include that it is free, runs on most web servers, and supports a wide range of databases. It allows developers to generate dynamic page content, collect form data, and more.
3. The document discusses PHP syntax, variables, embedding PHP code in web pages, and outputting data through functions like print(), echo(), and sprintf(). It provides examples of how to write PHP code and integrate it into HTML
This document provides an overview of PHP (Hypertext Preprocessor) including:
- An introduction to PHP as a server-side scripting language used to build dynamic web applications.
- Features of PHP like performance, open source availability, familiar syntax, platform independence, and database support.
- Common PHP applications like handling forms, restricting user access, adding login features, and encrypting data.
- Basic PHP syntax, variables, variable types, scopes, and predefined variables.
- How to set up a PHP development environment using XAMPP which bundles PHP, Apache, and MySQL.
This document discusses a proposed Packers and Movers Management System. It includes sections on introduction, advantages, system requirements, software features, and feasibility study. The key points are:
1) The system provides an interactive platform for users to book packers and movers services through a web portal. It allows automatic entries into the database and easy generation of reports.
2) The system requirements include minimum hardware specifications and software including PHP, MySQL, Apache and phpMyAdmin.
3) A feasibility study covers operational feasibility to ensure ease of use, technical feasibility to evaluate the technology used, and economic feasibility to assess the costs.
PHP is a widely used scripting language originally designed for web development. It allows server-side code to produce dynamic web page content. PHP code is embedded into HTML and executed by a PHP interpreter on the web server to create web pages. It can be deployed on most web servers and operating systems free of charge. Some key points about PHP include:
- It was created by Rasmus Lerdorf in 1995 and is now produced by The PHP Group.
- PHP code is interpreted from HTML files and outputs HTML. It focuses on server-side scripting to generate dynamic web content.
- Popular frameworks built with PHP include CakePHP, Symfony, CodeIgniter, and Zend Framework.
The document discusses PHP, including its uses for server-side scripting, command line scripting, and desktop applications. PHP files use the .php extension and contain HTML tags and PHP scripting code. Key aspects of PHP covered are comments, how the PHP interpreter works by processing pages and communicating with other systems, and the PHP.ini configuration file for customizing PHP behavior.
This document provides an overview of PHP (Hypertext Preprocessor), a widely-used open source scripting language especially suited for web development. It can be embedded into HTML and is executed on the server. PHP files contain text, HTML tags, and scripts enclosed in special PHP tags. An example PHP file is shown that outputs "Hello World". Reasons for using PHP include that it is open source, cross-platform, has free development tools, and supports many databases. PHP can be used for server-side scripting, command line scripting, and desktop applications. The installation procedure and basic PHP scripts, variables, operators, and functions are also outlined.
PHP is a widely used scripting language, powering over 77% of websites with known server-side programming languages. It was created in 1994 and continues to be actively developed and maintained. Some key facts about PHP include its long history, large ecosystem of frameworks and libraries, and continued improvements in performance and features through projects like HHVM.
PHP is a scripting language originally designed for web development. It allows code to be embedded into HTML pages to produce dynamic web content. PHP code is executed by the PHP runtime on the web server. A small sample PHP code displays "Hello World" by echoing a string. PHP supports various data types including integers, arrays, strings, and resources. It can be optimized for speed by reducing the size of compiled code. PHP includes many open source libraries and allows extensions to be built to add new functionality.
PHP is a scripting language originally designed for web development. It allows code to be embedded into HTML pages to produce dynamic web content. PHP code is executed by the PHP runtime on the web server. A small sample PHP code displays "Hello World" by using PHP echo tags within HTML tags. PHP supports various data types including integers, arrays, strings, and resources. It can be optimized for speed by reducing the size of compiled code. PHP includes many open source libraries and allows extensions to be built to add new functionality.
PHP stands for Hypertext Preprocessor and is a widely used scripting language originally designed for web development. PHP code is embedded into HTML and interpreted by a web server to generate dynamic web pages. PHP can also be run from the command line. It includes many libraries and extensions that allow it to interface with different systems. PHP's configuration file php.ini determines aspects of its behavior and is searched in several default locations upon startup.
This document provides information about a Web Engineering II course. It outlines the course instructor, marks distribution including assignments, quizzes, attendance, mid-term and final exam. It then covers several chapters on PHP including its history and evolution, what PHP is, how to set it up, basic syntax and concepts, and differences between echo and print functions.
PHP is a server-side scripting language used for web development that allows developers to create dynamic web pages. It was created in 1995 and is open-source, cross-platform, and widely used. PHP code can be embedded within HTML or used with template engines and frameworks. As a server-side language, it interacts with databases to generate interactive output like HTML, PDFs, or images that is then sent to users. Files using the PHP language have the .php extension.
This document contains notes on PHP covering topics such as:
- PHP is a popular scripting language suited for web development created by Rasmus Lerdorf in 1994.
- Advantages of PHP include being open source, supporting many databases, and being platform independent.
- PHP can be used to build dynamic web applications with MySQL, handle dynamic content and sessions, and encrypt data.
- XAMPP is a free and open source package used to install PHP on Windows, Linux, and Mac operating systems.
- PHP variables, constants, data types, functions, and operators are explained.
in the IT Industry, the Demand of Certified expert PHP Developer is High. Techedo Technologies Institute provides Chandigarh's Best PHP Training and Certified Course with 100% job Placement.
PHP is an open-source server-side scripting language used for web development. It allows programmers to embed PHP code into HTML pages which is executed on the server to generate dynamic web pages. PHP scripts are interpreted at runtime rather than compiled, making it compatible with many databases and operating systems. PHP works with web servers to deliver dynamic HTML content to users. It is a cost-effective option for developing websites, web applications, and integrating with content management systems and payment gateways. Training in PHP covers topics like syntax, variables, data types, operators, loops and frameworks over 6-12 month programs.
PHP is a widely-used scripting language for web development that is embedded into HTML. It runs on web servers and takes PHP code as input to create web pages as output. To use PHP for websites, you need PHP itself installed on a web server along with having a web browser. This document provides instructions on installing PHP and configuring it to work with an Apache web server on Linux. It describes downloading and extracting the PHP files, editing the configuration file php.ini, and restarting the web server for the changes to take effect.
It is simple to integrate this language because many users offer software development kits that handle the heavy work. I hope the above mentioned information is beneficial for you and you will find the best PHP training Institute In Delhi.
This course teaches applied web development using PHP. Students will learn to set up a local development environment with XAMPP, build databases with PHPMyAdmin, and create dynamic, data-driven web applications using PHP and frameworks like Bootstrap. Students will also learn source control with GitHub and how to deploy applications to the internet using Heroku.
The document provides an overview of PHP and frameworks. It discusses open source software, widely used open source products like Linux, Apache, MySQL, and PHP. It covers the difference between open source and closed source software, pros and cons of open source, and background information on PHP including its history, variables, data types, conditional and looping statements, functions, arrays, and more. The document also discusses PHP frameworks, popular frameworks like WordPress, Magento and Opencart, and includes an index of topics covered.
Our COO - Mr. Rajiv Madan and our HR Head - Pooja Das deliver a stimulating session on "4 ways to be more Disciplined". Using Videos to send the real message across and showcasing how this can help our members be more productive and efficient at work and in life for overall success.
Positive Thinking and Positive Attitude go hand-in-hand.
It is said that a 'Great Doctor with a Bad attitude is indeed a very Bad Doctor'.
If we think Positive we can be happy at all times, and we can accomplish all that we want with ease. We will further spread more positivity and helps others be positive as well thereby creating a domino effect.
In this workshop our COO - Mr. Rajiv Madan showcases some interesting videos and presents how we can learn to think positive and why it is relevant.
1) The document provides an introduction and agenda for a presentation on Docker, including definitions of key Docker concepts like containers, images, and architecture.
2) It explains the difference between virtualization and containerization, and why Docker is useful for building and shipping applications.
3) The presentation will demonstrate how to dockerize a project using environment variables, volume mounting, and commands like build, run, and stop.
Our QA Lead Ms. Yamini Dobhal delivers a highly technical lecture on EED best practices. In the world of cutting edge large scale web and mobile apps, Performance, Security and Scalability are Key. This goes hand in hand with solid engineering design. This talk covered some best practices and core guidelines that Atlogys inculcates in the development of each of its apps. Yamini talks about the checklist set of tests and the tools developers and QA associates should install and use to account for the coding guidelines. Developers are informed about basic browser extensions and safe coding techniques that can incorporate aspects of fast performance, GDPR and security from the ground up. DevOps are informed about core fundamental server settings that expedite responses.
The document discusses Atomic Design and Pattern Lab methodologies. Atomic Design breaks interfaces into atoms, molecules, organisms, templates, and pages to create consistent and modular design systems. Pattern Lab is a tool that helps build Atomic-based design systems through a component library, viewport resizing, and linking components together. It provides advantages like reusability, modularity, and easier updates.
This document provides an overview of version control using Git. It discusses the basics of Git including the three states of files, getting a Git repository, recording changes, undoing changes, working with remotes and tagging. It also covers Git branching, merging, and resolving conflicts. Remote branches are explained as well as how to push and pull from remote repositories. The key benefits of Git's lightweight branching model and fast merging are highlighted.
This Tech Talk covers the basic fundamental guidelines of HTML5 and CSS3 and how efficient code can be written using these technologies.
In this tech talk, the SMACSS and design guidelines are also discussed which are to be followed while creating PSD's with some UX fundamentals.
Presented by Yatendra Jain & Priyanka Shukla - UI and Web Developers at Atlogys Technical Consulting.
The message broker systems such as RabbitMQ are gaining a lot of momentum nowadays in large scale app development. They allow us to accomplish many prevalent tasks in a parallel manner without affecting the SLA of the micro-service.
This presentation talks about RabbitMQ and how one can leverage its capabilities for making your software architecture more robust and scalable.
Tech Talk conducted at Atlogys technical Consulting, Delhi by Senior Tech Lead - Mr. Gaurav Garg.
Youtube recording also available at the Atlogys Academy Channel.
The document discusses Behavior Driven Development (BDD) and test automation. It provides an overview of BDD and how it can be used with the JBehave framework for test automation. The key steps for setting up BDD with JBehave are outlined, including writing stories, mapping them to code through POJOs, implementing business logic, configuring and running stories. An example of a simple story for testing a stack is provided and a demo is promised.
QA (Quality Assurance) is very critical at Atlogys. Our apps go through rigorous rounds of QA, Regression, Integration testing. We follow a deep rooted and detailed process for efficient QA testing so we may have less iterations and give error free releases. This is a presentation by our QA lead - Yamini Dobhal on the fundamentals and best practices of QA testing.
At Atlogys we have a major shift to serverless computing. We are designing and launching serverless architectures across all of our major apps. Hear our senior software engineer Rohit Kumar talk about how to do infinite scaling using amazon aws lambda.
How Solr Search Works - A tech Talk at Atlogys Delhi Office by our Senior Technologist Rajat Jain. The lecture takes a deep dive into Solr - what it is, how it works, what it does and its inbuilt architecture. A wonderful technical session with many live examples, a sneak peak into solr code and config files and a live demo. Part of Atlogys Academy Series.
Fundamentals and Best Practices of doing Wordpress based CMS development. Guidelines for how to start designing static and dynamic websites with wordpress. Tech Talk shows various wireframes for all kinds of sites that can be developed. This was a lecture packed with many live demos covering everything from wordpress installation to development of a full fledged site complete with all pages like Home, Contact, Blog, aboutUs etc on Wordpress.
Paves way for a future more advanced lecture to cover templates, plugins and more security details.
This document provides an overview of React, a JavaScript library for building user interfaces. It discusses what React is, why it is useful, when to use it, and its key features and components. React allows building of reusable UI components in a declarative way. It uses a virtual DOM for better performance and can render on both client and server sides. Key advantages include high performance with large data changes, reusability, and ease of building large, complex UIs. The document also provides examples of building a simple React app in steps and references for further information.
Shivam Singhal - Senior Engineer at Atlogys delivers a highly informative, practical and hands-on workshop cum talk on Mongo DB and how it can be & should be used in making real world web applications.
Part of the Atlogys Academy series, this talk covers the fundamentals of this noSQL technology and then goes on to show many practical examples on the command line as well. A must watch for anyone working with Mongo DB.
Learn from our hands-on experience using and working with Firebase. Great for building quick POC (prototypes) of apps that need real-time updates. Build cross platform web and mobile products with ease quickly.
The document discusses how technology companies should focus on selling the customer experience, not just the technology. It outlines five core soft skills - patience, passion, comfort, commitment, and etiquette - that are part of the secret sauce for customer experience. The document also lists the core values of Atlogys as integrity, customer focus, solid technology, delivery, and valuing employees. It provides contact information for Ritika Sanghi, the founder and CEO of Atlogys.
Automated Logical Software provides a "SMART OFFSHORE CTO" service to minimize risks and maximize software output when outsourcing development. As CTO, they guide, manage, and lead a dedicated team to provide end-to-end project management, ensuring on-time and on-budget delivery. This allows clients to focus on their business instead of software development. A case study shows how their services helped a startup develop a social recruitment platform for less money and time compared to developing it without oversight, avoiding additional redesign costs.
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Speck&Tech
ABSTRACT: A prima vista, un mattoncino Lego e la backdoor XZ potrebbero avere in comune il fatto di essere entrambi blocchi di costruzione, o dipendenze di progetti creativi e software. La realtà è che un mattoncino Lego e il caso della backdoor XZ hanno molto di più di tutto ciò in comune.
Partecipate alla presentazione per immergervi in una storia di interoperabilità, standard e formati aperti, per poi discutere del ruolo importante che i contributori hanno in una comunità open source sostenibile.
BIO: Sostenitrice del software libero e dei formati standard e aperti. È stata un membro attivo dei progetti Fedora e openSUSE e ha co-fondato l'Associazione LibreItalia dove è stata coinvolta in diversi eventi, migrazioni e formazione relativi a LibreOffice. In precedenza ha lavorato a migrazioni e corsi di formazione su LibreOffice per diverse amministrazioni pubbliche e privati. Da gennaio 2020 lavora in SUSE come Software Release Engineer per Uyuni e SUSE Manager e quando non segue la sua passione per i computer e per Geeko coltiva la sua curiosità per l'astronomia (da cui deriva il suo nickname deneb_alpha).
How to Get CNIC Information System with Paksim Ga.pptxdanishmna97
Pakdata Cf is a groundbreaking system designed to streamline and facilitate access to CNIC information. This innovative platform leverages advanced technology to provide users with efficient and secure access to their CNIC details.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024Neo4j
Neha Bajwa, Vice President of Product Marketing, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!SOFTTECHHUB
As the digital landscape continually evolves, operating systems play a critical role in shaping user experiences and productivity. The launch of Nitrux Linux 3.5.0 marks a significant milestone, offering a robust alternative to traditional systems such as Windows 11. This article delves into the essence of Nitrux Linux 3.5.0, exploring its unique features, advantages, and how it stands as a compelling choice for both casual users and tech enthusiasts.
Threats to mobile devices are more prevalent and increasing in scope and complexity. Users of mobile devices desire to take full advantage of the features
available on those devices, but many of the features provide convenience and capability but sacrifice security. This best practices guide outlines steps the users can take to better protect personal devices and information.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
Sudheer Mechineni, Head of Application Frameworks, Standard Chartered Bank
Discover how Standard Chartered Bank harnessed the power of Neo4j to transform complex data access challenges into a dynamic, scalable graph database solution. This keynote will cover their journey from initial adoption to deploying a fully automated, enterprise-grade causal cluster, highlighting key strategies for modelling organisational changes and ensuring robust disaster recovery. Learn how these innovations have not only enhanced Standard Chartered Bank’s data infrastructure but also positioned them as pioneers in the banking sector’s adoption of graph technology.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
For the full video of this presentation, please visit: https://www.edge-ai-vision.com/2024/06/building-and-scaling-ai-applications-with-the-nx-ai-manager-a-presentation-from-network-optix/
Robin van Emden, Senior Director of Data Science at Network Optix, presents the “Building and Scaling AI Applications with the Nx AI Manager,” tutorial at the May 2024 Embedded Vision Summit.
In this presentation, van Emden covers the basics of scaling edge AI solutions using the Nx tool kit. He emphasizes the process of developing AI models and deploying them globally. He also showcases the conversion of AI models and the creation of effective edge AI pipelines, with a focus on pre-processing, model conversion, selecting the appropriate inference engine for the target hardware and post-processing.
van Emden shows how Nx can simplify the developer’s life and facilitate a rapid transition from concept to production-ready applications.He provides valuable insights into developing scalable and efficient edge AI solutions, with a strong focus on practical implementation.
Infrastructure Challenges in Scaling RAG with Custom AI modelsZilliz
Building Retrieval-Augmented Generation (RAG) systems with open-source and custom AI models is a complex task. This talk explores the challenges in productionizing RAG systems, including retrieval performance, response synthesis, and evaluation. We’ll discuss how to leverage open-source models like text embeddings, language models, and custom fine-tuned models to enhance RAG performance. Additionally, we’ll cover how BentoML can help orchestrate and scale these AI components efficiently, ensuring seamless deployment and management of RAG systems in the cloud.
GraphRAG for Life Science to increase LLM accuracyTomaz Bratanic
GraphRAG for life science domain, where you retriever information from biomedical knowledge graphs using LLMs to increase the accuracy and performance of generated answers
2. What is PHP
Overview:
• Server side scripting language
• Dynamic web page generation
• Open source (PHPLicense incompatible with GPL)
• Free
• Cross platform
• recursive acronym of Hypertext preprocessor which was previously Personal Home Page
whose syntax borrowed mostly from Perl
3. What PHP can do
PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can
do, such as collect form data, generate dynamic page content, or send and receive cookies. But
PHP can do much more
As HTML can be mixed with PHP scripts which will be executed on server side , It will be less
overhead to output HTML like in C or Perl
There are three main areas where PHP scripts are used
1) Server-side scripting
You need three things to make this work. The PHP parser (CGI or server module), a web server
and a web browser. You need to run the web server, with a connected PHP installation. You can
access the PHP program output with a web browser, viewing the PHP page through the server
4. What PHP can do
2) Command line scripting
You can make a PHP script to run it without any server or browser. You only need the PHP
parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on
*nix or Linux) or Task Scheduler (on Windows). These scripts can also be used for simple text
processing tasks
3) Writing desktop applications
PHP is probably not the very best language to create a desktop application with a graphical
user interface, but if you know PHP very well, and would like to use some advanced PHP features
in your client-side applications you can also use PHP-GTK to write such programs. You also have
the ability to write cross-platform applications this way
5. Flexibility of PHP
1)
2)
3)
4)
5)
PHP can be used on all major operating systems, including Linux, many Unix variants
(including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and
probably others
PHP has also support for most of the web servers today. This includes Apache, IIS, lighttpd
and many others , And this includes any web server that can utilize the FastCGI PHP binary,
like lighttpd and nginx.
You have the choice of using procedural programming or object oriented programming
(OOP), or a mixture of them both
With PHP you are not limited to output HTML. PHP's abilities includes outputting images,
PDF files and even Flash movies (using libswf and Ming) generated on the fly. You can also
output easily any text, such as XHTML and any other XML file.
Most significant features in PHP is its support for a wide range of database. Writing a
database-enabled web page is incredibly simple using one of the database specific
extensions (e.g., for mysql), or using an abstraction layer like PDO, or connect to any
database supporting the Open Database Connection standard via the ODBC extension
6. Flexibility of PHP
1) PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP,
NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open raw network
sockets and interact using any other protocol. PHP has support for the WDDX complex data
exchange between virtually all Web programming languages. Talking about interconnection,
PHP has support for instantiation of Java objects and using them transparently as PHP
objects.
2) PHP has useful text processing features, which includes the Perl compatible regular
expressions (PCRE), and many extensions and tools to parse and access XML documents. PHP
standardizes all of the XML extensions on the solid base of libxml2, and extends the feature
set adding SimpleXML, XMLReader and XMLWriter support.
3) Availability of various extensions and modules for different features and reusable codes
4) As source code is available It can be modified according to program need and PHP can then
be recompiled for generating PHP binary
5) New Extension can easily be added which can either be dynamically linked or linked with
Zend engine
7. Popularity of PHP
6 out of 10 most popular websites of world has used PHP
Website
Popularity(unique visitors)
Gooogle.com
1,000,000,000
Facebook.com
880,000,000
Youtube.com
800,000,000
Yahoo
590,000,000
Wikipedia.org
410,000,000
Wordpress.com
130,000,000
PHP is used by 77.8% of all the websites whose server-side programming language known
20 million web servers over world has installed PHP support
Free of cost LAMP stack instead of Microsoft stack costing lots of dollars for WISC
8. Popularity of PHP
Rapid web application development for small to medium sized websites due to lots of open
source frameworks available
CMS
Joomla , Drupal , Moodle etc
Blog
Wordpress
Forum
PHPBB , vBulletin etc
CRM
SugarCRM
Ecommerce
Magento , Oscommerce , Zen cart etc
Around 20 Advanced Object Oriented Frameworks available which uses complex design
patterns and structured design which can be used for large size robust software
development
9. How PHP Works
Two ways to install PHP
1. PHP as apache module
When PHP runs as an Apache module, it is compiled into the Apache code itself. This
means, when an Apache process starts, PHP starts along with it. They are intrinsically linked,
and PHP depends on Apache to operate. The benefit of this is that Apache tends to run very
efficiently, and PHP is part of each Apache process. Furthermore, Apache configuration,
particularly when using .htaccess files, can also be used to control PHP functions
2. PHP as a CGI script
PHP as a CGI script means that PHP operates as an independent binary with its own
processes. It is separate from Apache and can, therefore, run as another user, rather than
Apache’s generic user. This increases security and adds a bit of stability, at the expense of
speed
10. How PHP Works
•
•
•
•
•
•
•
•
We never start any PHP daemon or anything by our self , When we start Apache it starts
PHP interpreter along itself
PHP is linked to apache (Using SAPI) by mode_php.so or mode_php.dll
PHP as a whole consists of 3 modules
(Core PHP , Zend Engine and Extension layer)
Core PHP is the module which handles the requests , file streams , error handling etc
Zend engine is one which converts human readable code into machine understandable
opcodes , Then It executes this general code into virtual machine
Extensions are bunch of functions , classes , streams made available to PHP scripts , For
example we need mysql extension to connect to mysql database using PHP
While zend engine executes the generated code , the script might require access to few
extensions , Then ZE passes control to extension module/layer which transfers back the
control to ZE after completion of tasks.
The PHP language is interpreted. The binary that lets you interpret PHP is compiled. Means
PHP is compiled down to an intermediate bytecode that is then interpreted by the runtime
engine
11. Basics of PHP
1.
2.
Readymade packages is available for windows or Mac Os named WAMP , MAMP
XAMPP is available for all platforms which is package of PHP , MySQL , apache , Tomcat ,
PhpMyadmin , Sqlite
3.
LAMP requires separate configuration for all components
4.
There are lots of PHP configurations which can be changed from PHP.ini file
5.
PHP.ini settings can be changed in three ways
• Directly in php.ini file
• htaccess file
• In PHP scripts using ini_set function
6.
Which parameter valid to be changed depends upon changeable flag of parameter
7.
PHP_INI_ALL type can be changed from anywhere
8.
PHP_INI_PERDIR can be changed from .htaccess or php.ini
9.
php.ini only can be changed only in php.ini file
10. If you change parameter which is not changeable from there then It’s value won’t affect.
Example - short_open_tag can’t affect it’s change if done by ini_set function
12. Basics of PHP
11. httpd.conf is configuration file of Apache server
12. You can change any settings related to requests to servers , configurations of Virtual hosting ,
Directory specific permissions , URL rewrite , Error logs settings , Adding new apache
modules , Authorization etc
13. httpd.conf settings can also be changed from per directory basis by .htaccess file
14. .htaccess file is apache’s directory basis configration file which can do following
•
Authorization and Authetication
•
Rewriting URLs
•
Blocking
•
Error responses
•
Cache control
15. Loosely coupled language
16. Free from declaring type of variables and don’t require to define function definition before
declaring it (Developer is free to pass any type of variable to function at run time)
17. Support for default function arguments
13. Basics of PHP
18.
19.
20.
21.
22.
23.
24.
Provides complex data types in form of Arrays , Objects , Resources
Output buffering can easily be set and can clean buffer by sending contents to browser in
chuck of processes or either at end of script
Modify HTTP response headers any parameter like sending redirect , content type , setting
cookies etc
$_GET , $_POST , $_SESSION , $_COOKIE , $_REQUEST , $_SERVER super global variables
session.save_handler php.ini configuration can set where sessions will be stored on server ,
default is file but can be saved in Database as well
session.save_path used to set path on file system for storing session data
session_id is unique session seed and it’s value is stored on cookie on client side , If cookie
will be disabled on client side then it will pass it to URLs
14. Versions of PHP
Latest PHP release is 5.4.4
PHP5 for the most part is backwards compatible with PHP4, but there are a couple key
changes that might break your PHP4 script in a PHP5
Advanced OOP concepts has been added from version 5 , version 4 was having limited
OOP support
Exceptions introduced in version 5 in PHP
E_STRICT error level added in version 5 (Deprecated code usage give warning)
Useful extensions like SimpleXML , DOM , XSL , PDO , Hash , Curl and lot may more has
been added in version 5 onwards
Xdebug powerful extension for debugging PHP and PHPUnit for automated test cases unit
testing extension added from version 5 onwards