I have got my photo gallery working on my test server which is running PHP version 5.2.5. When I try to run it on my remote server it will not run. My Host provider is running PHP version 4.4.6. I have set all the other parameters i.e. Post_Max_Size and File_Upload_Size on my test server to the same as my host (2M).
I have two sets of uploads. One of them is for a thumbnail depicting an album. Here the photograph is uploaded and the thumbnail created and stored in an album directory. The large file is then deleted. That upload works fine.
For the second upload, the photograph is uploaded, resized to 500 px wide and stored in an image directory. That image is then resized again to create the thumbnail and stored in a thumbnail directory. Even if I use the same photograph for the second upload as for the first I get an error back that uploaded file has zero length.
I know I am asking a lot from the server, but no matter how hard I try, I cannot get the staff at the school to resize the photographs before uploading them.
Can anyone suggest why I am having these problems on my host server.