Closed kimboslice99 closed 1 year ago
This extension does not provide any plain functions, see its documentation.
Thanks for the response, ya I have read through that and didn't make much of any progress, ah well, suppose I'll come back to this when I've learned more
Suppose I may have been reading old docs or something that had pointed me to this extension for a few functions to serve files, like http_send_file, but it would seem this is moved to the http\Env\Response class
However I see its noted
If you need throttling by regular means, check for other options in your stack, because this method blocks the executing process/thread until the response has completely been sent.
So I guess this isn't really a great solution for serving large files?
Edit; I've seen the first example, couldnt seem to make it work as written because STDOUT isnt defined, and even after defining like so define('STDOUT', fopen('php://stdout', 'wb'));
it still fails to send any response yet no errors
Just don't use STDOUT
at all, when you're not on the CLI.
System info:
Seems even after loading the extension, and it appearing under
phpinfo()
andphp -m
, none of the functions appear withprint_r(get_extension_funcs("http"))
The dependencies are present... raphf, iconv, and hash are all loaded before php_http.dll
Unsure what to do? No errors present anywhere