I have a view-script which opens a pdf-file, it looks like follows:
<?php
$this->title = 'arbeitskalender';
//ini_set('display_errors',1);
header('Content-Type:application/pdf');
header('Content-Disposition', 'attachment; fileName=arbeitskalender.pdf');
readfile('./pdfs/arbeitskalender.pdf');
?>
On my localhost (wamp-server) it works well and the file opens without any error, uploaded to my webspace (not my own server, only a webspace) I get
internal server error
.
What's the problem? Is there a possibility to get a more informative error message? Because it is not my server, I can't have a look in the server log.