Open
Description
Hi!
I am fiddling arround how I could implement a way of binary data handling within the php-console.
e.g. I have code which open and streams a pdf, and I want the php-console to open and show the pdf in the browser when executing it..
simple example:
header('Content-Type: application/pdf');
readfile('my.pdf');
same use-case when creating images with e.g. GD and like to render them with the console.
What I tried already:
Make 'Content-Type' sending within php-consoles' index.php optional, so one can send the header from the eval'ed code. Now I get the data back from the server but I have not clue how I could put this give that binary string to the browser, to get it rendered/opened properly.
Any ideas how to achvie such thing?
Metadata
Metadata
Assignees
Labels
No labels