NYCPHP Meetup

NYPHP.org

[nycphp-talk] an old thread on a proposed function for PHP

Tim Gales tgales at tgaconnect.com
Mon Jan 5 12:53:07 EST 2004


Last month there was some discussion to the effect 
of "what was in their [the php developers'] mind 
when they created 'magic quotes'? "
(why does PHP have this feature[?] at all?)

I was doing something else over the weekend, when I 
ran across the following thread:

Sara Golemon wrote (20 Feb 2003):

"I recall a discussion sometime back about making 
file_put_contents()(create a file and write the provided 
contents to it in one command)...
Was it decided not to create these..."

http://www.zend.com/lists/php-dev/200302/msg00522.html

Following the thread can give you an insight (of sorts) 
into the collective mind of people working on PHP.

If this sort of thing interests you at all, I suggest you 
follow the thread at least to where Sascha Schumann says:

"That must be one of the most useless function proposals 
I've seen so far. Now, if the function could atomically 
replace file contents, then it would be something entirely 
different.

But a simple wrapper for a two-line fopen/fputs?  Get real."

But I encourage you to follow the thread to where Rasmus 
Lerdorf says: 

"I do agree with Sascha that file_put_contents() 
as it is currently proposed is useless"

Then take a look at the following:

http://php.us.themoes.org/manual/en/function.file-put-contents.php


T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com

Quotation:
"in logic, the set of operators "not" and "or" is described as orthogonal,
but the set "nand", "or", and "not" is not (because any one of these can
be expressed in terms of the others)."

from:
http://dictionary.reference.com definition of 'orthogonal'





More information about the talk mailing list