I have a personal website that basically when i post a blog it reads from my computer a text file that contains the path of the mp3 i am listening to (i.e. M:\music\song.mp3) and puts it in a textbox of the form for posting. Then uploads it to temporarly stream, the problem is that it cannot access the file when it is on the server, but works fine locally... any help would be great, here is the code after isset($submit):
$listenfile= str_replace("\\", "\", $listenfile); #this is to get rid of the "\" in the location after posting.
if(filesize($listenfile)<15728641){
$filen=Date("YmdH")."_current";
copy($listenfile, "blog/audio/$filen.mp3");
}
I mean it is very basic, and it does work fine when running it locally, but not accessing the site from my server, all I get is this error:
Warning: stat failed for M:\music\song 1.mp3 (errno=2 - No such file or directory) in x:\wwwroot\sekondattempt\blog\addblog_multi_submit.php on line 39
Any help would be greatly appreciated, thanks...