^ob_* functions

Mohsen Pahlevanzadeh mohsen@pahlevanzadeh.org
Tue Feb 28 12:58:00 GMT 2017



On 02/28/2017 04:22 PM, tomas@tuxteam.de wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tue, Feb 28, 2017 at 04:16:03PM +0330, Mohsen Pahlevanzadeh wrote:
>>
>> On 02/28/2017 10:06 AM, Florian Weimer wrote:
>>> On 02/27/2017 10:41 PM, Mohsen Pahlevanzadeh wrote:
>>>> Dear all,
>>>>
>>>> PHP has a set of function start with ^ob_ , Can I find same functions in
>>>> glibc?
>>> glibc does not have the exact same functionality.  Depending on
>>> what you want to do, you should look at open_memstream,
>>> fopencookie, or the obstack family of functions (the latter is
>>> problematic because gnulib has conflicting definitions).
>>>
>>> Thanks,
>>> Florian
>>>
>>>
>> I need to wok in memory and when I work in memory user can't watch
>> any result, then return everything what I choose.
>> for example :
>> http://php.net/manual/en/function.ob-start.php
> Mohsen,
>
> I think with libc you are searching in the completely wrong place:
> the PHP functions concern themselves with buffering HTTP output,
> which will go, ultimately, to a HTTP client (possibly mediated
> by a HTTP server).
>
> Libc has absolutely no idea of what HTTP is, it "lives" at a much
> lower layer, basically between your program and the operating
> system. More or less.
>
> What are you trying to do?
>
> Regards
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAli1cqcACgkQBcgs9XrR2kadtwCcDyQIrS7DqNheM5h1SjHGBQ0l
> DrsAniLB3IZJicN+muAI/tPflZqcSOns
> =SQ/5
> -----END PGP SIGNATURE-----
>
It's not http buffering, It's Turn on output buffering,
I need same in C.
-- best regards



More information about the Libc-help mailing list