in php… when i specify
move_uploaded_file($userfile[0], "/ft_files/1.jpg"
does php take that url respective to the folder where the php file is or does it take the url respective to the root of the server that is
/var/www/html/ or whaterver the url is ??
system
September 2, 2003, 5:42pm
2
It takes the URL depending on the folder where the php file is…
(I’m pretty sure)
system
September 3, 2003, 4:40am
3
exactly, whenever using relative paths, they are always RELATIVE to the file that contains the URL. For example, if your *.php file is “http://www.host.com/subdir/file.php ” , and you linked like in this example
<? echo "<a href=otherfile.php>click</a>"; ?>
then the URL displayed would be “http://www.host.com/subdir/otherfile.php ”.
system
September 4, 2003, 7:30pm
4
i don’t understand why your using that code anyway… you only need to use the copy() function to upload the files…