Converting from PHP4 to php5

Converting from PHP4 to php5

am 01.06.2011 14:52:11 von Vaibhav Informatics

--0015174753e836b25204a4a5fd29
Content-Type: text/plain; charset=ISO-8859-1

i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4 TO
PHP5

--


Dr Vijay Kumar,
E 9/18 Vasant Vihar, New Delhi-110 057 Ph: 09868 11 5354, 011-2615 4488
Email :"Dr Vijay Kumar"

--0015174753e836b25204a4a5fd29--

Re: Converting from PHP4 to php5

am 01.06.2011 15:15:38 von nagendra802000

--000e0cd4d0881a06fc04a4a65148
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

I am not a master but as per my knowledge your software which is in PHP4
should work properly in PHP5 too.

--=20
*Best,
*
*Guru=99*

--000e0cd4d0881a06fc04a4a65148--

RE: Converting from PHP4 to php5

am 01.06.2011 15:26:52 von HallMarc Websites

> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY
> SOFTWARE FROM PHP4 TO
> PHP5
>
Without looking at the rules (Sry barely have time to reply!) I don't think
this is appropriate for this list. I am fairly certain it is against the
rules to ask/offer work on here.
Can anyone confirm or deny?

Thank you,
Marc Hall
HallMarc Websites
610.446.3346
http://www.hallmarcwebsites.com/



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 02.06.2011 15:00:06 von Richard Quadling

On 1 June 2011 14:26, HallMarc Websites wrote:
> Without looking at the rules (Sry barely have time to reply!) I don't think
> this is appropriate for this list. I am fairly certain it is against the
> rules to ask/offer work on here.
> Can anyone confirm or deny?
>
> Thank you,
> Marc Hall
> HallMarc Websites
> 610.446.3346
> http://www.hallmarcwebsites.com/

But advertising your services is OK?

--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 03.06.2011 05:52:44 von nagendra802000

--000e0cdff79aacc24704a4c6afbb
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Richard & I are waiting for an answer from someone......???



--=20
*Best,
*
*Guru=99*

--000e0cdff79aacc24704a4c6afbb--

Re: Converting from PHP4 to php5

am 03.06.2011 07:54:03 von Geoff Lane

On Friday, June 3, 2011, Guru=99 wrote;

> I am not a master but as per my knowledge your software which is in PHP=
4
> should work properly in PHP5 too.
---

It will provided that the scripts use none of the deprecated elements
that were dropped in PHP5. For example, $HTTP_POST_VARS, which became
deprecated in PHP4, was dropped in PHP5. To convert a PHP4 script that
uses this to PHP5 you can either do a global search and replace or
else include $HTTP_POST_VARS =3D $_POST at the head of the script.
BTW, $HTTP_POST_VARS isn't the only one - I'm just using it as an
example here.

Best practice also changed. For example, mysql_escape_string() became
deprecated in PHP5 and in its place the manual advises use of
mysql_real_escape_string().

HTH,

--=20
Geoff


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 03.06.2011 13:26:09 von Richard Quadling

On 1 June 2011 13:52, Dr Vijay Kumar wrote:
> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4 TO
> PHP5

Whilst there will be many aspects of the code that will run quite
happily, there are several features that have been deprecated and/or
removed, depending upon the version of PHP4 and PHP5 you have and
want.

There are, I think, 2 valid approaches to this sort of task.

1 - Get the code base functional with PHP5, but without using any of
the new features. This involves handling/converting any code that used
deprecated and/or removed features of PHP4.

Amongst these, register_globals, magic_quotes and ereg would probably
be the most popular to look at.

This _SHOULD_ be fairly easy to do. Obviously, the complexity and
structure of the current code will dictate the amount of time. If, for
example, the code isn't documented and there are no testsuites, then a
new developer is only going to be able to handle what the code
actually does, and not necessarily what the code is supposed to do.
Checking the code's behaviour without a testsuite could be pretty
difficult.


2 - Refactor the modules of the application, taking into account new
features of PHP5.

This could involve moving from PHP4 procedural code to PHP5 OOP. This
could require a significant investment in time (and therefore money),
depending upon the project.

And may not be necessary.

Richard.


--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 03.06.2011 18:08:40 von user080701

--------------------------------------------------
From: "Richard Quadling"
Sent: Friday, June 03, 2011 7:26 PM
To: "Dr Vijay Kumar"
Cc:
Subject: Re: [PHP-DB] Converting from PHP4 to php5

