Force download shows a blank page! |
Hi;
Not sure why forcedownload shows a blank page PHP Code: $image='http://members.getaltitude.com/wp-content/uploads/2015/01/GETALTITUDE_black-300x64.png'; Here is the whole code: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); What am I doing wrong?
A blank page often indicates a PHP error which has been suppressed. This means you need to check your error logs and/or enable the error messages to determine where the error has occurred.
The best assumption I can make from your code is that file_get_contents() is throwing an error.
force_download just set the headers to download a file, it doesn't output anything on the web page.
Hi;
Errors, notices and all other warning types are. This is very strange. It used to pop up the browsers download panel (asking where to download to)!
(02-16-2015, 01:59 AM)Narf Wrote:hey Narf;(02-15-2015, 11:43 PM)behnampmdg3 Wrote: Hi; It's a blank page. Shows nothing
|
Welcome Guest, Not a member yet? Register Sign In |