On Sat, 2007-06-09 at 18:10 -0400, tedd wrote: > At 3:27 PM -0400 6/9/07, Robert Cummings wrote: > >On Sat, 2007-06-09 at 11:59 -0700, elk dolk wrote: > >> Hi all, > >> After designing and testing my web pages in PHP 5.2.1 I > >>learned that our web server has PHP 4.4.1 and I have to rollback > >>to version 4 ! . There is no OO implementation like classes or > >>objects in my scripts but every page has some queries the question > >>is : will my scripts work in PHP 4 ? or should I re-write all of > >>them? or will it affect the speed of queries? > > > >Should work mostly fine. PHP5 mostly brought OOP features to the table. > >Since you say you didn't use any OOP, then you just need to be wary of > >the odd PHP5 only function. > > > >Cheers, > >Rob. > > > My host just upgraded from php 4 to php 5 and while I appreciate the > upgrade, now my really exotic functions like date() throw errors -- > duh! > > Plus, none of my passwords work anymore, so I can't fit anything -- duh, again! :( I PHP5 proofed my stuff a long time ago for the inevitable switch. I still code for PHP4 but I keep in mind the differences and make sure it works both ways. Are you getting errors or warnings? Date issues sounds like you need ot set your timezone. Did they also upgrade the MySQL server (password issue sounds like MySQL). Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php