> On 1 June 2011 13:52, Dr Vijay Kumar wrote:
>> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4
>> TO
>> PHP5
>
> Whilst there will be many aspects of the code that will run quite
> happily, there are several features that have been deprecated and/or
> removed, depending upon the version of PHP4 and PHP5 you have and
> want.
>
> There are, I think, 2 valid approaches to this sort of task.
>
> 1 - Get the code base functional with PHP5, but without using any of
> the new features. This involves handling/converting any code that used
> deprecated and/or removed features of PHP4.
>
> Amongst these, register_globals, magic_quotes and ereg would probably
> be the most popular to look at.
>
> This _SHOULD_ be fairly easy to do. Obviously, the complexity and
> structure of the current code will dictate the amount of time. If, for
> example, the code isn't documented and there are no testsuites, then a
> new developer is only going to be able to handle what the code
> actually does, and not necessarily what the code is supposed to do.
> Checking the code's behaviour without a testsuite could be pretty
> difficult.
>
>
> 2 - Refactor the modules of the application, taking into account new
> features of PHP5.
>
> This could involve moving from PHP4 procedural code to PHP5 OOP. This
> could require a significant investment in time (and therefore money),
> depending upon the project.
>
> And may not be necessary.
>
> Richard.
>
>
> --
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 6177 (20110603) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

__________ Information from ESET NOD32 Antivirus, version of virus signature database 6177 (20110603) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 03.06.2011 18:09:22 von user080701

--------------------------------------------------
From: "Richard Quadling"
Sent: Friday, June 03, 2011 7:26 PM
To: "Dr Vijay Kumar"
Cc:
Subject: Re: [PHP-DB] Converting from PHP4 to php5

> On 1 June 2011 13:52, Dr Vijay Kumar wrote:
>> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE FROM PHP4
>> TO
>> PHP5
>
> Whilst there will be many aspects of the code that will run quite
> happily, there are several features that have been deprecated and/or
> removed, depending upon the version of PHP4 and PHP5 you have and
> want.
>
> There are, I think, 2 valid approaches to this sort of task.
>
> 1 - Get the code base functional with PHP5, but without using any of
> the new features. This involves handling/converting any code that used
> deprecated and/or removed features of PHP4.
>
> Amongst these, register_globals, magic_quotes and ereg would probably
> be the most popular to look at.
>
> This _SHOULD_ be fairly easy to do. Obviously, the complexity and
> structure of the current code will dictate the amount of time. If, for
> example, the code isn't documented and there are no testsuites, then a
> new developer is only going to be able to handle what the code
> actually does, and not necessarily what the code is supposed to do.
> Checking the code's behaviour without a testsuite could be pretty
> difficult.
>
>
> 2 - Refactor the modules of the application, taking into account new
> features of PHP5.
>
> This could involve moving from PHP4 procedural code to PHP5 OOP. This
> could require a significant investment in time (and therefore money),
> depending upon the project.
>
> And may not be necessary.
>
> Richard.
>
>
> --
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 6177 (20110603) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

__________ Information from ESET NOD32 Antivirus, version of virus signature database 6177 (20110603) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Converting from PHP4 to php5

am 03.06.2011 22:39:33 von Karl DeSaulniers

Google "php4 to php5 converter" or "php4 to php5 conversion"
That should set you on your way.

The best way I have read to do this is just run your code on a php5
server and build in php error detection of some kind, then just fix
the errors as they come.
:)

Best,
Karl


On Jun 3, 2011, at 6:26 AM, Richard Quadling wrote:

> On 1 June 2011 13:52, Dr Vijay Kumar
> wrote:
>> i AM WONDERING IF SOMEONE CAN TAKE UP CONVERSION OF MY SOFTWARE
>> FROM PHP4 TO
>> PHP5
>
> Whilst there will be many aspects of the code that will run quite
> happily, there are several features that have been deprecated and/or
> removed, depending upon the version of PHP4 and PHP5 you have and
> want.
>
> There are, I think, 2 valid approaches to this sort of task.
>
> 1 - Get the code base functional with PHP5, but without using any of
> the new features. This involves handling/converting any code that used
> deprecated and/or removed features of PHP4.
>
> Amongst these, register_globals, magic_quotes and ereg would probably
> be the most popular to look at.
>
> This _SHOULD_ be fairly easy to do. Obviously, the complexity and
> structure of the current code will dictate the amount of time. If, for
> example, the code isn't documented and there are no testsuites, then a
> new developer is only going to be able to handle what the code
> actually does, and not necessarily what the code is supposed to do.
> Checking the code's behaviour without a testsuite could be pretty
> difficult.
>
>
> 2 - Refactor the modules of the application, taking into account new
> features of PHP5.
>
> This could involve moving from PHP4 procedural code to PHP5 OOP. This
> could require a significant investment in time (and therefore money),
> depending upon the project.
>
> And may not be necessary.
>
> Richard.
>
>
> --
> Richard Quadling
> Twitter : EE : Zend : PHPDoc
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php