on my server there is safe mode = on
fileupload =1
uid / unsername www(1001)
group 1001
I tried to upload files with
print ("<form method=\"post\" action=\"../~www/bilder/upload.php\" enctype=\"multipart/form-data\">
<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"29000\">
<INPUT TYPE=\"hidden\" name=\"kfzvid\" value=\"$kfzvid\">
<INPUT TYPE=\"hidden\" name=\"kundenid\" value=\"$kundenid\">
$filename:<br>
<input type=\"file\" name=\"datei\" size=\"50\">
<br><input type=\"submit\" name=\"submit\" value=\"Bild Uploaden\">
</form>");
file upload.php is in a different directory
error message: file not found
When I try to upload like this:
print ("<form method=\"post\" action=\"../bilder/upload.php\" enctype=\"multipart/form-data\">
<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"29000\">
<INPUT TYPE=\"hidden\" name=\"kfzvid\" value=\"$kfzvid\">
<INPUT TYPE=\"hidden\" name=\"kundenid\" value=\"$kundenid\">
$filename:<br>
<input type=\"file\" name=\"datei\" size=\"50\">
<br><input type=\"submit\" name=\"submit\" value=\"Bild Uploaden\">
</form>");
i get this error message:
Warning: SAFE MODE Restriction in effect. The script whose uid is 164901 is not allowed to access /tmp/php99zlCb owned by uid 0 in /web/sites/67/kfzmarkt-rnd/www.kfzmarkt-rnd.f2s.com/bilder/upload.php on line 32
the code in upload.php:
if ($datei_type=="image/gif"):
$type=".gif";
$datei_name=$kfzvid.$type;
copy ($datei,$datei_name);
endif;
if ($datei_type=="image/pjpeg"):
$type=".jpg";
$datei_name=$kfzvid.$type;
copy ($datei,$datei_name);
endif;
if ($datei_type=="image/x-png"):
$type=".png";
$datei_name=$kfzvid.$type;
copy ($datei,$datei_name);
endif;
/
copy ($datei,$datei_name);
if (!copy ($datei, $datei_name)):
print ("failed to copy $datei_name...<br>\n");
elseif (copy ($datei, $datei_name)):
print ("$bild...kopiert<br>\n");
endif;
/
print ("<img src=$datei_name>");
Has anyone a tip for me, or is this way by this serverconstellation impossible?
(i hate perl)
Eddy, looking for this problem since 6 days´´´´´´´´ (charmeur42@aol.com