I am working on an new IIS server, but I don't have access to it!
In the php.ini the "file_uploads" is set to "no value". in order to upload files i would need to change this to 1 or On.
as it is an IIS server I can't use a .htaccess file to change the settings. Also when i try too change the settings within the script with ini_set('file_uploads',1) it does not work for the file upload, it still shows me Unknown error!PHP Warning: Unable to open '' for reading: Permission denied .

so besides waiting for my provider to chage the settings I have no other ideas... does anyone have other solutions????

    simple!

    between those brackets there sould be the file path

    since it´s empty it means the varible is undefined or it has no value!

    show me your code

      yes the value is empty, because no file is even uploadet to the tmp file hence copy sees only '', that at least what I think as
      I tried it with all kind of upload scripts wich all work fine on my other servers with file_uploads set to 1!!!

        well i can´t help you too much because i really never used IIS

        but if you are using a form mae sure that enctype="application/x-www-form-urlencoded"

        another option is to use ftp upload!

          thanx delfa,

          yes, the enctype= is set as you said. the problem is the IIS because I can't change the file_upload to on through .htaccess as I usualy would do on apache! and I could not figure out an other way to set it! to bad the ini_set('file_upload',1) doesn't work either,
          well if you could think of something let me know

            well i really can´t find any other problem

            enctype type must be 'multipart/form-data' and not 'application/x-www-form-urlencoded'

              tnt said:

              change the file_upload to on through .htaccess as I usualy would do on apache!

              As I read the specs on ini_set() , it says that file_upload is changeable only in PHP_INI_SYSTEM, which means that "Entry can be set in php.ini or httpd.conf".

              I would think that allowing anyone other than the administrator to enable file uploading would be a security risk; hence they would lock it down to someone who has access to php.ini or httpd.conf.

              That being said, tnt, have you actually been able to enable it through .htaccess? If so, could you PM me and show me how its done-- that would be useful to me.

              As to the question at hand, I believe you must wait for the administrator to enable file uploads for you 🙁

                yes it works fine with apache

                just put in the .htaccess file:

                php_value file_uploads 1

                and it works within that directory!

                tnt

                  Write a Reply...