3 ms·
Pretty nice. Although I have a simpler implementation... #!/bin/sh if grep --quiet '<?php' $1; then echo 'run for your lives!' else
by harryf 11y ago
Pretty nice. Although I have a simpler implementation...
#!/bin/sh
if grep --quiet '<?php' $1; then
echo 'run for your lives!'
else
echo 'phew. all ok'
fi
Edit: OK so everyone lost their sense of humour. Was just pre-empting the inevitable PHP bashing to come...
- smrtinsert 11y agoIn the time you wrote this comment, Facebook added another 1900 lines of php. There's nothing funny about that.
- ectoplasm 11y ago5 minutes per comment, 12 comments per hour, 8 hours per day = 96 comments per day, call it 100. 100 * 1900 = 190000, call it 200K. You really think Facebook is adding 200K lines of php per day?
- look_lookatme 11y agoAnd two employees? https://news.ycombinator.com/item?id=9886652 https://news.ycombinator.com/item?id=9886652