Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With sloppy scraping I guess JS was picked up besides text.

PHP should be intentionally used as training material.



Sloppy scraping?

You forget html and JS is perfectly valid syntax to find in a .php file.


Yes, of course. But JS is frontend mostly, so I can imagine it's easier to accidentally scrape some JS with text.

PHP, not so much, only if the server returns source by accident.


What if the server is GitHub? Or some random blog about PHP development? There are lots of situations where it's very intentional that PHP is contained in HTML.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: