
July 5th, 1999, 06:05 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Hello all,
I can't get the fileupload to work and I have no further idea.
my form looks like the standard example:
<form enctype="multipart/form-data" action="upload2_2.php3" method=POST>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Filename:
<input name="userfile" type="file">
<input type="submit" value=" Send File ">
</form>
and in upload2_2 the variable $userfile has the value /temp/phpxxxxxxx.
the upload2_2.php3 site looks like this:
<?
print"$userfile";
print"$userfile_name";
print"$userfile_size";
print"$userfile_type";
$dest="tmp/test.jpg";
copy($userfile, $dest);
?>
so far seems everything o.k. But I get the following Error:
Warning: SAFE MODE Restriction in effect. The script whose uid is 501 is not
allowed to access /tmp/php00508baa owned by uid 0 in
/usr/local/httpd/htdocs/bisoag/album/upload2_2.php3 on line 8
How can I solve this ? Im running apache on linux (SuSE 6.1) and the /temp
directory has 777 rights.
please help :-(
best regards
Sascha
eMail: skunkel@bisoag.de
|