class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Hello, I my Ubuntu apache php mysql the class works great. Now I use it on my server on internet and there are some problems. When I add ad image, the log shows that file is uploaded correctly to temporary folder: - upload OK - file name OK - source variables file_src_name : casa_small.gif file_src_name_body : casa_small file_src_name_ext : gif file_src_pathname : /tmp/phpZSy3pp file_src_mime : image/gif file_src_size : 1027 (max= 2097152) file_src_error : 0 - source file is an image image_src_x : 16 image_src_y : 15 image_src_pixels : 240 image_src_type : gif image_src_bits : 8
But if I debug my upload script I see that when I run $handle->process, on linux web browser I see a box saying "Save as 'my_upload_script.php". On Windows web browser I see blank page. In both cases the log is empty or not shown.Reply
my script is in subdomain1.mydomain.it and the process directory is in subdomain2.mydomain.it On my local ubuntu pc works great. In my vps it doesn't work.
One difference I see in php.ini is that in local I have safe_mode = off and in my vps safe_mode = ON
I my Ubuntu apache php mysql the class works great.
Now I use it on my server on internet and there are some problems.
When I add ad image, the log shows that file is uploaded correctly to temporary folder:
- upload OK
- file name OK
- source variables
file_src_name : casa_small.gif
file_src_name_body : casa_small
file_src_name_ext : gif
file_src_pathname : /tmp/phpZSy3pp
file_src_mime : image/gif
file_src_size : 1027 (max= 2097152)
file_src_error : 0
- source file is an image
image_src_x : 16
image_src_y : 15
image_src_pixels : 240
image_src_type : gif
image_src_bits : 8
But if I debug my upload script I see that when I run $handle->process, on linux web browser I see a box saying "Save as 'my_upload_script.php".
On Windows web browser I see blank page.
In both cases the log is empty or not shown.
On my local ubuntu pc works great. In my vps it doesn't work.
One difference I see in php.ini is that in local I have safe_mode = off and in my vps safe_mode = ON
May this cause this issue?
Do you know why?