Questions tagged as 'buffer'

1
answer

How to empty PHP buffer during execution

I've seen somewhere a code that configures PHP to empty the Buffer (go on-screen printing) while running script without needing to wait execution for something to be displayed. Has anyone seen or known what this command is?     
asked by 01.09.2015 / 16:08
2
answers

String reading and input buffering

I've always used the fgets () function to read keyboard strings, since it (at least I thought so) always clears the input buffer. However, I'm encountering some errors with running the function in the case of the code below. The strings are not...
asked by 20.09.2015 / 16:33
1
answer

Use% (limit) [^ \ n] in scanf is it safe to capture strings?

I'd like to know a totally secure way of capturing strings without running buffer overflow or any other threat. I read a lot about ready-made functions and would like to know which are the most recommended, but I wanted to be able to impleme...
asked by 07.11.2014 / 14:01
1
answer

Manage video with PHP

I'm setting up a file management system, but I'm having trouble displaying the videos. It has an interpreter and in some part I have an "ignorer". $mime = mime_content_type($path); if(in_array($mime, self::$ignore)){ $len = filesize($p...
asked by 21.09.2017 / 18:51
1
answer

How does the buffer work using printf and scanf?

Using printf , when I do: printf("\n\tQualquer coisa\n"); It inserts this first into a buffer and then prints to the screen (standard output)? Using scanf with the format %c , it captures the character-to-character buf...
asked by 07.11.2014 / 13:48
0
answers

Calculate file size of a dataURL (cost)

I'm uploading an image in base64 ( dataURL ) to an application that uses express. As the user is doing the "clipping" of this image in the front end I did not find another way to send but by dataURL ... the application has a gener...
asked by 12.12.2017 / 13:19
1
answer

What is an "output_buffer"?

Reading is answer , this question came to me. What is a output_buffer ?     
asked by 17.02.2017 / 19:47
1
answer

how to force a buffer to behave like a string in C?

I'm getting a buffer from the internet, I believe that to traverse this buffer and find the last character, you need to find the character '\ 0'. But there is no '\ 0' in a buffer. Can I force this buffer to behave like a string?     
asked by 24.06.2015 / 22:34
2
answers

Read strings in java within a while or do-while loop

How do I read strings in java within a while or do-while loop? without error and does not read Code: package listas; import static java.lang.System.exit; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public...
asked by 16.09.2017 / 09:53
1
answer

I have an error in scanf

I have to read N lines with one of the following 3 formats: P k ": the letter P followed by k where k is an integer; A : the letter A followed by k being an integer; " Q ": the letter Q . As I do not know if the person goes by...
asked by 09.04.2016 / 03:27