membership call is preventing readfile() somehow

By markr - August 7, 2014

I removed the login requirement and just loaded the viewer and have the same problem.

It if matters, this topic can therefore be moved to the general forum.

Btw, I'm using the readfile() snippet in order to load a file stored in directory above public_html. Like I wrote, it works great until I load the viewer.

By gregThomas - August 14, 2014

Hi Markr,

Is an error message displayed at all?

I'm wondering if the server can't add the headers, as the page has already started loading. This can happen if you have any white space between your PHP opening tag and the start of the document, for example:

  
 <?php //white space at start of document

as opposed to

<?php // no white space at start

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com