I'm searching a code which allow the user to download directly a file from the php web page. Has anyone knows how to do it? It seems to be a simple coding.
I have tried your script but i'm getting errors.
[<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
That means the file does not exist. If you wish not to see the error an alternative would be curl.
Yes you are right i'm putting the domain name when i was doing test on my pc.
Thanks a lot
Thanks very much. It was exactly what i was searching for.