Did you want a Perl or Python course that starts on a Sunday? Or to book an old course that starts way back on 31st December 1969?
Our new online booking system's been under test on our in-house server for a while, but it was this weekend it went live together with most of the rest of the site. Yes, we've tested code and tested it again, but there are always things (such as IP address recognition) that can only be emulated in testing and I expected (and still expect) a few funnies.
Tips / traps to watch ... "there, but for the grace of God, go I" you may say:
1. Don't have a variable in your $_SESSION array that's got the same name as a local variable. Configuration issue ... worked fine in house and caused problems at the ISP! Solution
once I identified the problem, was as easy as renaming a local variable
2. If your server is in a different timezone to your test machine ... beware. That's what happened with all those course that, for a few minutes, were offered to start a day earlier. You see ... when it's 07:00 this morning in the UK, it's 11 p.m. last night in California!
Remember also ... all the standard PHP traps about register_globals, conflicting session names with other applications, and magic quotes. Yes, didn't fall for those ... just the slightly more obscure traps listed above.
(written 2005-10-31, updated 2006-06-05)
Associated topics are indexed under
H114 - Sourcing, installing and configuring PHP [3132] Virtual Hosting with Apache http server - an overall scheme, and avoiding common pitfalls - (2011-01-14)
[2646] Compile but do not run PHP - syntax check only - (2010-02-22)
[2589] Your PHP code does not work? Here is where to start looking. - (2010-01-18)
[2433] Controlling, supressing, enabling PHP error messages - (2009-10-02)
[2317] How to make a Risotto (PHP build style) - (2009-08-02)
[1936] Quick Summary - PHP installation - (2008-12-12)
[1768] What is built in to this httpd and PHP? - (2008-08-23)
[1731] Apache httpd, MySQL, PHP - installation procedure - (2008-08-01)
[1688] cannot restore segment prot after reloc message - PHP / httpd - (2008-06-26)
[1667] Checking server performance for PHP generated pages - (2008-06-06)
[934] Clustering, load balancing, mod_rewrite and mod_proxy - (2006-11-21)
[316] Development Environments - (2005-05-19)
[192] Current MySQL and PHP paths and upgrades - (2005-01-28)
Some other Articles
North, Norther and Northest - PHP 5 ObjectsSetting the file name for a downloaded documentDouble Dollars in PHPDifferent ways of sellingPHP upgrade - traps to watchNew look to websiteNew servlet from oldWatch what you wearClass, static and unbound variablesMay I be politically incorrect?