473,320 Members | 1,612 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,320 software developers and data experts.

multiple php.ini files

Bob

I have some old legacy php scripts that need to run with register globals
on.

I would prefer not to run with register globals turned on where I don't need
to.

I am looking for a way of having a separate php.ini file for that directory,
that has globals on and run with globals off for the rest of my server.

Thanks.
Jul 17 '05 #1
4 2448
"Bob" <fa**@dontbother.com> wrote in
news:42***********************@lon-reader.news.telstra.net:

I have some old legacy php scripts that need to run with register
globals on.

I would prefer not to run with register globals turned on where I
don't need to.

I am looking for a way of having a separate php.ini file for that
directory, that has globals on and run with globals off for the rest
of my server.


If using Apache, use one php.ini file, and then use a .htaccess
file in that directory to set register_globals.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 17 '05 #2
Bob wrote:
I have some old legacy php scripts that need to run with register globals
on.

I would prefer not to run with register globals turned on where I don't need
to.

I am looking for a way of having a separate php.ini file for that directory,
that has globals on and run with globals off for the rest of my server.

Thanks.

You could install suPHP (suphp.org).
It offers the possibility to assign an
different php.ini to each virtualhost.
Kind regards,

Franck Nijhof
BlueSolid Software
Jul 17 '05 #3
"Bob" <fa**@dontbother.com> wrote in message
news:42***********************@lon-reader.news.telstra.net...

I have some old legacy php scripts that need to run with register globals
on.

I would prefer not to run with register globals turned on where I don't need to.

I am looking for a way of having a separate php.ini file for that directory, that has globals on and run with globals off for the rest of my server.

Thanks.


Not something I've done before, but in Apache, I think you can override a
PHP option on a per-directory basis using the php_value directive. According
to the manual, register_globals is a PHP_INI_PERDIR option.
Jul 17 '05 #4
Bob

"Bob" <fa**@dontbother.com> wrote in message
news:42***********************@lon-reader.news.telstra.net...

I have some old legacy php scripts that need to run with register globals
on.

I would prefer not to run with register globals turned on where I don't need to.

I am looking for a way of having a separate php.ini file for that directory, that has globals on and run with globals off for the rest of my server.

Thanks.


The solution to this problem was

set register_globals = Off in the php.ini file

in the directory that had the old PHP code, that required register_globals
to be enabled, I put a .htaccess file with

php_flag register_globals On

I additionally had to make sure that the httpd.conf Directory directive was
allowed to have overrides from the .htaccess file

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
2
by: Domenico Discepola | last post by:
Hello all. Before my arrival at my current employer, our consultants physically set up our MSSQL 7 server as follows: drive c: contains the mssql engine drive d: contains the transaction log...
3
by: Arun | last post by:
Hi, I have simple question to ask. How to write multiple Binary files to the Browser using Asp.Net and Visual C#.net I have seen examples where single binary file is written to browser. ...
5
by: vj | last post by:
Hi all, I am using C++Builder-5. I want to run multiple cpp files at the same time. If I use the C++Builder for running a cpp file (i.e., I just double click the cpp file, it then opens in the...
6
by: Steven | last post by:
I have a problem with moving the backup of my database from machine to machine. The size is 17 Gig and my network keeps timing out when I try to ftp it from machine to machine. I have had the...
2
by: Sam | last post by:
Hi All, I have a solution which consists of multiple projects and each of these projects has their own app.config file. The problem is that all of my projects in the solution pull keys from the...
10
by: kimiraikkonen | last post by:
Hi, I have an app which has a listbox and when i double click an associated fileS, i want their paths to be added into listbox in my application. This code works good when i try to open a...
3
by: Gary | last post by:
Hi all, I am writing an application which will intake arguments of filenames for processing: e.g. MyApp.exe "C:\abc.txt" "C:\def.doc" - then, MyApp will process the 2 files by parsing the...
43
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail...
4
by: MoroccoIT | last post by:
Greetings - I saw somewhat similar code (pls see link below) that does mupltiple files upload. It works fine, but I wanted to populate the database with the same files that are uploaded to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.