Hi,
I'm using Apache webserver 1.3.27 and PHP 4.3.0. On my development machine,
I have created several virtual hosts. AFAIK PHP configuration is stored in
php.ini. I want some of the virtual hosts override some of PHP
configuration, while the rest retain the configuration in the php.ini. How
can I achieve this? I'm thinking a similar approach like Apache's
httpd.conf and .htaccess, but how to do it with PHP.
Furthermore, one of my project involves multiple subdomains, each
implemented by way of virtual hosts. Say a domain dev.foo.net have several
subdomains (dev.sd1.foo.net, dev.sd2.foo.net, etc), and I have other
domains configured in my machine, like dev.bar.org and wdv.blah.com. Also
say that default php.ini is the default config for all domains in my
machine. How can I make a configuration override applicable only from
dev.foo.net and it's subdomains, but not applicable to other domains
(dev.bat.org and wdv.blah.com uses the default php.ini entirely).
Oh, BTW, the machine is running on WinXP sp1a.
TIA 3 4222
Ricky Romaya wrote:
Hi,
I'm using Apache webserver 1.3.27 and PHP 4.3.0. On my development machine,
I have created several virtual hosts. AFAIK PHP configuration is stored in
php.ini. I want some of the virtual hosts override some of PHP
configuration, while the rest retain the configuration in the php.ini. How
can I achieve this? I'm thinking a similar approach like Apache's
httpd.conf and .htaccess, but how to do it with PHP.
You can put PHP settings in the .htaccess, depending on your Apache
configuration, example:
php_flag allow_call_time_pass_reference off
see: http://www.php.net/manual/en/configuration.changes.php
PHP: How to change configuration settings - Manual
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
Jonathan N. Little wrote:
Ricky Romaya wrote:
Hi,
I'm using Apache webserver 1.3.27 and PHP 4.3.0. On my development machine,
I have created several virtual hosts. AFAIK PHP configuration is stored in
php.ini. I want some of the virtual hosts override some of PHP
configuration, while the rest retain the configuration in the php.ini. How
can I achieve this? I'm thinking a similar approach like Apache's
httpd.conf and .htaccess, but how to do it with PHP.
You can put PHP settings in the .htaccess, depending on your Apache
configuration, example:
php_flag allow_call_time_pass_reference off
see:
http://www.php.net/manual/en/configuration.changes.php
PHP: How to change configuration settings - Manual
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
You can also use the php_* directives in the virtual host config
(<VirtualHosttags), though this requires a restart of apache for the
changes to take effect, unlike .htaccess
"Jonathan N. Little" <lw*****@centralva.netwrote in
news:d6**************************@NAXS.COM:
>
You can put PHP settings in the .htaccess, depending on your Apache
configuration, example:
php_flag allow_call_time_pass_reference off
Yes, I have read about it also, but I want to keep PHP configs seperated
with Apache (.htaccess).
On at least one hosting I have used before, they have an option to "Create
your own PHP.ini", which indicates a capability of having a php.ini per
domain basis. Sadly, they won't tell me how it could be done. This is what
I'm aimimg for.
TIA This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Greg Ferris |
last post by:
I have read a number of posts with techniques for limiting the max
number of characters entered into a textarea, but I'm looking for some
advice on how to limit the number of rows and the number of...
|
by: Kallis |
last post by:
Hello,
I have the following situation when trying to localize my software:
I have BIG solution with about 80 projects. In one of the projects I
have a number of dialogs (the dialog project :-)...
|
by: Guadala Harry |
last post by:
Is there any way for one Session to remove and update objects in another
Session? I seriously doubt it, but thought I'd ask. Here's why: I have some
data that is unique per user (or per session -...
|
by: Karl O. Pinc |
last post by:
Hi,
I don't suppose that the todo item:
Referential Integrity
o Add deferred trigger queue file (Jan)
Means that there will be a statement like:
CREATE TRIGGER ... FOR EACH TRANSACTION
|
by: Randy Yates |
last post by:
I'm a complete newbie to postgres so please look the
other way if these questions are really stupid.
Is it legitimate to have one database per data file? For
organizational and backup purposes,...
|
by: bruno at modulix |
last post by:
Hi
I'm currently playing with some (possibly weird...) code, and I'd have a
use for per-instance descriptors, ie (dummy code):
class DummyDescriptor(object):
def __get__(self, obj,...
|
by: unabogie |
last post by:
I have a table with entries tied to a membership database. The problem
is that I want to select a limit of sixteen entries per member, per
day, where some members have 16+ entries per day.
I...
|
by: Matias Jansson |
last post by:
I come from a background of Java and C# where it is common practise to have
one class per file in the file/project structure. As I have understood it,
it is more common practice to have many...
|
by: Joseph Geretz |
last post by:
I need to calculate miles per degree longitude, which obviously depends on
latitude since lines of longitude converge at the poles. Via Google, I've
come up with the following calculation:
...
|
by: bakxchaixDD |
last post by:
I DON'T GET THIS
project:
Many treadmills output the speed in miles per hour. However, most runners think of their pace in minutes and seconds per mile. Write a program that inputs a decimal...
|
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
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |