Any website has forms, from the simple contact form to the complex ones with lots of fields. Writing forms is also one of the most complex and tedious task for a web developer: you need to write the HTML form, … Continue reading
Usefull Linux Commands
Count all the files and folders in a directory: Rename a file or folder: Remove an entire directory, with all its content: Create a symlink: Create a symlink example:
How to Get Nearby Locations from MySQL Database
If you have a MySQL table with locations (latitude and longitude columns) you can get a list of locations near a specific point using the following query: In this query we have noted the latitude of the reference point with … Continue reading
Setting Up Symfony 1.4 and Uploadify Session Id
Uploadify (currently on version 3.1.0) has the option to send the session name and id to the upload script so you can secure the action handling this in Symfony. But to make Symfony 1.4 use the session id send by … Continue reading
Symfony2 Jobeet Day 9: The Functional Tests
Functional tests are a great tool to test your application from end to end: from the request made by a browser to the response sent by the server. They test all the layers of an application: the routing, the model, … Continue reading
Symfony2 Jobeet Day 8: The Unit Tests
Tests in Symfony2 There are two different kinds of automated tests in symfony: unit tests and functional tests. Unit tests verify that each method and function is working properly. Each test must be as independent as possible from the others. … Continue reading
Symfony2 Jobeet Day 7: Playing with the Category Page
Today we will make the Category page like it is described in the second day’s requirements: “The user sees a list of all the jobs from the category sorted by date and paginated with 20 jobs per page“. The Category … Continue reading
Titanic Super 3D
You have to see this!
Symfony2 Jobeet Day 6: More with the Model
The Doctrine Query Object From the second day’s requirements: “On the homepage, the user sees the latest active jobs.” But as of now, all jobs are displayed, whether they are active or not: An active job is one that was … Continue reading
PHP send zip file to browser for download
In the previous post we created a zip file from a folder using PHP. Now, if you want to send the zip archive file to the browser so users can download it, use the following code: The same method can … Continue reading