![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2009
Posts: 420
|
What are you thinking about upgrading, the PHP version on your server or your code?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
|
The code
__________________
Wowify AI API Porn.AI Affiliates Porn AI email: [email protected] Teams: jean.francois.laverdiere TG: @jman1216 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
|
Quote:
Thanks
__________________
Wowify AI API Porn.AI Affiliates Porn AI email: [email protected] Teams: jean.francois.laverdiere TG: @jman1216 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Jan 2009
Posts: 420
|
Not a problem Jean-Francois, Good luck!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Bollocks
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
|
Are you saying that the code is written in PHP4 but the version running on the server is PHP5?
__________________
Interserver unmanaged AMD Ryzen servers from $73.00 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Jul 2009
Location: LA and Florida
Posts: 1,887
|
Nice. good explanation...
![]() ICQ : 567-816-270 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
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: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Location: Canuckstikan
Posts: 22,675
|
Quote:
![]()
__________________
Wowify AI API Porn.AI Affiliates Porn AI email: [email protected] Teams: jean.francois.laverdiere TG: @jman1216 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Now choke yourself!
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
|
Quote:
<? <-- short tag <?php <-- long tag |
|
![]() |
![]() ![]() ![]() ![]() ![]() |