Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-19-2009, 01:00 PM   #1
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
PHP Question

Moving an old site for a friend that was made in php4 and I was suggested to upgrade to php5.

How easy is this to do and how long should it take for a programer?

Small mainstream site.
__________________
Wowify AI API
Porn.AI
Affiliates Porn AI
email: [email protected]
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:12 PM   #2
ipolic
Confirmed User
 
ipolic's Avatar
 
Join Date: Nov 2003
Posts: 1,483
You say small mainstream site, but that depends how small. I think we need measurements here. What you think is small, someone else might consider big.
ipolic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:14 PM   #3
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
What are you thinking about upgrading, the PHP version on your server or your code?
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:17 PM   #4
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
Quote:
Originally Posted by AIbenjamink View Post
What are you thinking about upgrading, the PHP version on your server or your code?
The code
__________________
Wowify AI API
Porn.AI
Affiliates Porn AI
email: [email protected]
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:19 PM   #5
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
Quote:
Originally Posted by ipolic View Post
You say small mainstream site, but that depends how small. I think we need measurements here. What you think is small, someone else might consider big.
Can you hit me up on ICQ, this site is part of a huge worldwide company specialized in vacatoin resorts and I do not want to link their url on GFY.

Thanks
__________________
Wowify AI API
Porn.AI
Affiliates Porn AI
email: [email protected]
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:21 PM   #6
cyco_cc
Confirmed User
 
cyco_cc's Avatar
 
Join Date: Oct 2008
Posts: 344
I'd bet that 99+% of the code written for PHP 4 will work with PHP 5. IIRC (I don't really work with PHP, just .NET--don't hate), the main things added to PHP 5 was some actual OOP constructs that made sense and some syntactic sugar. I'm probably horribly understating the platform upgrade, but still, your procedural code is probably all going to work just fine in PHP 5.

There might be some functions that are deprecated but they'll still "work". Long story short, it's probably just a matter of upgrading the version of PHP your server is running.
cyco_cc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:25 PM   #7
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
Great info and thanks Benjamin for taking the time to chat with me on ICQ. Glad I made this post ;-)
__________________
Wowify AI API
Porn.AI
Affiliates Porn AI
email: [email protected]
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 01:56 PM   #8
AIbenjamink
Confirmed User
 
AIbenjamink's Avatar
 
Industry Role:
Join Date: Jan 2009
Posts: 420
Quote:
Originally Posted by Jean-Francois View Post
Great info and thanks Benjamin for taking the time to chat with me on ICQ. Glad I made this post ;-)
Not a problem Jean-Francois, Good luck!
__________________
Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

AIbenjamink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 02:06 PM   #9
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by Jean-Francois View Post
The code
Are you saying that the code is written in PHP4 but the version running on the server is PHP5?
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 02:27 PM   #10
adendreams
Confirmed User
 
adendreams's Avatar
 
Industry Role:
Join Date: Jul 2009
Location: LA and Florida
Posts: 1,887
Nice. good explanation...

ICQ : 567-816-270
adendreams is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 06:35 PM   #11
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by Jean-Francois View Post
The code
code is backward compatible
so no changes are really needed...
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 06:46 PM   #12
Jman
Too lazy to set a custom title
 
Jman's Avatar
 
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
Quote:
Originally Posted by redwhiteandblue View Post
Are you saying that the code is written in PHP4 but the version running on the server is PHP5?
Yup that is the case, again thanks y'all
__________________
Wowify AI API
Porn.AI
Affiliates Porn AI
email: [email protected]
Teams: jean.francois.laverdiere
TG: @jman1216
Jman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2009, 11:58 PM   #13
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
As already mentioned, almost anything written halfway decently for PHP4 (Using superglobals, very primitive OOP, if at all, not relying on inherited variables) will work fine with PHP5 up through 5.1.x.

They've decided to do some rather stupid shit since like killing the only sane regex library in 6.x, so you may get a few deprecation warnings, but you probably won't need to worry until at least 2011 for that.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2009, 05:52 AM   #14
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by GrouchyAdmin View Post
As already mentioned, almost anything written halfway decently for PHP4 (Using superglobals, very primitive OOP, if at all, not relying on inherited variables) will work fine with PHP5 up through 5.1.x.

They've decided to do some rather stupid shit since like killing the only sane regex library in 6.x, so you may get a few deprecation warnings, but you probably won't need to worry until at least 2011 for that.
yeah... I used ereg alot. Another thing to mention is that some developers had a bad habit of using short tags which are disabled by default in php 5

<? <-- short tag
<?php <-- long tag
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.