Jump to content

rrafluap

New Members
  • Posts

    2
  • Joined

  • Last visited

rrafluap's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Tek'ma'te Jack O'Neill The only code that should be output at that time is the code above. Any other code is generated inside other sections of an IF statement. display_errors is on but log_errors was off, error_reporting is already set to E_ALL. Have configured a local php.ini as I don't have access to the global one. I another requested a screenshot taken at the top of the page and it does look to be the same as that shown in a text editor, which is odd. I work in a school and the user reporting this specific issue is a parent who is now unwilling to give further assistance as the were sent the file manually by another member of staff and unfortunately, I cant replicate it myself. With error logging no on, I may be able to check back and find an error popping in there and eventually find the cause. Do you have any other suggestions? Thanks, Paul
  2. Hi, I've put together a script that allow users to provide a DoB for verification in order to download a file, usually this is a PDF but could be something else. It generally works fine (1 file per user and 1200 files in total) most have been downloaded fine but seems to be causing issues for a handful of users - It seems to be affecting iOS devices using Safari. Does anyone have any idea as to why this might be happening? The code executed at the time is: //Define header information header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header("Cache-Control: no-cache, must-revalidate"); header("Expires: 0"); header('Content-Disposition: attachment; filename="'.basename($filenameGiven).'"'); header('Content-Length: ' . filesize($filenameGiven)); header('Pragma: public'); //Clear system output buffer flush(); //Read the size of the file readfile($filenameGiven); exit; I was having issues with Android before adding the flush() function as there seems to be a bit of debate around its use. I have attached a screenshot of what those users having issues sees. Thanks in advance, Paul
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.