![]() |
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. |
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.
|
What are you thinking about upgrading, the PHP version on your server or your code?
|
Quote:
|
Quote:
Thanks |
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. |
Great info and thanks Benjamin for taking the time to chat with me on ICQ. Glad I made this post ;-)
|
Quote:
|
Quote:
|
Nice. good explanation...:thumbsup
ICQ : 567-816-270 |
Quote:
so no changes are really needed... |
Quote:
|
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. |
Quote:
<? <-- short tag <?php <-- long tag |
All times are GMT -7. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123