News for hackers. Stuff that matters.
Re:I Like PHP by adambard on Wednesday August 10, 2011 @02:22PM (#2869493)
It happens with any language. But at least in Java you're limited (as far as I know) to looking through what you've explicitly imported. If you include a file in PHP, you have access to everything that that file included in itself, and everything that those files included, and so forth.
Re:I Like PHP by jergason on Wednesday August 10, 2011 @05:46PM (#2870355)
Excuse my ignorance, but don't you have the same behavior with `require` in Ruby? How are the behaviors of Ruby's `require` and PHP's `include_once` different?