473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Force text on all pages

goatboy
I'm running a home server and have set up a few accounts for some friends of mine. I have given them each ~user (I forgot the term) public_html directories.

One thing I want to do is to force a SSI across all of their pages without having to manually add them. For example, I want something similar to:

"<This page hosted on _____>" or "<Server downtime from _____ to _____>"

as a banner on the top-left corner (or any other specified location) of each user's page. This is to ensure that if I want a message to be seen, it will be seen.

Does anyone know of a way to do this?
Dec 19 '09 #1
2 2327
Self-bump. Google has been no help as of yet. The only thing I could think of would be to write a templating system in PHP, but I'm not quite that skilled yet and I am very stubborn about only using my own code. Here are my specs:

PHP Version: 5.2.10-2ubuntu6.3
Apache: 2.2.12 (Ubuntu)
Kernel: 2.6.31-14-generic-pae
I'll keep researching while I await a response.
Dec 30 '09 #2
dgreenhouse
250 Expert 100+
Look into the auto_prepend_file and auto_append_file directives for PHP.
http://php.net/manual/pl/ini.core.php

But be careful how you structure any pages on the site(s).
I'd imagine session management will have to be handled in the auto_prepend_file.
I never use them as they can cause you nightmares if you forget they're turned on.

You'll obviously have to instruct your friends on the usage.

Possibly you could house all the pages in an iFrame that's encapsulated by the prepend and append files. That way, you might avoid many of the nightmares I envisioned above.

e.g.
Expand|Select|Wrap|Line Numbers
  1. ---> prepend file contents:
  2. <html>
  3. <head>{global site scripts and css here}</head>
  4. <body>
  5. <iframe id="something_really_really_unique">
  6. <--- end of prepend file
  7.  
  8. [Your friend's files get loaded here...]
  9.  
  10. ---> append file contents:
  11. </iframe>
  12. </body>
  13. </html>
  14. <--- end of append file
  15.  
Hope that helps.
Jan 23 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mr. x | last post by:
Hello, How can I force refreshing of my web site, when a visitor enter my site. Thanks :)
11
by: opt_inf_env | last post by:
Hello everybody, I have created a page consisting of two frames. The second frame is made to display "external" sites (i.e. written not by me, for example www.google.com). But I found that some...
3
by: xscully | last post by:
Is there a way to force the user to read a textarea? Just like those 'agreements' that is used in a few offline instalation.. You have to scroll all the way down of the textarea and then the I...
3
by: danmc91 | last post by:
Hi, I'm just getting going with xml and xslt. I'm trying to write what are essentially man pages and I need 3 output formats. 1) nroff -man format for real man pages 2) html for an online...
3
by: Stuart Read | last post by:
Hi, - I'm running .NET framework 1.1 on win2k server I'm investigating error pages at the moment. I have found how to: a) display friendly or real .NET errors in the remote browser, by...
2
by: Edward Chung | last post by:
I create a user control that is used as a page header for all application's pages. The user control contains a HyperLink control named accountHyperlink whose text can either set to...
2
by: dmc2409 | last post by:
Well, I am more a desigber than developer. Need to solve the folloving problem. I have a page on, lets call it Firstserver. It opens Page1, Page2 and Page3 on Secondserver through a frame on the...
0
by: peter.c.bradley | last post by:
Hi folks, I have an Access report that has an unbound text box in the details section. The report also includes the standard headers and footers. The details section is populated by a query...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.