![]() |
|
#1
|
|||
|
|||
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| versions | onauc | CPP / C++ Forum | 13 | 20-Nov-2004 23:24 |
| Apache / PHP problem, maybe output length? | HaganeNoKokoro | Apache Web Server Forum | 2 | 08-Sep-2004 07:22 |
| Mpeg2 SVCD disc problem | mrnobody | Computer Software Forum - Windows | 0 | 13-Aug-2004 08:51 |
| Apache perl version mismatch - can I fix it? | chinagirl | Apache Web Server Forum | 1 | 25-May-2004 01:13 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The