Join Drew Falkman for an in-depth discussion in this video What you need to know, part of Creating Data-Driven Applications with Flex 4.5 and PHP.
In this movie, I want to go over everything you'll need to know before you get started taking the course. To begin with, this course is designed for intermediate developers, which means you should have some experience writing code and some familiarity in using an integrated development environment. Additionally, you should have a basic idea of what PHP is and how it works and runs in Apache environment. If you don't have it on your system, that's okay. We're going to direct you to how you can install either MAMP or WAMP or XAMPP, depending on what your environment is.
Everything as recorded is done on the Mac using MAMP, because that's what I'm most comfortable with. However, you may find in a Windows environment that there are some differences, and I want to walk through those with you, so that you can avoid having any troubles when you're taking the course. One of the number one reasons why things will be different will be because of the port numbers. Everything on the Internet uses a port which specifies what software in the server should respond to specific requests. In the case of MAMP, Apache is installed on port 8888, so all of the requests via the web are going to be set up to localhost:8888.
If you're using WAMP server or XAMPP, they're usually going to be on port 80 or port 8080. So if you ever get 404 errors or any kind of issues in that regards, the first thing you want to look is make sure that it doesn't have that port number specified, and it's specified after the colon in the URL. MySQL also runs on a port; usually it's port 3306. However, in the case of MAMP, they install it on 8889.
So there are instances in the code that I've written to help you along with this course that specify that, so you want to make sure and go through it. I should mention, there's a troubleshooting document that's downloadable for free in the exercise files. This can help you to troubleshoot any of these items, and everything will be listed out on there. The web server setup is another potential 'gotcha' in the difference between Windows and Mac environments. The main thing is going to be the location of files.
Because Mac uses different slashes than Windows, and because Windows also specifies a letter of a drive, there's going to be differences in where things are installed and how things are referred to. Everything that is in the Mac environment is going to be pointing to /Applications/MAMP/htdocs, which is the root of the MAMP web server. If you see that anywhere, you want to make sure to change that to the root of your web server. If you're using WAMP server, that's going to be in c:\wamp\www.
If you're using XAMPP, it's going to be in c:\xampp\htdocs. This will typically be set up inside of the server settings of your projects. If you do want to do the WebORB course where we go over the WebORB Adapter, there are some additional configurations that you want to make sure to change. WebORB uses a special file to determine how to set up and configure itself to the server. This is located in a special Flex directory, in the WEB-INF directory of the WebORB application.
So it's going to be specified in the Flex Compiler options inside of the Preferences, so you want to go into the Preferences of that project and go to the Flex Compiler options and change the services flag to go to your directory, and specifically where the services config is in your WebORB installation. If you want to do the AMFPHP course that goes over that adapter, you want to make sure to, again, recognize the port change, and there's also an include that you want to make sure to update to use the correct window slashes.
So all in all, if you do come into any issues in the Windows environment, the first thing you want to check is the port number. Is the port number specified correctly? Of course, you always want to make sure that your server is running, so that's a good thing to check as well. Have you started up your WAMP or your XAMPP server? And then the last thing, of course, is to look for any references to files and make sure that the slashes and the drive number is specified. So I hope you enjoy the course!
- Understanding session management
- Accessing RESTful services
- Customizing service calls by passing parameters
- Handling raw XML and JSON data
- Exposing a PHP class as a Flex service
- Generating PHP services with Flash Builder
- Debugging in Flash Builder and Zend Studio
- Exchanging data from PHP to Flex and back
- Building a Master-Detail page
- Implementing pagination
- Creating a synchronized database in AIR
- Using server-side session data