Skip to main content

All Questions

Tagged with
0 votes
1 answer
35 views

how to read ndjson stream response in php

sorry if my question is silly but there's something I'm not getting. I'm using Guzzle in a PHP process to make an API call. $response = $this->client->request('GET', 'droits_acces', [ ...
Florian B's user avatar
0 votes
0 answers
29 views

How to disable buffer_output when using Symfony's build in server?

My eventual goal is to create an SSE stream, but for now I just created a simple php file in the public folder of my Symfony project. The code in it has nothing to do with Symfony: <?php header('...
Jack33's user avatar
  • 121
1 vote
1 answer
30 views

php listener for stream content transfer

I want to find out if I have any endpoints in my API that have more than a minute between sending data chunks via a stream. (e.g. because of long running sql queries) I would therefore like to log ...
Chris's user avatar
  • 13.9k
0 votes
2 answers
66 views

Store very large files in mysql db

My implementation is laravel, but this could generally apply to php/mysql. I have a large file, generally about 500MB that I want to store in the database. If it helps, the file itself is a zip of ...
mankowitz's user avatar
  • 1,934
0 votes
1 answer
59 views

PHP: How to get the Content-Length from stream request for chunk download

I'm attempting to download archives from an external site in chunks. However, I'm encountering an issue where the Content-Length header, which I'm trying to retrieve using get_headers(), is not ...
Harry's user avatar
  • 27
0 votes
1 answer
69 views

Streaming results in amphp

My goal is to create a pipeline that could have tens of thousands of items in the iterator. Since this can take a long time to process, I want to steam the results back to the client as they are ...
Jerry's user avatar
  • 3,546
1 vote
1 answer
104 views

XHR Request is pending until whole audio file fetch [closed]

I have a PHP music site that audio files played through java script : audio.src = uri; audio.load(); audio.play().then( r => { //set somethings } ); ...
Max Payne's user avatar
0 votes
1 answer
45 views

Stream PHP responses word by word back to JS, without keeping full history

I would like to stream PHP responses to JS word by word, however responses get cached: PHP File: <?php header('Content-Type: text/event-stream'); header('Cache-Control: no-cache'); ob_clean(); ...
Laurent Crivello's user avatar
0 votes
0 answers
136 views

Laravel stream output doesn't work as expected

In laravel 10, code like this: // PHP use Symfony\Component\HttpFoundation\StreamedResponse; public function stream() { $response = new StreamedResponse(function() { for ($...
Allen_Tsang's user avatar
1 vote
1 answer
79 views

PHP SSL "older" stream sockets close unexpectedly

I am developping a SSL websocket server, PHP 8.2. I can accept SSL conections with no problem. Issue is: Connection A, then B then C then D are accepted. When conection C closes (clients make the ...
Ludo's user avatar
  • 11
1 vote
1 answer
94 views

PHP - stream crypto enabled server cuts off bytes

I made a WebSocket server with PHP and added the feature to add SSL/TLS to the server. Now I enabled crypto with stream_socket_enable_crypto and everything works. I read data and it's decrypted. Only ...
Play_it's user avatar
  • 194
1 vote
1 answer
235 views

PHP streaming webm does not work on Safari

The Issue I'm trying to make .webm streaming on Safari through PHP. For some reason, I'm getting an empty video player in Safari. Works fine on the other browsers. There are screenshots of all ...
Gabriel Atanasov's user avatar
1 vote
1 answer
76 views

What is the difference between stream_isatty and posix_isatty?

I am wondering what is the difference between stream_isatty and posix_isatty. I have also gone through with the documentation part for both as below: stream_isatty: https://www.php.net/manual/en/...
Abhinav's user avatar
  • 87
0 votes
0 answers
71 views

PHP audio stream method is slower than direct path using?

I need to hide direct path of my mp3 files. So rather than an audio tag like " <audio controls> <source src="sound.mp3" type="audio/mp3"> </audio> I used ...
Mostafa Norouzi's user avatar
-1 votes
1 answer
29 views

PHP resources type list - such as copy(RESOURCE, ...) [closed]

I am trying to gain understanding of capabilities and limitations of paths as specified in functions like copy(a, b). Until recently I thought only traditional file paths (/path/to/file.obj) could be ...
Dennis 's user avatar
  • 1,120

15 30 50 per page
1
2 3 4 5
37