.htaccess

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

.htaccess

Post by psychotomus »

is there any to config this so it will display 2 files at once instead of once.

for example if i visit http://www.po2.net/tmp.php


it will first display http://www.po2.net/test.php then after display that it will display http://www.po2.net/tmp.php


understand?

im thinking about making a phpBB mod that will allow people to host websites to its users.

Problem is, people want a feature to be able to include a banner in the header or footer.

so when people upload test.html, they want a banner at the top of all there html or at the bottom. so i figured there might be a way to do that with the htaccess file.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

look at the php auto_include functionality..
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

how do I use this auto_include thing?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

auto_prepend_file


I think you should be able to do:

Code: Select all

php_value auto_prepend_file "/full/path/to/file.php"
although I haven't tried it.
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

that dont seem to work. keeps giving me t string error.
Post Reply