File downloading problem

I am having downloading problem.The files are uploading successfully but when i click on the link to download it gives me the error

Message: file_get_contents(folder/somefile_pdf) [function.file-get-contents]: failed to open stream: No such file or directory.
I don't know why the file name is replaced with "_". Here is my code
function dpaper($name){
        $name // this name is changed to somefile_ext

Try using the full path!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.