Search Result

Collapse
2 results in 0.0015 seconds.
Keywords
Members
Tags
readfile
  •  

  • ziycon
    started a topic Readfile() replacement cURL?
    in PHP

    Readfile() replacement cURL?

    I'm unable to use the code snippet below for a file download on a site as readfile is disabled for security reasons, I'm told cURL can be used, any advice on how to change it or on the below replacement would be great, thanks.
    Code:
    header('Content-type: '.$contentType);
    header('Content-Disposition: attachment; filename="'.$filename.'"');
    header('Content-length: '.$filesize);
    readfile($file);
    Is there...
    See more | Go to post

  • How can I donwload many files with php without the server getting confused?

    I need to download many files at the same time per client using php.

    The files are images or xmls that the system uses to show content.

    I need to use php because the system needs to test that the user is logged in to return those files (they will be put in an htaccess, .htpasswrd protected folder).

    I am doing this using readfile. In my local server I have no problems but when I upload it to the company server...
    See more | Go to post
Working...