PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
// copy to this directory
$dir="/usr/local/apache/www/myacount/phpupl/";
// copy the file to the server
if (isset($submit)){
if (!is_uploaded_file ($userfile)){
echo "<b>$userfile_name</b> couldn't be copied !!";
}
// check whether it has been uploaded
if (is_uploaded_file ($userfile)){
move_uploaded_file($userfile,$dir.$userfile_name) ;
}
echo "<b>$userfile_name</b> copied succesfully !!";
}
//note:extra security will added later, this is just an example.
?>
Now...how do i get the files from "/usr/local/apache/www/myacount/phpupl/" to "/usr/local/apache/www/myacount/html/upload" with php script.
(Since there is no move() command in php.)
i have only file writing permissions in the /phpupl/ folder..
There is nothing wrong with move_uploaded_file() it writes beautifully to that dir...but i dont want it there..
I dropped the idear to move the files.
Now i'm trying to (unsuccesfull so far..) show the images that are in the folder outside www.
see post: viewtopic.php?t=9429