Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread c...@hosting4days.com
Thanks Gaurav & Shawn, I'll check into your suggestions. Thanks, c...@hosting4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread Shawn McKenzie
c...@hosting4days.com wrote: > > On Dec 9, 2009, at 12:27 AM, Gaurav Kumar wrote: > >> You can do two things- >> >> 1. Read the file by providing a base directory path of the server >> where the >> file exist. >> Something like- //htdocs/httpfolder/files/audio/yourfile.mp3 >> You can take this in

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread cool
On Dec 9, 2009, at 12:27 AM, Gaurav Kumar wrote: You can do two things- 1. Read the file by providing a base directory path of the server where the file exist. Something like- //htdocs/httpfolder/files/audio/yourfile.mp3 You can take this in a variable " //htdocs/httpfolder/files/audio/".

Re: [PHP] Force-Saving an Audio File

2009-12-09 Thread Gaurav Kumar
You can do two things- 1. Read the file by providing a base directory path of the server where the file exist. Something like- //htdocs/httpfolder/files/audio/yourfile.mp3 You can take this in a variable " //htdocs/httpfolder/files/audio/". 2. Try using file_get_contents. Something like $file = f

[PHP] Force-Saving an Audio File

2009-12-08 Thread c...@hosting4days.com
Hi folks, I'm trying to force save .mp3 files so this is a test page (found on the net). It works fine when: $directory = ""; // so the audio is in the same local directory but fails when I use a REAL web directory - (the audio file is here - http://mysite.com/test1/audio.mp3 ) $director