GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Jan-2005, 15:25
phpnewbie phpnewbie is offline
New Member
 
Join Date: Jan 2005
Posts: 10
phpnewbie is on a distinguished road

version problem possible... but is it likely??


I do appreciate all of the assistance you all have given... I am still getting errors, but I'm trying to work through them. My question:

Is it possible that when the database and code where transferred from an old server to a newer one, updated versions of PHP & MySQL that the codes that worked in the older versions are not compatible with the newer version? I have researched but could not find if PHP is backward compatible.
  #2  
Old 28-Jan-2005, 15:34
firebird's Avatar
firebird firebird is offline
New Member
 
Join Date: Jan 2005
Posts: 11
firebird is on a distinguished road
Yes, for example in PHP 5, if php is configured so that globals aren't registered, you will have to call to fields by either $_POST or $_GET. Same goes for $_COOKIE.
There's more things changed, methods that aren't (standardly) supported anymore.

However, when creating a class, you would create a function with the same name as the class to have it execute when a new object was created. In PHP5 that is replaced by the __construct() function. However, when a __construct() does not exist, it looks for a method that has the same name as the class and treats that as the construct method.

Dave.
  #3  
Old 01-Mar-2005, 14:38
Zurke Zurke is offline
New Member
 
Join Date: Dec 2004
Posts: 12
Zurke is on a distinguished road
I have also learned that with 5.2 you need to use mysqli_ instead of mysql. Dont know why but I was recieving a lot unexplainable errors before I added the "i".
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache / PHP problem, maybe output length? HaganeNoKokoro Apache Web Server Forum 3 07-Aug-2008 05:42
versions onauc C++ Forum 13 21-Nov-2004 00:24
Mpeg2 SVCD disc problem mrnobody Computer Software Forum - Windows 0 13-Aug-2004 09:51
Apache perl version mismatch - can I fix it? chinagirl Apache Web Server Forum 1 25-May-2004 02:13
Another FX 5600 problem (but with details that might shed light on this) BobDaDuck Computer Hardware Forum 2 16-Apr-2004 08:53

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:37.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.