Warning: open_basedir restriction in effect. File is in wrong directory in /home/stranica78/www/admin/upload.php on line 1216
Warning: fopen("/tmp/phpLCnPw4", "r") - Operation not permitted in /home/stranica78/www/admin/upload.php on line 1216
Input error
Evo kod pocevsi od 1215 reda u upload.php fileu:
function upload($src, $dest) {
if(!($fp = fopen($src,"r"))) die("Input error");
if(!($fp2 = fopen($dest,"w"))) die("Output error");
while($contents = fread($fp, 4096)) {
fwrite($fp2, $contents, strlen($contents));
}
fclose($fp);
fclose($fp2);
}
upload($pic, "$picture_path/$pic_name");
Help!?
"Q" 9G - Ponosni Titin pionir