In this section, you will learn the basics of the PHP language itself. If you are new to programming, this section is essential. If you already program in another language and are learning PHP, you will learn new syntax for already familiar commands.
This lesson teaches the basics of how to assign and display the various types of variables in PHP, including string, integer, boolean, etc.
This lesson shows how to display the current date and time in U.S. and German formats, day of week, week number, RFC 282 formatted dates, etc. And there's even more: You'll also learn how to get this information for relative dates (e.g. tomorrow) or specific dates and times.
Lots of math in this section: Watch how to get the minimum, maximum and average from a list of numbers. Also see how to get the remainder of a division, how to round up and down, how to get the absolute value, and how to generate random numbers.
This video shows you how to build an easy-to-use library of functions by using require_once and include_once to include functions and classes that you need in every file. It also shows how Eclipse is able to show pop-up information on all methods and classes no matter where they are located.
This section introduces you to object-oriented programming by showing you how to build a useful class called SmartUrl, which simplifies the building of URLs with parameters. After you finish this section, you will be able to develop your own classes.
In this video, you'll create a class called SmartUrl that has a constructor. This constructor accepts a value that is saved as an internal variable. Then a public method is called to output the internal variable.
This section is for building an HTML form formatted with CSS and validated with PHP code. When you finish, you will know how to use PHP, HTML and CSS together to make your own interactive web forms to gather and process information.
Learn how to build a cross-browser, engaging form with HTML, CSS and PHP.
This session shows that it takes just a few lines of code to determine whether or not a client accepts cookies. If so, you can offer them a rich experience. If not, you can still offer them a site that works and looks nice.
This video shows how to set and read sessions with a shopping cart example. When cookies are turned off, you'll see that sessions do not work. Then you see how you can edit the php.ini to enable sessions to work without cookies.
This section teaches you the basics of getting your PHP site to read data out of two different kinds of databases: MySQL (the most common database used with PHP) and SQLite (a fast file-based database).
This video shows how to create a database table in phpMyAdmin and how to use PHP to display records from that database table on a web page.
Learn how to use PHP to write to an SQLite database. Also, you'll see that SQLite takes over 60 seconds to add 20000 records while MySQL takes only 4 seconds to add 20000 records. The pros and cons of using SQLite are also covered here.
This section covers REST and Web Services on the Internet.
Watch how to use the Yahoo Search Service to build a custom "topic search engine", e.g. a "Colorado Search Engine", which allows users to type in keywords such as "car" and receive results on "colorado cars".
This section demonstrates the importance of security on websites and how to safeguard against the most common security issues.
Many websites feature a security hole in that directories can be browsed and files such as .pdf or .xml or .sqlite can be downloaded by anybody. This video shows how you can protect yourself against this by using .htaccess files to prevent directory browsing and determine which files are downloadable and which are not.
In this section, you learn how to read and write data to files.
Let this video show you how to use file_put_contents to write to a file, pointing out a number of common errors that will come up and solutions to them. Also learn the old way of writing to a file with fwrite.
This lesson shows how to use the file_get_contents command to output the contents of a file to the browser. It also shows the older way of doing this with fopen and a while loop plus how to use file_get_contents to get text from an external website.
This video tells you about using the new PHP 5.2 input filters to remove and encode special characters from strings entered on a form, about calling a custom function to validate text, and about how to not only validate POST variables but also GET variables.