Keith Devens .com |
Friday, August 29, 2008 | ![]() |
| ... be conservative in what you do, be liberal in what you accept from others. – Jon Postel (RFC 793) | ||
|
| ← Kerry unfit to be Commander in Chief | Conditional get → |

66.100.151.131 wrote:
Keith (http://keithdevens.com/) wrote:
Well, I could do something like:
echo file_get_contents('http://del.icio.us/html/keith?extended=body');
which wouldn't interpret the contents as PHP. Yes, include()ing remotely is bad.
But, of course, I can't be hitting del.icio.us on every page request. Not only is it very rude, but it would slow my site down as well.
Sparticus (http://iamsparticus.co.uk) wrote:
I've had issues with file_get_contents and file_put_contents when I've used them on my test server on my computer. I managed to crash php a few times if they file existed but was empty. I'm thinking it's probably only a winxp problem, but still.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.145s.
(Used 8 db queries)

Or you could have done include('http://del.icio.us/html/keith?extended=body');
That would be sweet!
Sorry, I shouldn't even say such things. Including remote URLs (whose contents are then parsed, I believe?) is bad. Doing that on every page load is pretty bad too.