|
Posted by Jerry Stuckle on July 19, 2008, 9:54 pm
Please log in for more thread options Chuck Anderson wrote:
> Jeff wrote:
>
>> I'm working on a server that is running PHP4.
>>
>> I'd like to upgrade this so I can use the PHP5 code I have already.
>>
>> What kind, if any, problems will I have with the existing PHP code
>> base?
>>
>> I see:
>>
>> Local Master
>>
>> magic_quotes_gpc On On
>> magic_quotes_runtime Off Off
>>
>> I'm not sure what that means. I think that means that anything coming
>> in on $_REQUEST is backslashed and I'm thinking that probably won't
>> play well with PDO. If I turn that off what kind of failure could I
>> see in the existing code? Is that only a problem in that single quotes
>> will be backslashed in the data? Or can I have runtime crashes?
>>
>> Jeff
>>
>>
>
>
> Just yesterday I ran into a problem with an old script I hadn't used in
> a very long while. It accessed uploaded files via $HTTP_POST_FILES,
> which was still around in Php 4, but is gone in Php 5 (use $_FILES).
>
Yes, that could be. But even $HTTP_POST_FILES is still available (but
deprecated). You enable it with register_long_arrays=on in the php.ini
file.
BTW - $_FILES and the rest have been around since php 4.1. Any code
written since then should be using the new arrays. But I also suspect
your code was written before then :-)
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|