Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
How to force the PHPini include on sites with WHM reseller?
Old 01-16-2008, 02:03 PM How to force the PHPini include on sites with WHM reseller?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
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?
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 01-16-2008, 02:57 PM Re: How to force the PHPini include on sites with WHM reseller?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 01-16-2008 at 03:01 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-21-2008, 04:26 PM Re: How to force the PHPini include on sites with WHM reseller?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Talked to my host, aparently i need to be VPS to be able to do this :-(
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
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 Search this Thread
Search this Thread:

Advanced Search

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
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.11938 seconds with 12 queries