Forum Moderators: coopster
... a setting will be put in place to restrict the ability of php scripts to issue certain types of shell commands. ... The most common impact will be if you employ scripts that write to the system /tmp area and then move items from that area to your own directories (such as Gallery). You will need to make a configuration change to have those scripts write to directories under your own account.
My hosting service says "change the settings in your script to point to a temp directory of your choice under your account". Sounds logical, except I have not been able to find anything that explains how to point to another temp directory without changing the server's php.ini settings.
I'm using a typical form that gets a file from the hard drive and passes the path to a PHP script that worked fine until the configuration change.
Anyone know how to modify a script so it uses a directory other than the system tmp?
TIA
php_info() function to display the current state of PHP, you'll see the upload_tmp_dir directive. You are correct; the only way to set this directive entry is in php.ini or httpd.conf. The default for this directive is NULL. On my server, that shows up as no value. Have you actually tried to upload a file and move it to a directory within your own directories? If so, and you receive this error, then jatar_k is right, your ISP has failed miserably as a provider and it is time to find a better hosting partner.
If so, and you receive this error, then jatar_k is right, your ISP has failed miserably as a provider and it is time to find a better hosting partner.
I would agree except my hosting partner has been rather exceptional for the two years I've been with them.
There has been no flurry of complaints on their forum since the change. And I know there are lots of Gallery users... supposedly Gallery uses the same file upload technique I am trying to use.
Is there an alternate means of uploading files via form that I'm unaware of?
So it looks like I may have inadvertantly broken my script about the same time as the system change and the notice from the administrators lured me to suspect the wrong thing.
At least that's what I hope. A most likely scenario since there would have been a deluge of complaints if the system update *did* break the ability to upload via form.
I'm going to do some more diagnostic testing of my script to find out why it isn't working anymore.
Thanks to all who replied! Your comments were helpful in figuring out where to look.