If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

Oliver's Law:
Experience is something you don't get until just after you need it.

Are you sure you really need to do things the way the php developer did them? What are you actually trying to accomplish with the on and off includes?

"When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
"There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
"Mischief my ass, you are an unethical moron." - chshBlog of X

Really, porting *between languages* = bad. You're better off analyzing what the app does and developing your own from scratch. It adds a bit of time to the project, yes, but it does allow you to do things properly in the language you're using.

Procedural PHP = bleh as far as I'm concerned.

Chris Shepherd
The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
\"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
Is your whole family retarded, or did they just catch it from you?

The reason I'm porting it over is because the "site" is actually an application that the company's trying to sell, and they want multiple versions...

... or at least they did...

It looks like my worries are over; they decided to keep it hosted locally and have companies link over. It keeps the boss happy and the code ours.

BTW - I've been developing another site in ASP.NET, and as much as I hate to say it, I don't dislike it as much as I thought I would. It's a little different than coding in PHP; I have to keep wrapping my head around the fact that I have some semblance of a solid-state app...