witam,
powazny problem - plik sie uploaduje, ale nic dalej sie z nim nie dzieje...
<?php
/* Check permissions to write to destination directory */
$d[\"error\"] .= \"ERROR: Cannot write to $image_type destination \";
$d[\"error\"] .= \"directory.<BR>$path<BR>\";
return false;
}
/* If Updating */
if ($curr_file) {
/* Command to remove old image file */
$d[\"image_commands\"] .= \"$ret = unlink(\"$path$curr_file\");\";
}
/* Command to move uploaded file into destination directory */
$d[\"image_commands\"] .= \"$ret = copy(\"$temp_file\", \"$path$to_file\");\";
/* Return new image file name */
$d[$field_name] = $to_file;
return true;
}
?>
widzicie tu jakis blad? ja jeszcze za slabo znam php zeby sie w tym polapac :/
jesli potrzebujecie wiecej info, czekam na posty... (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif)
do tego jeszcze nie chce kasowac plikow... moze tez cos zobaczycie? troche poruszam sie po tym kodzie po omacku :/ przepraszam jesli cos wstawie nie tak...
<?php
function process_images(&$d) {
if ($d[\"image_commands\"]) {
$commands = explode(\";\",ereg_replace(\";$\",\"\",$d[\"image_commands\"])); $d[\"image_commands\"] = \"\";
for ($i=0;$i<$cnt;$i++) {
eval($commands[$i] . \";\"); if ($ret == False) {
$d[\"error\"] .= \"ERROR: Image Update command failed.<BR>\";
$d[\"error\"] .= $commands[$i] . \"<BR>\";
return false;
}
}
}
return true;
}
?>
help!!!
pozdro,
rml.
Ten post edytował rml 17.03.2005, 22:14:36