Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
how to update one page/ have all pages change
Old 06-28-2004, 10:35 AM how to update one page/ have all pages change
Novice Talker

Posts: 5
Trades: 0
Hello. This is something that I've been struggling with forever. I'm trying to put ads on my site and grow the site at the same time. Obviously, having to change hundreds of pages everytime I want to change an ad would be undisirable. Is thier any way I can just put certain coding on all of my pages, so when I update a "master page", all of the images, and links on those images could change?

I can get easily update pictures to change on all of my pages with this technique but the url never changes????

very frusterating and confusing

Thanks in advance.

p.s. as well, I don't have a server that supports php (whatever that means, but it does support CGI)

thanks
webguy79 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2004, 12:56 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
webguy,

I'm not too sure there is anything you can do with just plain HTML unless you are willing to do a lot of cutting and pasting (which I assume you aren't).

PHP would definitely give you the functionality you need - that's mainly why I am posting to assure you that a solution is there if you are willing to change your hosting.

Others may be better versed in CGI than I --

Good luck!
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 06-28-2004, 01:01 PM
OtterBob's Avatar
Super Talker

Posts: 116
Location: Greece, NY USA
Trades: 0
Since you don't have PHP, there's two things I'd recommend.

1) Use Server-Side Includes (SSI) if you have that available. Wherever you want the ads to appear, put <!--#include virtual="current_ad.txt" -->. Current_ad.txt would have all the code you need for the ad. You may need to rename all your .html files to .shtml unless you or your host can make it so .html files are searched for SSI. (You'd need to create a .htaccess file to do that, or your host could do some configuring.)

2) Use Javascript. Create an external script to "write" the code to your page. You wouldn't need to rename your pages, but if your visitors have Javascript turned off then they won't see your ads. If the percent of visitors that have Javascript turned off is small, then it shouldn't be too big of a deal.

Of course, some one may have a better solution for you.

Edited to add: Kyrnt's post wasn't up when I started to reply. I'd give his suggestion to change hosts some consideration. PHP really does come in handy for a lot of things, and you can get it with even "bargain basement" prices.
__________________
"What? Oh {darn}! Now my last words are gonna be 'what'." - Otter Bob (Burt Reynolds), The Cherokee Kid

Last edited by OtterBob; 06-28-2004 at 01:03 PM..
OtterBob is offline
Reply With Quote
View Public Profile
 
Old 06-28-2004, 01:11 PM
Novice Talker

Posts: 5
Trades: 0
thanks for you help guys. I've been looking throughout the rest of this forum and it really looks like PHP is the way to go. I don't have a clue how to use it, but I'm a smart guy and could probably figure it out pretty quickly. Anyways, I know this is probably the wrong forum to ask this question in, but could you recomend a host that is both affordable and supports PHP (plus good bandwith, little downtime etc). Sites preferably you guys have had good experiences with.

thank you
webguy79 is offline
Reply With Quote
View Public Profile
 
Old 06-28-2004, 01:31 PM
Experienced Talker

Posts: 46
Trades: 0
Well how much space/bandwidth are you looking for exactly?

check this forum out: http://webmaster-talk.com/forumdisplay.php?f=13

Last edited by polykranopalous; 06-28-2004 at 01:34 PM..
polykranopalous is offline
Reply With Quote
View Public Profile Visit polykranopalous's homepage!
 
Old 06-28-2004, 01:39 PM
Novice Talker

Posts: 5
Trades: 0
as of now, I have unlimited bandwidth but no php. I've looked around and most other servers have bandwith caps of 2gigs, 5gigs etc. I just don't know how this converts into visitors... arproximatley how many visitors is 2g, 5g etc. Obviously I'de like as much bandwith as possible. One of my sites gets close to 20,000 uniques per month and is growing pretty rapidly so I don't want to limit myself too much.
webguy79 is offline
Reply With Quote
View Public Profile
 
Old 06-28-2004, 01:52 PM
Experienced Talker

Posts: 46
Trades: 0
hmmm i cant answer that question for ya, could you post a link to your site
polykranopalous is offline
Reply With Quote
View Public Profile Visit polykranopalous's homepage!
 
Old 06-28-2004, 05:27 PM
OtterBob's Avatar
Super Talker

Posts: 116
Location: Greece, NY USA
Trades: 0
The number of visitors per 1GB bandwidth depends on what's on your site. A site with 20 5KB pages and 4 70KB jpegs will tend to use less bandwidth than a site with 20 70KB jpegs and 4 5KB pages. Figure out approximately how much bandwidth each visitor will use on average and divide that by the amount of bandwidth you have to get the approximate number of visitors you van have. If you think that an average visitor will use 200KB in one visit, then 5GB bandwidth will give you a little over 20,000 visitors.

I've got reseller accounts for my sites so I haven't dealt with many hosts lately. And with what you're going to use PHP for at first, it's really easy to "get" and use.
__________________
"What? Oh {darn}! Now my last words are gonna be 'what'." - Otter Bob (Burt Reynolds), The Cherokee Kid
OtterBob is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to update one page/ have all pages change
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28360 seconds with 12 queries