For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > Upgrading from PHP 4.1









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Upgrading from PHP 4.1
cover

2006-05-07, 7:01 pm

I'm trying to work with the mail() function on a server with PHP 4.1
and am starting to think that the problem in not getting the function
to work resides at least partially with the older version of PHP
(since I can make the same code work on another machine with v5.x on
it).

How difficult is it to upgrade version 4.x to the newest PHP version?
Can a person merely install over the top of the old one as with many
other windows software packages and then edit the ini file to get up
and running? TIA
J.O. Aho

2006-05-07, 7:01 pm

cover wrote:
> I'm trying to work with the mail() function on a server with PHP 4.1
> and am starting to think that the problem in not getting the function
> to work resides at least partially with the older version of PHP
> (since I can make the same code work on another machine with v5.x on
> it).
>
> How difficult is it to upgrade version 4.x to the newest PHP version?
> Can a person merely install over the top of the old one as with many
> other windows software packages and then edit the ini file to get up
> and running? TIA


You should always uninstall and then reinstall, backup your php.ini just for case.
cover

2006-05-07, 7:01 pm

On Fri, 05 May 2006 06:18:37 +0200, "J.O. Aho" <user@example.net>
wrote:

>You should always uninstall and then reinstall, backup your php.ini just for case.


So in a case where Triad had been installed, you'd advocate
uninstalling 'triad' and reloading the new version? (the I.T. guy
loaded Triad as the easy way to get me MySQL, PHP, and Apache
cwep

2006-05-07, 7:01 pm

Use EasyPhp (French). It includes apache and MySql.
http://www.softpedia.com/get/Author...s/EasyPHP.shtml

Regards,
Kees Epema


cover schreef:
> On Fri, 05 May 2006 06:18:37 +0200, "J.O. Aho" <user@example.net>
> wrote:
>
>
> So in a case where Triad had been installed, you'd advocate
> uninstalling 'triad' and reloading the new version? (the I.T. guy
> loaded Triad as the easy way to get me MySQL, PHP, and Apache

Colin McKinnon

2006-05-07, 7:01 pm

cover wrote:

> On Fri, 05 May 2006 06:18:37 +0200, "J.O. Aho" <user@example.net>
> wrote:
>
>
> So in a case where Triad had been installed, you'd advocate
> uninstalling 'triad' and reloading the new version? (the I.T. guy
> loaded Triad as the easy way to get me MySQL, PHP, and Apache


So if you're using Triad, I guess you've got less than tens of thousands of
lines of code, but don't have offline backup servers, nor continious
integration testing running.

As long as you stay with with 4.something then you should just need to tweak
your ini files a little. Moving to 5 is more likely to break your code,
particularly if you write OO. The nasty is that it will mostly be semantic
errors that show up. But you're going to have to do it sooner or later.

HTH

C.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com