Wednesday, October 28, 2009
Monday, October 26, 2009
Shake Your Bootie
Monday, October 19, 2009
Booking group flights
It isn't easy to book group flights. For a start, most airlines require you to contact them directly if the number in your group is greater than 10. If it is less than 10, then you can book online at one of the many flights comparison sites and you'll be fine.
But if you have a large group, say for your local sports team or social club, then more work is required.
A travel agent might be the best bet. They have more time than airline staff to help you plan and book your cheap international flight and they will contact the airline on your behalf and set it up for you. Of course it will cost a little extra, but at least you won't have the rest of your rugby team staring at you angrily at the airport when you aren't allowed on the plane 'cause you stuffed up the booking.
Have fun overseas!
Sunday, October 18, 2009
Stopping Timeout errors during long-running PHP scripts
(I saw an interesting post over at acquia.com dealing with long-running cron jobs which inspired this post).
How do I stop PHP timing out when a script takes too long?
A. PHP places resource limits with these 3 commands:
=> max_execution_time : Maximum execution time of each script, in seconds (default 30 sec)
=> max_input_time : Maximum amount of time each script may spend parsing request data (60 )
=> memory_limit : Maximum amount of memory a script may consume (default 8MB)
You can increase the resource limits so that your scripts have more time to run:
Open /etc/php.ini (or /etc/php5/php.ini) file:# vi /etc/php.ini
Setup new resource limits:max_execution_time = 600
max_input_time = 120
memory_limit = 64M
Restart Apache or lighttpd web server:# /etc/init.d/httpd restart
OR# /etc/init.d/lighttpd restart
Note: If you are running in a shared hosting environment then PHP may be set to SAFE mode, which will mean that you cannot alter your php.ini file. In this case you will have to ask your host to make the changes for you. If they won't change it, then perhaps it is time to change hosts...
Friday, October 9, 2009
Finding cheap international flights
I hate having to search through several sites to find the cheapest overseas flights. Webjet & Flight Centre say that they have the cheapest deals, but I find that I Want That Flight! is the best for Cheap International Flights and specifically Flights to London.
The site makes it easy to compare all the major airlines and travel agents at once, and doesn't try to hide fees till the very end (in fact, the Cheap domestic Flights section doesn't add commission at all!).
Try it out and let me know what you think!
