[nycphp-talk] an old thread on a proposed function for PHP
Chris Shiflett
shiflett at php.net
Mon Jan 5 14:36:38 EST 2004
--- Adam Maccabee Trachtenberg <adam at trachtenberg.com> wrote:
> I can replicate the majority of the functions in PHP using more low
> level functions and operators, but that doesn't mean those functions
> are useless and bloated.
>
> In this case, I think it makes perfect sense to have
> file_put_contents() if there's a file_get_contents().
>
> Also, why would you want to subject people to C/Unix's fopen(),
> fwrite(), and fclose() when all they want to do is save stuff? That
> seems horribly tortured.
I agree on all points, and I'm a big fan of stuff like
file_get_contents(). In fact, I think there should be a
mysql_connect_and_then_query_and_then_fetch_array() function. :-)
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
More information about the talk
mailing list