Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In this course, I'm going to be developing in a Sandbox PHP environment using CakePHP 2.4.0 as the framework, PHP 5.3 as the server side language, MySQL 5.5 for the database server, and Apache 2 as the Web server. Other Web servers such as Engine X or IIS will not be covered in this course but they should work. Also the installation directory needs to be writable by the Web server. If you don't already have a server for development, I recommend using a local development server running on your workstation.
In this course, I'm going to be demonstrating using a virtualized server running in my existing operating system. If you'd like a server configured using this technique, check out, Up and Running with Linux for PHP Developers, here in the lynda.com online training library. Alternatively, you can use a web server solution stack package in your native operating systems. XAMPP from apachefriends.org, has distributions for every major platform. Webserver from WampServer.com is explicitly for Windows, and MAMP from MAMP.info is for Mac only.
Each of these packages will allow you to run the exercises found in this course. Installing additional software within your native operating system is covered in the course, Installing Apache, MySQL, and PHP with David Gassner. Here in the lynda.com online training library. Regardless the location of your web serve, you'll need access to the commands line with administrative credentials in order to install and configure server software. For Mac and Linux, the terminal allows you to use the commands line which includes access to the SSH command if the site is hosted remotely.
For Windows, you can use the free program PuTTY to connect via SSH to remote servers. Which is available from the official PuTTY website. I'll demonstrate writing code using NetBeans 7.3.1 IDE Bundle for PHP. NetBeans is a free, open source, and cross-platform integrated development environment from netbeans.org. The goal of the course is to use KPHP, not how to use NetBeans. But with that said, I'm only going to be editing code in NetBeans. So any IDE or text editor will work.
The excercise files for this course are contained in folders by chapter and movie. On my work station, I have them in a folder named sandbox that my virtualized Linux server can access. Depending on your web server configuration, you may need to store these files in a different place, such as a Remote web server or in a folder accessible by a local Apache and PHP stack. There are two additional folders in the exercise files to be aware of. The first is assets containing files for testing uploading during the course. The other is the database folder, containing a single MySQL script for import called issues_publications.sql.
Please import the file now to prepare for the database interactions. A vital note, as different web hosts and configurations serve content from different URLs, the address you see in my browser may not exactly match what you see on your workstation. Additionally, the locations shown in the command prompt demonstrations will differ depending on the location of site files and the configurations on your server. This software configuration, will be very similar if not identical across all platforms.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 92459 Viewers
82 Video lessons · 104136 Viewers
71 Video lessons · 75591 Viewers
56 Video lessons · 106967 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.