Web Hosting Talk







View Full Version : How to add TEXT on every page?


qllonceagain
09-18-2004, 07:38 PM
I am thinking to buy a reseller account and gives space free to some clients for free, but I will put some codes on every page. I prefer to put it righter after <body>. How do I do this from a reseller account?

It is similar what netfirms does, or Geocities....

Carp
09-18-2004, 07:47 PM
I'm not sure what software you're using. If you're giving the space away to clients, Just tell them to include the info you want on their page. Like make a page and ahve them include it via php:

<?php include ("http://www.main-site.com/clients/header.php"); ?>

qllonceagain
09-18-2004, 07:50 PM
Originally posted by Carp
I'm not sure what software you're using. If you're giving the space away to clients, Just tell them to include the info you want on their page. Like make a page and ahve them include it via php:

<?php include ("http://www.main-site.com/clients/header.php"); ?>

I can not control if they put or not. I must use some method to insert it forcefully like netfirms.com does to its free clients.

azizny
09-18-2004, 07:56 PM
Use .htacces to redirect EVERY PAGE to a page where it displays the page and a frame ontop with your header!

qllonceagain
09-18-2004, 11:01 PM
Originally posted by azizny
Use .htacces to redirect EVERY PAGE to a page where it displays the page and a frame ontop with your header!

that is not how netfirm does. frame is not acceptable for most users.

sea otter
09-18-2004, 11:40 PM
There's a perl apache module on cpan that does this (there are a couple, actually). The work is done by apache itself, does not use frames, and the users cannot "bypass" it.

http://search.cpan.org/~geoff/Apache-SimpleReplace-0.06/SimpleReplace.pm

qllonceagain
09-19-2004, 12:05 AM
Originally posted by sea otter
There's a perl apache module on cpan that does this (there are a couple, actually). The work is done by apache itself, does not use frames, and the users cannot "bypass" it.

http://search.cpan.org/~geoff/Apache-SimpleReplace-0.06/SimpleReplace.pm

Thanks. You are the man.

I am new to reseller. I know as a shared, I can only have access to .htaccess, not in httpd.config. Is what it does possible to be added from a reseller account? I don't have root access to shell or apache.

Do you think if I buy a Virtual Priviate Server then I will be able to do that trick?

sea otter
09-19-2004, 12:37 AM
Originally posted by qllonceagain
Thanks. You are the man.

I am new to reseller. I know as a shared, I can only have access to .htaccess, not in httpd.config. Is what it does possible to be added from a reseller account? I don't have root access to shell or apache.

Do you think if I buy a Virtual Priviate Server then I will be able to do that trick?

Anytime :)

You're right, this sort of thing won't work on a shared/reseller account, but will work fine on a VPS.