2015-01-07, 11:39:46
In my php script (before I started using GetSimple), I would create a download link to a document on my web site by outputting something like this:
<?php
header('Location: http://my.site.com/document.pdf' );
?>
That causes an error when that code is run from a component because the header has already been sent.
How can I do something like that from dynpages? (I guess the question could be: "how can I prevent the headers from being sent automatically before a component starts execution?")
Thanks
Didier
PS: I made another post about dynpages a little while ago as a new thread, not in this thread, sorry about that...)
<?php
header('Location: http://my.site.com/document.pdf' );
?>
That causes an error when that code is run from a component because the header has already been sent.
How can I do something like that from dynpages? (I guess the question could be: "how can I prevent the headers from being sent automatically before a component starts execution?")
Thanks
Didier
PS: I made another post about dynpages a little while ago as a new thread, not in this thread, sorry about that...)