Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 21st, 2008, 3:33 AM   #1
Overmind
Professional Programmer
 
Overmind's Avatar
 
Join Date: Jun 2004
Location: South Africa, Johannesburg
Posts: 301
Rep Power: 4 Overmind is on a distinguished road
Add Ads to pages

A couple of years back, I provided free webhosting, and it proved quite succesfull for a while until a problem with my host, which lead to my hosting account being deleted.
I created the script myself in PHP, it provided a browser interface for uploading and managing their site, and it interacted with Cpanel to automatically add a subdomain for each user.
It was ad-free.

Now my plan is to recreate this script and possibly have paid and free webhosting. What I want to know, is how to display an ad, either as a header or footer on each page, without editing their documents.
Does anybody know a method I could use?
__________________
[SIGPIC][/SIGPIC]
Overmind is offline   Reply With Quote
Old Apr 21st, 2008, 8:47 AM   #2
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 130
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Add Ads to pages

May i ask why you don't want to do it via editing the users files?
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old Apr 22nd, 2008, 8:18 AM   #3
Overmind
Professional Programmer
 
Overmind's Avatar
 
Join Date: Jun 2004
Location: South Africa, Johannesburg
Posts: 301
Rep Power: 4 Overmind is on a distinguished road
Re: Add Ads to pages

Hrmm...as they upload the file, add the ad code, as they use the online editor, remove it and replace it when they save, when they download a file using the file manager, remove the code before sending the file...I guess I could do all that without much effort...

I just remember somone doin something similar using the apache server, and am trying to find out how. (why I posted this under php, I don't know)
__________________
[SIGPIC][/SIGPIC]
Overmind is offline   Reply With Quote
Old Apr 22nd, 2008, 9:29 AM   #4
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 130
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Add Ads to pages

Ah ok i see, adding it to the end and removing it etc would be a good method. But if you are after finding a way of doing it via the apache server then i cannot help you sorry

Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot assign 'Add' because it is a 'method group' Jarod Silverstar C# 1 Oct 13th, 2007 11:14 PM
can't open php pages BlackSmith PHP 7 Aug 22nd, 2006 4:07 PM
Getting the URLs as pages are visited in user's web browser curiosity-killed-the-cat Java 0 May 12th, 2006 6:37 AM
pages content Nimwa2 PHP 6 Feb 1st, 2006 9:48 PM
printing 1 or 2 pages and not 9999 Easter Bunny Java 5 Jun 14th, 2005 4:48 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC