• Notice regarding image hosts and attachments. See here.

Advice on code organisation

Associate
Joined
1 May 2006
Posts
810
Location
Bristol, UK
Evening all,

I've decided to give my personal website a thorough overhaul over the next few weeks. I originally created it in January and being my first hand coded site its sloppy and the code is badly organised.

I've recently got to grips with Photoshop so at least I can make the site LOOK a bit better :p

However, I want to re-organise my code because at the moment I have a separate file for each php action :eek: I'm thinking of creating something along the lines of a 'master' php script which uses various includes (EG: Input > Process > Output) that way I can keep all of my includes stuffed out of the way.

Could anyone enlighten me with how they organise their code to make everything more manageable.

Edit: Although I've never used them before, I think now is a good time to start looking into objects/functions/classes - are these good tools to use? If so how would I go about using them?

Cheers,
Freakish_05
 
Last edited:
Back
Top Bottom