Freeola Internet Get Dotted Domains Gaming & Extras
Freeola Gameaday
 
Browse Chat Forums:
 Chat Forums Home Latest Message Chat Rules Chat Safety & Tips Top Posters How to Win Gameaday View the Winners List Update Your Profile See Who's Online
  Free Web Site  Free Domain Hosting  Emergency Internet  Broadband Offers
 

Help & Support 7 Days a Week

count down top left count down top count down top right
0000000000000000
base count down

Visit our Support Pages E-mail a Support Request Contact Us

VIP Unlimited Hosting

nothing
Just lurking around? Why not join in? You could win free games just by chatting. Choose your Nickname in MyFreeola, or Sign Up Here.
 
you are here
chat line Freeola Chat Forums (52)
Chat Rooms & Users Online
Web Sites & Internet
"One thing"
search
 
Login or Create Free Account
Create & Run Your Own Forum
Sell Domain Names
 
Browsing the Freeola Chat Forums...
 
After the original message, all posts and replies are shown in reverse order, with the most recent post at the top. i.e. your latest post will always appear under the original message, at the top of the first page.
 
To display oldest posts first, click the 'Flip Order - Oldest First' link below.
Close This Tip
 
Back To Threads Post a Reply  
 
 
One thing There are 5 replies
Original Message posted by :. nitro_goat .: on 22/07/2008 at 2:54:16PM
I don't understand.

How can you change something which occurs on multiple pages of your website without having to go through each one and change the code manually.

For instance, I control all my site's CSS with a single stylesheet which is loaded onto every page, but say i want to change the menu (which appears on each page), how can i change it on each page?

Going through the source code of each page and changing it is very tedious and surely not very professional!
 
 Replies To This Post:
 
:. nitro_goat .:
"nitrogoat.co.uk"
on 24/07/2008 at 11:32:35AM
Total Posts: 76
Ok thanks!

I've converted a lot of my pages to .php, but annoyingly many of my google ads have become untargeted, when previously they were targeted. Is this just because google needs to rescan my page, rather than it being because of the php itself?
 
McLong
on 23/07/2008 at 12:59:39PM
Total Posts: 173
:. nitro_goat .: wrote:
> Ok, thanks a lot.
> Is this how a majority of websites function?
>
> Also, does the php coding get converted back into html coding
> when the webpage is loaded? For example, if you viewed the source
> it would display normal html?

Most sites will work this way. If there are elements that feature on lots of pages such as headers, navigations, footers, they're usually a PHP include.

The source will output as HTML. It's not possible to tell whether a site is using a PHP include or not by looking at the source.
 
Hmmm...
"Are you sure?"
on 23/07/2008 at 11:31:35AM
Total Posts: 784
:. nitro_goat .: wrote:
> How can you change something which occurs on multiple pages of
> your website without having to go through each one and change the
> code manually...


Another option is to use the FIND/REPLACE tools in your editor.
Whether you use a WYSIWYG editor or a text editor your normally have an option to find and replace text.

Say a phone number needs to be changed on every page of your website - just use the find/replace tool to update the number on every page of your site, all done with one click - then FTP the changed pages.



Search Freeola Chat
 
:. nitro_goat .:
"nitrogoat.co.uk"
on 22/07/2008 at 4:26:54PM
Total Posts: 76
Ok, thanks a lot.
Is this how a majority of websites function?

Also, does the php coding get converted back into html coding when the webpage is loaded? For example, if you viewed the source it would display normal html?
 
Eccles
"Aargh! Broken..."
on 22/07/2008 at 4:13:11PM
Total Posts: 400
Using php this can be achieved using the include function.
For example you code up your menu and save it as menu.php then you code up your header (which contains your css link) as header.php.
Then you create a new page and

include("header.php");
include("menu.php");

where ever you want the menu or footer to appear.
You can do the same for a footer of course.
It kind of a php way to replicate frames but means that to update the menu, header or footer across the site you only have to change one of three files each time.
It's how the whole of Freeola works!
 
:. nitro_goat .:
"nitrogoat.co.uk"
on 22/07/2008 at 2:54:16PM
Total Posts: 76
I don't understand.

How can you change something which occurs on multiple pages of your website without having to go through each one and change the code manually.

For instance, I control all my site's CSS with a single stylesheet which is loaded onto every page, but say i want to change the menu (which appears on each page), how can i change it on each page?

Going through the source code of each page and changing it is very tedious and surely not very professional!
 
 
MyFreeola Internet Settings Control Panel
Login or take a free look around.
Free Account Sign-Up
Freeola Gameaday
Today's Winner
Nickname:Webmaster
Entry: Customer Site
 
Fantastic FREE Unlimited Services for every freeola internet
customer in the UK!
Register Domain Names. Buy from £2.99
e.g. yourcompany.com
or just yourcompany.
OR VISIT GETDOTTED.COM