[PHP-DB] Re: Converting from PHP4 to php5

2011-06-02 Thread Geoff Lane
On Friday, June 3, 2011, Guru™ wrote;

> I am not a master but as per my knowledge your software which is in PHP4
> 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 = $_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,

-- 
Geoff


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



Re: [PHP-DB] Converting from PHP4 to php5

2011-06-02 Thread Guru™
Richard & I are waiting for an answer from someone..???



-- 
*Best,
*
*Guru™*


Re: [PHP-DB] Converting from PHP4 to php5

2011-06-02 Thread 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