Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Rok Debeljak on July 26, 2002, 12:47:29 PM
-
I made a PHP script for uploading images and making thumbnails.
It worked just fine on 5.12 but after upgrade files can not be uploaded anymore.
I tried few open-source scripts but none of them work either.
I get sth like that:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/paraadmin/html/fileupload-class.php on line 100
Warning: getimagesize: Unable to open '/tmp/phpy61m1e' for reading. in /home/e-smith/files/ibays/paraadmin/html/fileupload-class.php on line 100
Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/paraadmin/html/fileupload-class.php on line 206
Line 100: $image = getimagesize($this->file["tmp_name"]);
Line 206: $aok = copy($this->file["tmp_name"], $this->path . $this->file["name"]);
It gives an error when temp dir is mentioned...
Any ideas?
I chmoded all the dirs that have any connection to that script.
Thank you :)
-
I upgraded from 5.12 ti 5.5 (well what else could I upgrade to? :)
-
Rok,
Read this
http://www.e-smith.org/faq.php3#7q25
It will explain all and how to disable the security feature.
Jon
-
Thank you very much.
it works.
-
I have seen you request and was wondering whether you were using YAPPA? I am in the process of nmaking some PHP script to upload and manage a online photo album but I am pretty new to PHP. Would you want to share your source?
Rgds,
Jesper