Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
russss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
russss
16y ago
The ob_start thing is an exceedingly good point and I don't know why I didn't think of it myself. Probably because I haven't touched PHP in 3 years.
32.
▲
by
russss
16y ago
> Forcing every file to start with <?php is just PITA for developers working on templates. Yep, our templates were .tpl files, which is probably a good convention to have even if you use raw PHP as your templating language. But you
33.
▲
by
russss
16y ago
> it will just pull it from the cache, not needing to be parsed or read from disk. I don't believe PHP's ini_read caches anything. Sure, your OS cache is going to have that file in, but PHP still has to do the fopen(), fread(), parse, f
34.
▲
by
russss
16y ago
Then, if you accidentally edit your front controller file so that it starts with 'i?php' instead of '<?php', it will get exposed. This is what happened with Tumblr.
35.
▲
by
russss
16y ago
If there are no PHP files in the web root then what does your web site do? Every block of PHP code must begin with '<?php', regardless of where it's located, or whether it's included from another file. I do agree with you that this is
36.
▲
by
russss
16y ago
Sure - I'm not defending PHP. This is all the case for backwards compatibility. The easiest solution would be to define a new file extension/MIME type which is "PHP-by-default".
37.
▲
by
russss
16y ago
I'm going to disagree with you. The problem with PHP is that there's no easy way of sharing state between requests. If you have a separate (ini-style) configuration file, every time you get a new request, the file will have to be read in fr
38.
▲
by
russss
16y ago
This bug was nothing to do with the file being web accessible. If you miss the opening <?php tag out in any file, regardless of whether it's in the web root, it will get printed straight out to the browser.
39.
▲
by
russss
16y ago
At Last.fm we had a Subversion pre-commit hook which ensured that all .php files began with <?. That would have easily caught this problem, no drama.
40.
▲
by
russss
16y ago
This bug is nothing to do with putting code in the web root. If you miss the opening <?php tag out in any file, regardless of whether it's in the web root, it will get printed straight out to the browser.
41.
▲
by
russss
16y ago
Yes, but included files still need a <?php tag at the top, or PHP just prints them out.
42.
▲
by
russss
16y ago
I guarantee you that Tumblr has display_errors = Off. This wasn't a display_errors related fuckup, it was a missed opening PHP tag.
43.
▲
by
russss
16y ago
Although this research is interesting, it isn't widely accepted yet. All major authorities still contend that there's not enough evidence to prove that low doses of radiation aren't harmful: http://en.wikipedia.org/wiki/Linear_no-threshold
44.
▲
by
russss
16y ago
In most cases the parachute is pre-deployed and just hangs above the balloon. Once it starts descending, it inflates as the air catches it. There's no reason to get fancy about it.
45.
▲
by
russss
16y ago
I hate how everyone keeps calling this "Space". It's near-space. Space is considered to begin at 100km altitude. These balloons can go up to 45km at the very highest.
46.
▲
by
russss
16y ago
Gah! And I started writing one myself a few days ago. You got there first though, so I'll just fork yours I guess.
47.
▲
by
russss
16y ago
> So the plastic bag that supposedly contains the driver is labeled, "System with resonator left side". Is "System" what they call the driver? Well, the driver itself in those headphones is an integral part of a larger piece which inclu
48.
▲
by
russss
16y ago
Yeah, London doesn't have transfer tickets. It's annoying. At any rate, if you take more than 2 buses per day then getting a monthly bus pass/travelcard is cheaper.
49.
▲
by
russss
16y ago
No ISP on earth can "handle everyone using the service they paid for", the same way that the electricity grid can't handle everyone using their full 100 Amp supply. Overselling is the way the industry works.
50.
▲
Archive Fever: a love letter to the post real-time web
(mattogle.com)
30 points
by
russss
16y ago
|
2 comments
51.
▲
by
russss
16y ago
The article says "a tech cluster that they hope will stretch from Shoreditch and Old Street to the Olympic Park." I suspect it will just cover Old Street and the Olympic Park though.
52.
▲
by
russss
16y ago
For a small company, getting money out of the government in London is like getting blood out of a stone. It's a lot easier to get local government funding and grants outside of London, although the CSR will probably change all that.
53.
▲
by
russss
16y ago
Yes, it's an interactive/non-interactive distinction in play. (DMCA has become a synonym for "non-interactive" in the industry.) Last.fm has always argued that these radio modes were non-interactive, but the labels have clearly got the bett
54.
▲
by
russss
16y ago
Chrome's auto-update feature on Debian-based distributions at least consists of it installing its apt repository in your sources.list. Which is fine by me.
55.
▲
by
russss
16y ago
I don't like commenting on rumour myself, but I heard that Arrington's source was someone within CBS with some kind of grudge.
56.
▲
by
russss
16y ago
It wasn't true. The founders didn't quit because of it, they quit because of the same reason founders always quit when they get bought by big companies. Presumably by "one of the sysadmins" you mean me, because I ended up (somewhat badly) h
57.
▲
by
russss
16y ago
This one was fun too... http://techcrunch.com/2009/02/20/did-lastfm-just-hand-over-u... http://techcrunch.com/2009/05/22/deny-this-lastfm/
58.
▲
by
russss
16y ago
Yes, but it's still a massive body of water. Local heating of the water may be an environmental issue (although a small one, I think), but heating of the entire Baltic Sea is absolutely negligible.
59.
▲
by
russss
16y ago
So, what you're complaining about is companies who don't tell users about their policies. Don't tar everyone with the same brush. Remote wipe is there for a good (regulatory) reason.
60.
▲
by
russss
16y ago
Let me know when there's actually been an instance of a third party being able to wipe my phone, and I'll consider it as a problem.
More ›