Originally posted here by embro1001
(Seems these web-dev ones never get looked at.)
No, they're looked at alright.. But usually it does take a bit longer then 20 min...

I'm porting an application from PHP to ASP.NET.
Why?

The programmer who made the PHP version used a bunch of includes with parameter passing instead of using OO.

(Example: $someVar = 1; include('blah.php'); //which would process based on the value of $someVar )
Parameter passing with includes? No, not really..
$someVar is just a (global?) variable.. The includes will include (surprise, surprise) the code as is into the script calling the include. You could just as well copy 'n past the included file into the original script it would still work the same.