Forum Moderators: coopster

Message Too Old, No Replies

Change rendered me useless

php

         

eeklipzz

3:28 pm on Jun 3, 2005 (gmt 0)

10+ Year Member



I have been using the below script forever to create a picture album where I can just drop images into a folder and this script would display the images as thumbnails until clicked on at which point they would become full size. Recently, my server host upgraded his sql to 4.1.11 and his php to 2.6.2.

Now the script which worked so perfectly forever stopped working and I don't know what I need to do to fix it. I am clueless. If someone could please help me or point me in the right direction. Here is a link to what it is doing now:

<snipped irrelevant code dump; please see Posting Guidelines [webmasterworld.com]>

if($HTTP_POST_FILES['uploadedfile']['name']) // if a file was actually uploaded
{

[edited by: jatar_k at 4:53 pm (utc) on June 3, 2005]
[edit reason] URL removed [/edit]

coopster

4:19 pm on Jun 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, eeklipzz.

Can you offer more specifics? For example, have your turned on error_reporting() to see what exactly is failing? A host change or a host that upgrades their server is always something you need to be watchful over.

The biggest difference in a change from an earlier PHP4 version is the use of register globals [php.net] and old versus new superglobals.

Please have a look at the Troubleshooting [webmasterworld.com] guide in our library to get started and let us know some more particulars. We'll be happy to help!

JamShady

3:44 am on Jun 6, 2005 (gmt 0)

10+ Year Member



Use $_FILES instead of $HTTP_POST_FILES ;)