| |||||||||||
| |||||||||||
PHP upgrade - traps to watch
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 07:52:38) Associated topics are indexed under H114 - Sourcing, installing and configuring PHP
Some other Articles
North, Norther and Northest - PHP 5 ObjectsSetting the file name for a downloaded document Double Dollars in PHP Different ways of selling PHP upgrade - traps to watch New look to website New servlet from old Watch what you wear Class, static and unbound variables May I be politically incorrect? 1637 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||