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.
He can write a one line php file that will display the phpinfo like:
phpinfo(); ?>
As for the chroot environment, dunno what he's talking about as there's not something like that for PHP, so the answer would be no.
He may be thinking about safe mode though, as you know, php 4 is using safe mode, but php5 does not.
They could also be asking about open_base_dir which is common for upload gadgets, they need to use move_uploaded_file() instead of trying to read the temp directory directly. This is common for older scripts.
Sometimes, PHP (Apache) can be installed in a chroot environment. Safe mode can also be used.
You're right about the open_base_dir although in any good setup, open_base_dir will actually include /tmp. If it is an open_base_dir issue, then there is a bit of code in the class that can be uncommented to use move_uploaded_file()Reply
As for the chroot environment, dunno what he's talking about as there's not something like that for PHP, so the answer would be no.
He may be thinking about safe mode though, as you know, php 4 is using safe mode, but php5 does not.
They could also be asking about open_base_dir which is common for upload gadgets, they need to use move_uploaded_file() instead of trying to read the temp directory directly. This is common for older scripts.
What error is he getting?
You're right about the open_base_dir although in any good setup, open_base_dir will actually include /tmp. If it is an open_base_dir issue, then there is a bit of code in the class that can be uncommented to use move_uploaded_file()
Here's a link to PHPinfo(): http://www.alphaselect.ca/locations/phpi.php
If you have any more suggestions that would be awesome.
Thanks,
Tom
and uncomment the following:
Then try uploading a file which is not an image (or an image, but with no image processing), and tell me if it works.