yes. like 500 years before: there was no "right" way to write correctly. everyone wrote simply like he wanted to.. i hope you agree the model today with having one way to write "tomorrow" is better.
no, evern better
$snoopy = new Snoopy; // snoopy is a class..
$snoopy->fetch("http://raphb.ch/");
echo "headers: <pre>";
print_r($snoopy->headers);
echo "</pre>";
echo "status: " . $snoopy->status;
echo "content: " . $snoopy->results; // "." is concarnation..
and hey, if you don't want the headers, you could even do:
$fp = fopen("http://raphb.ch/", "r");
$content = file($fp); // loads the filepointer fp into array content
foreach($content as $value) {
echo $value;
}
i'd say the opposite
yes. but of course if you can't write ugly, you won't write ugly. there is NO reason to write ugly, never.
Basicly i think you should force the user to write in a good style. you should never support users wich write ugly code. i'm reading pretty much code the hole day. i don't think having various ways to solve something is pushing creativity. it rahter stops it, 'cause you've to hold more things in your mind. more code. more ways to solve something.. ok, this really may be discutable (even if i'd never agree..)
cu, Raphael.