Current location: Hot Scripts Forums » Programming Languages » PHP » PHP4 To PHP5


PHP4 To PHP5

Reply
  #1 (permalink)  
Old 07-18-06, 09:13 AM
srini_r_r srini_r_r is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP4 To PHP5

Hi All,

I have an application developed in PHP Version 4.2.3. If i want to use this application in PHP5, it will run properly or i need to change some coding in that application to run properly.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-18-06, 10:12 AM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
That depends on whether you're using any code/functions deprecated in PHP5.

For instance, if you're parsing XML using DOMXML in PHP4, it has been replaced by DOM in PHP5, and the XML parser will break if moved to PHP5.

But if you're using very common, not-so-groundbreaking stuff like file_get_contents(), or mysql_connect(), etc, then you might not have a problem.

If you're uncertain (and even if you're not, to be safe) I'd suggest you just install the app in a PHP5 testing environment and run through it there to determine what modifications you'll have to make, if any, using any error messages that might show up.
__________________
The toxic ZCE

Last edited by Keith; 07-18-06 at 10:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-18-06, 10:22 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php4 & php5 Baho PHP 3 05-06-05 08:39 AM
Can we make it from PHP4 to PHP5? weilies PHP 2 04-29-05 06:24 AM
Is it Time or Too Soon to upgrade to PHP5 ? MrMMM PHP 3 01-19-05 09:11 AM
PHP5 Hosting account for FREE w/ any purchase! mxhub General Advertisements 0 10-07-04 12:52 PM


All times are GMT -5. The time now is 06:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.