Welcome to the HTML Goodies PHP Tutorials! This series is a new series that is in development right now. This tutorial series is a little more advanced than our HTML tutorials. The assumption is made that you already have an understanding of HTML and basic web design. For this reason this is not a good starting point for the new designer, but is instead a place for one with a little experience to spread their wings and expand their design horizons. Check back here often to see the progress of the series. We'll have you writing PHP code very soon! The following sections are available now:
Your first page with PHP code
A simple Order Form
Processing the Order
A Little about Variables
Expressions and Operators
Logic Flow
Functions
Passing Data To and From Functions
More About Functions
Using the File System
A File Upload Form
Error Handling
Cookies
Sessions
Monday, June 15, 2009
Thursday, May 28, 2009
How to Install PHP on Windows
Why PHP?
PHP remains the most widespread and popular server-side programming language on the web. It is installed by most web hosts, has a simple learning curve, close ties with the MySQL database, and an excellent collection of libraries to cut your development time. PHP may not be perfect, but it should certainly be considered for your next web application. Both Yahoo and Facebook use it with great success.
Why Install PHP Locally?
Installing PHP on your development PC allows you to safely create and test a web application without affecting the data or systems on your live website. This article describes PHP installation as a module within the Windows version of Apache 2.2. Mac and Linux users will probably have it installed already.
All-in-One packages
There are some excellent all-in-one Windows distributions that contain Apache, PHP, MySQL and other applications in a single installation file, e.g. XAMPP (including a Mac version), WampServer and Web.Developer. There is nothing wrong with using these packages, although manually installing Apache and PHP will help you learn more about the system and its configuration options.
The PHP Installer
Although an installer is available from php.net, I would recommend the manual installation if you already have a web server configured and running.
PHP remains the most widespread and popular server-side programming language on the web. It is installed by most web hosts, has a simple learning curve, close ties with the MySQL database, and an excellent collection of libraries to cut your development time. PHP may not be perfect, but it should certainly be considered for your next web application. Both Yahoo and Facebook use it with great success.
Why Install PHP Locally?
Installing PHP on your development PC allows you to safely create and test a web application without affecting the data or systems on your live website. This article describes PHP installation as a module within the Windows version of Apache 2.2. Mac and Linux users will probably have it installed already.
All-in-One packages
There are some excellent all-in-one Windows distributions that contain Apache, PHP, MySQL and other applications in a single installation file, e.g. XAMPP (including a Mac version), WampServer and Web.Developer. There is nothing wrong with using these packages, although manually installing Apache and PHP will help you learn more about the system and its configuration options.
The PHP Installer
Although an installer is available from php.net, I would recommend the manual installation if you already have a web server configured and running.
Wednesday, April 29, 2009
Heart Internet exclusive offer: “Buy one get one free” with SitePoint
Web hosting provider Heart Internet (heartinternet.co.uk) has partnered with SitePoint (sitepoint.com) to offer their customers an exclusive ‘buy one get one free’ on SitePoint’s Web Development and Design books.
Heart Internet, which specialises in providing a variety of hosting services for resellers, agencies, IT professionals and home users, is opening the exclusive offer to both new and existing customers. SitePoint’s entire library is included in the offer which covers all the major areas of web design and development such as HTML, CSS, PHP, MySQL, JavaScript and ASP.NET.
Heart Internet co-founder Jonathan Brealey said “SitePoint is a great resource for beginners and professionals alike with books that cover every aspect of building a website. Being able to offer discounted pricing to our customers is a fantastic way to help them with their web development skills.”
Since their launch in 1999 SitePoint has grown in to one of the world’s leading web design and development resources with 180,000 customers and books sold in over 180 countries. “Our books provide best practice guidance to all types of web developers, designers, marketers, and site owners” explained SitePoint co-founder, Matt Mickiewicz, “We are pleased to be able to offer Heart Internet’s customers this great deal and help them make the most of their websites.”
For more information visit the website http://www.heartinternet.co.uk
About Heart Internet: Heart Internet is the Uks fastest growing reseller and one of the leading domain registrars in the UK. Their products are based around the offering the latest hosting technology at competitive prices.
About SitePoint: SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals. Its popular online magazine, blogs, newsletters, and print books teach best practices to web developers and designers worldwide.
Heart Internet, which specialises in providing a variety of hosting services for resellers, agencies, IT professionals and home users, is opening the exclusive offer to both new and existing customers. SitePoint’s entire library is included in the offer which covers all the major areas of web design and development such as HTML, CSS, PHP, MySQL, JavaScript and ASP.NET.
Heart Internet co-founder Jonathan Brealey said “SitePoint is a great resource for beginners and professionals alike with books that cover every aspect of building a website. Being able to offer discounted pricing to our customers is a fantastic way to help them with their web development skills.”
Since their launch in 1999 SitePoint has grown in to one of the world’s leading web design and development resources with 180,000 customers and books sold in over 180 countries. “Our books provide best practice guidance to all types of web developers, designers, marketers, and site owners” explained SitePoint co-founder, Matt Mickiewicz, “We are pleased to be able to offer Heart Internet’s customers this great deal and help them make the most of their websites.”
For more information visit the website http://www.heartinternet.co.uk
About Heart Internet: Heart Internet is the Uks fastest growing reseller and one of the leading domain registrars in the UK. Their products are based around the offering the latest hosting technology at competitive prices.
About SitePoint: SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals. Its popular online magazine, blogs, newsletters, and print books teach best practices to web developers and designers worldwide.
Monday, March 23, 2009
Microsoft opens Azure to PHP developers
Microsoft at the Mix09 conference last week revealed several moves intended to bolster its Windows Azure cloud computing platform, adding support for PHP application development and native code as well as full trust capabilities.
"Windows Azure is metaphorically the operating system for the cloud," said Prashant Ketkar, director of product marketing for cloud infrastructure services at Microsoft, in an interview at the conference in Las Vegas.
[Fast-changing platforms will challenge developers, read: " Developing cloud apps: What's different?" | And in other news from Mix09, Microsoft cited design updates as economic booster.]
Specific improvements made this week include expanding beyond managed code to native code support; allowing 'full trust,' which is how most applications or services are written; and offering FastCGI support to allow PHP development.
"Basically, the Windows Server team has done a ton of work with FastCGI that allows Windows Server to now support programming languages beyond just .Net and Visual Studio," Ketkar said. Through the FastCGI interface, developers can take existing PHP skills and PHP applications and services and run them on Azure.
Developers might also be able to run other languages via FastCGI, said Ketkar. Microsoft, though, has done stress-testing for PHP but not for other languages. "There is no reason that Ruby won't work through that same FastCGI interface," he said.
Microsoft's vision is to open up the platform to more languages, Ketkar said. Microsoft wants Azure to offer a "frictionless" development platform beyond just supporting .Net development, he said.
With full trust capabilities, Microsoft is expanding Azure beyond the medium trust capabilities that it had had since its original launch at the Microsoft Professional Developers Conference in October 2008.
Another Azure capability revealed this week was support for geo-location, in which developers can pick a geography where they want an application or service to run. This helps with latency issues, enabling, for example, a service to run in an East Coast data center if the user is on the East Coast, Ketkar said. Also, storage and compute elements could run in the same place.
There are certain circumstances, though, when users would not want to run an application in the cloud, such as if there were specific compliance issues or control over physical assets was needed, Ketkar said.
Regarding the outage Azure recently suffered, Ketkar said Microsoft was learning from the experience, and he noted the technology still is in a pre-release, community technology preview format.
Azure will be commercially launched by the end of this calendar year. A business model, including prices and service level agreement rules, will be announced this summer.
"Windows Azure is metaphorically the operating system for the cloud," said Prashant Ketkar, director of product marketing for cloud infrastructure services at Microsoft, in an interview at the conference in Las Vegas.
[Fast-changing platforms will challenge developers, read: " Developing cloud apps: What's different?" | And in other news from Mix09, Microsoft cited design updates as economic booster.]
Specific improvements made this week include expanding beyond managed code to native code support; allowing 'full trust,' which is how most applications or services are written; and offering FastCGI support to allow PHP development.
"Basically, the Windows Server team has done a ton of work with FastCGI that allows Windows Server to now support programming languages beyond just .Net and Visual Studio," Ketkar said. Through the FastCGI interface, developers can take existing PHP skills and PHP applications and services and run them on Azure.
Developers might also be able to run other languages via FastCGI, said Ketkar. Microsoft, though, has done stress-testing for PHP but not for other languages. "There is no reason that Ruby won't work through that same FastCGI interface," he said.
Microsoft's vision is to open up the platform to more languages, Ketkar said. Microsoft wants Azure to offer a "frictionless" development platform beyond just supporting .Net development, he said.
With full trust capabilities, Microsoft is expanding Azure beyond the medium trust capabilities that it had had since its original launch at the Microsoft Professional Developers Conference in October 2008.
Another Azure capability revealed this week was support for geo-location, in which developers can pick a geography where they want an application or service to run. This helps with latency issues, enabling, for example, a service to run in an East Coast data center if the user is on the East Coast, Ketkar said. Also, storage and compute elements could run in the same place.
There are certain circumstances, though, when users would not want to run an application in the cloud, such as if there were specific compliance issues or control over physical assets was needed, Ketkar said.
Regarding the outage Azure recently suffered, Ketkar said Microsoft was learning from the experience, and he noted the technology still is in a pre-release, community technology preview format.
Azure will be commercially launched by the end of this calendar year. A business model, including prices and service level agreement rules, will be announced this summer.
Thursday, February 26, 2009
Database Software & Management News – Access, DB2, SQL & Oracle
In this tutorial we will build an online bookmark system. This will be used to create a database for storing all our URL's and their descriptions. There are many commercial and non-commercial applications that offer almost the exact functionality that we will create in our application; the difference is that we have full control over our application, allowing us to tweak it to suit our needs.
The article continues at http://www.webreference.com/programming/php/user_personalization/index.html
The article continues at http://www.webreference.com/programming/php/user_personalization/index.html
Sunday, February 1, 2009
Eclipse Upgrades PHP Development Tools
The Eclipse Foundation, a consortium of developers supporting the open-source Eclipse development platform, announces a major upgrade to the Eclipse PHP Development Tools project, PDT 2.0.
The Eclipse Foundation, a consortium of developers supporting the open-source Eclipse development platform, has announced a major upgrade to the Eclipse PHP Development Tools project, PDT 2.0.
As a leading contributor to the PDT effort, PHP specialist Zend Technologies is pushing PHP as a key element of the Eclipse platform and as a language used for more mainstream development.
"Release 2.0 demonstrates our continued commitment to the Eclipse community," said Andi Gutmans, co-founder and senior vice president of R&D and alliances at Zend Technologies. "PDT is not only the premier open-source PHP development tool, but is also the basis for Zend's commercial IDE [integrated development environment] for PHP, Zend Studio for Eclipse. Additionally, in order to further align with Eclipse, PDT will become part of the Eclipse Galileo simultaneous release."
Eclipse Foundation officials said the focus of the PDT 2.0 release is to add support for the object-oriented programming features of PHP and to improve the overall user experience of the PDT environment. PDT provides all the basic code editing capabilities developers need to get started developing PHP applications.
Gutmans said he believes the enhancements in PDT 2.0 make PDT a compelling choice for developers looking to build simple PHP applications. Eclipse officials said PDT 2.0 also is ideal for Java programmers who want to write PHP code by providing them with an environment similar to the Eclipse JDT (Java Development Tools) they are already familiar with.
The Eclipse Foundation, a consortium of developers supporting the open-source Eclipse development platform, has announced a major upgrade to the Eclipse PHP Development Tools project, PDT 2.0.
As a leading contributor to the PDT effort, PHP specialist Zend Technologies is pushing PHP as a key element of the Eclipse platform and as a language used for more mainstream development.
"Release 2.0 demonstrates our continued commitment to the Eclipse community," said Andi Gutmans, co-founder and senior vice president of R&D and alliances at Zend Technologies. "PDT is not only the premier open-source PHP development tool, but is also the basis for Zend's commercial IDE [integrated development environment] for PHP, Zend Studio for Eclipse. Additionally, in order to further align with Eclipse, PDT will become part of the Eclipse Galileo simultaneous release."
Eclipse Foundation officials said the focus of the PDT 2.0 release is to add support for the object-oriented programming features of PHP and to improve the overall user experience of the PDT environment. PDT provides all the basic code editing capabilities developers need to get started developing PHP applications.
Gutmans said he believes the enhancements in PDT 2.0 make PDT a compelling choice for developers looking to build simple PHP applications. Eclipse officials said PDT 2.0 also is ideal for Java programmers who want to write PHP code by providing them with an environment similar to the Eclipse JDT (Java Development Tools) they are already familiar with.
Wednesday, January 21, 2009
Eclipse PHP upgrade tackles object-oriented programming
The Eclipse Foundation is releasing on Wednesday version 2.0 of its Eclipse PDT (PHP Development Tools) project, which adds object-oriented programming and usability features.
PDT is an open-source development tool offering basic code editing capabilities for PHP applications. PHP is a server-side scripting language popular in Web development.
"This project [with the earlier 1.0 release] has seen wide adoption, [with] over 1 million downloads to date," said Roy Ganor, project lead for both PDT and the Zend Studio for Eclipse platform at PHP tool maker Zend Technologies.
[ For more on PHP and other scripting languages, see "Scripting languages spark new programming era." ]
Object-oriented features in version 2.0 include a type hierarchy view for faster code navigation; type and method navigation for searching of code based on type information, and override indicators to visually tag PHP methods that have been overridden.
"Object oriented [programming] in general gives you the ability to have much more modular code," Ganor noted.
PDT is an open-source development tool offering basic code editing capabilities for PHP applications. PHP is a server-side scripting language popular in Web development.
"This project [with the earlier 1.0 release] has seen wide adoption, [with] over 1 million downloads to date," said Roy Ganor, project lead for both PDT and the Zend Studio for Eclipse platform at PHP tool maker Zend Technologies.
[ For more on PHP and other scripting languages, see "Scripting languages spark new programming era." ]
Object-oriented features in version 2.0 include a type hierarchy view for faster code navigation; type and method navigation for searching of code based on type information, and override indicators to visually tag PHP methods that have been overridden.
"Object oriented [programming] in general gives you the ability to have much more modular code," Ganor noted.
Subscribe to:
Posts (Atom)