Chatbox

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 what do you think on 5/6/2012, 10:39 pm

grimofdoom

avatar

Member
For major peices that would be changed every so often(looks/pieces) such as menu, would it be most benificial to use PHP Include? or is there something more easier/better then that?

View user profile

2 Re: what do you think on 6/6/2012, 4:27 am

Vanilla990

avatar

Administrator
If you only plan on changing the colour and images within sections you could always write a series of Cascading Style Sheets and then swap between them for the different themes.

So write one for the current look of the site, and then making a testing site and start writing the new css and then when you're fully ready, swap over where the webpages get the css file to the newer one.

View user profile

3 Re: what do you think on 6/6/2012, 8:36 am

LGforum

avatar

Moderator
Yes. It would.

A PHP Include benefits you for things that are in like nearly all your pages. Such as your menu.

If you didn't use a PHP include, and you had 20 pages, you would have to go through all those 20 pages and change it in each one... With a PHP include, you only need to change the one file (the one you're including). What could be simpler/easier than PHP includes.

View user profile

4 Re: what do you think on 6/6/2012, 10:41 pm

grimofdoom

avatar

Member
I mean like if i need to add a link to the menu, i dont want to go to all like the many files to edit them,instead just change 1 file to change them all(like add link0. I always use external CSS style sheets

View user profile

5 Re: what do you think on 7/6/2012, 2:49 pm

LGforum

avatar

Moderator
Then you've pretty much described the need for PHP Includes. Or you could try SSI's. But PHP includes would be the simpler choice considering your level.

View user profile

6 Re: what do you think on 8/6/2012, 10:30 pm

grimofdoom

avatar

Member
Alright,thanks. I was just trying to make sure if someone uses something else thats easyish and safe.

View user profile

7 Re: what do you think on 9/6/2012, 7:55 am

LGforum

avatar

Moderator
Well there are SSI's, and other CGI's which have include equivalent. Its up to you what you think is easiest. If your writing in PHP then, PHP includes is the only option. Unless you decide to use a template engine, and you can use a "template" include, but essentially they are just using PHP includes.
So its really down to what you feel is easiest Smile

View user profile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum