Koozali.org: home of the SME Server

problem with uploading (PHP)...

Rok Debeljak

problem with uploading (PHP)...
« 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 :)

Rok Debeljak

Re: problem with uploading (PHP)...
« Reply #1 on: July 26, 2002, 12:50:47 PM »
I upgraded from 5.12 ti 5.5 (well what else could I upgrade to? :)

Jon Blakely

Re: problem with uploading (PHP)...
« Reply #2 on: July 26, 2002, 01:14:05 PM »
Rok,

Read this

http://www.e-smith.org/faq.php3#7q25

It will explain all and how to disable the security feature.

Jon

Rok Debeljak

Re: problem with uploading (PHP)...
« Reply #3 on: July 26, 2002, 02:59:52 PM »
Thank you very much.
it works.

Jesper

Re: problem with uploading (PHP)...
« Reply #4 on: August 15, 2002, 07:41:05 PM »
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