Posted by Markus L. on 07/02/05 00:09
Am Fri, 01 Jul 2005 19:43:01 +0100 schrieb Fire Juggler:
> I have a folder called x-tract and in that folder i have a folder called
> admin and music.
> while in the admin folder i want to upload a file to the music file. i;ve
> tried
> copy($_FILES['musicfile']['tmp_name'],
> "../music/".$_FILES['musicfile']['name']); ?> this does not work.
> any ideas?
>
> thanks
Use absolute path names:
copy($_FILES['musicfile']['tmp_name'],"/tmp/x-tract/music/".$_FILES['musicfile']['name']);
--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------
Navigation:
[Reply to this message]
|