Hi!

On Tue, Apr 21, 2009 at 4:47 PM, pak9 <[email protected]> wrote:

> <?php
> $target_path = "/uploads/";
>
> $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
>
> if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
>    echo "The file ".  basename( $_FILES['uploadedfile']['name']).
>        " has been uploaded";
> } else {
>    echo "There was an error uploading the file, please try again!";
> }
>
> ?>

$target_path is in the same file system that /tmp?.

If not, could it be possible that php die by timeout before
"move_uploaded_file" has finished?.


-- 
Saludos:
Antonio Pérez
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to