Reply
How to force the PHPini include on sites with WHM reseller?
Old 01-16-2008, 01:03 PM How to force the PHPini include on sites with WHM reseller?
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,786
Name: Dan
Location: Swindon
Hey,
Okay i know that the PHP.ini has the setting to automatically include file(s) at the begining and end of all files

but how could i do this to certain accounts i host i want to so i can force ads/ad a banner to top of all pages (like i have on most of my sites)

but i dont want to cause PHP/display errors... any ideas?
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
When You Register, These Ads Go Away!
     
Old 01-16-2008, 01:57 PM Re: How to force the PHPini include on sites with WHM reseller?
tripy's Avatar
Fetchez la vache!

Posts: 1,818
Name: Thierry
Location: In the void
sounds like a job for mod_layout
http://tangent.org/362/mod_layout.html
Quote:
mod_layout is an Apache module that provides both a Footer and Header directive to automagically include output from other URIs at the beginning and ending of a Web page. It can be used to wrap documents for a standard look and feel for a site (or to insert banners on any given document in a site). Currently known to support mod_perl, PHP and Apache JServ. Should support just about any type of handler.
Or by specifying
Code:
php_value auto_prepend_file /var/www/site/prepend.html
php_value auto_append_file /var/www/site/append.html
In the virtual host definition
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 01-16-2008 at 02:01 PM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 01-21-2008, 03:26 PM Re: How to force the PHPini include on sites with WHM reseller?
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,786
Name: Dan
Location: Swindon
Talked to my host, aparently i need to be VPS to be able to do this :-(
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to How to force the PHPini include on sites with WHM reseller?
 

Thread Tools

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

vB 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.11838 seconds with 13 queries