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

phpinfo() - strange results...

When I run phpinfo, it diaplays the same thing regardless of changes I make
to php.ini. For instance, php.ini shows register globals on max upload
filesize of 16M. etc, etc. But phpinfo always shows register globals off and
max file upload size of 2M. Any idea what is going on?

thanks,

brian
Dec 30 '06 #1
6 2438
..oO(Brian Huether)
>When I run phpinfo, it diaplays the same thing regardless of changes I make
to php.ini. For instance, php.ini shows register globals on max upload
filesize of 16M. etc, etc. But phpinfo always shows register globals off and
max file upload size of 2M. Any idea what is going on?
Did you edit the correct php.ini? phpinfo() also shows at the beginning
which php.ini was used.

Micha
Dec 30 '06 #2

"Michael Fesser" <ne*****@gmx.dewrote in message
news:oe********************************@4ax.com...
.oO(Brian Huether)
>>When I run phpinfo, it diaplays the same thing regardless of changes I
make
to php.ini. For instance, php.ini shows register globals on max upload
filesize of 16M. etc, etc. But phpinfo always shows register globals off
and
max file upload size of 2M. Any idea what is going on?

Did you edit the correct php.ini? phpinfo() also shows at the beginning
which php.ini was used.

Micha
Interesting. I noticed I had this in http.conf:

#ScriptAlias /php/ "c:/php/"
#AddType application/x-httpd-php .php
#Action application/x-httpd-php "/php/php.exe"

#try this:
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"

Funny thing is, I didn't even have php.ini in c:/php (is in c:/windows).
Though there is php.ini-dist
Does the system recognize that anyway?

I don't even remember switching to the php dll. But I did all sorts of stuff
to get ssl working about a year ago... didn't take notes.

thanks,

brian
Dec 30 '06 #3

"Brian Huether" <bh********@comcastSPAM.netwrote in message
news:rY******************************@comcast.com. ..
>
"Michael Fesser" <ne*****@gmx.dewrote in message
news:oe********************************@4ax.com...
>.oO(Brian Huether)
>>>When I run phpinfo, it diaplays the same thing regardless of changes I
make
to php.ini. For instance, php.ini shows register globals on max upload
filesize of 16M. etc, etc. But phpinfo always shows register globals off
and
max file upload size of 2M. Any idea what is going on?

Did you edit the correct php.ini? phpinfo() also shows at the beginning
which php.ini was used.

Micha

Interesting. I noticed I had this in http.conf:

#ScriptAlias /php/ "c:/php/"
#AddType application/x-httpd-php .php
#Action application/x-httpd-php "/php/php.exe"

#try this:
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"

Funny thing is, I didn't even have php.ini in c:/php (is in c:/windows).
Though there is php.ini-dist
Does the system recognize that anyway?

I don't even remember switching to the php dll. But I did all sorts of
stuff to get ssl working about a year ago... didn't take notes.

thanks,

brian
Actually, even when httpd.conf says c:/php is the php.ini location, phpinfo
says that c:/windows is Configuration File (php.ini) Path. Yet changing
c:/windows/php.ini does not cause changes to phpinfo output. (It does change
results if I specify c:/windows as ini path if httd.conf).

brian
Dec 30 '06 #4
Brian Huether wrote:
"Brian Huether" <bh********@comcastSPAM.netwrote in message
news:rY******************************@comcast.com. ..
>>"Michael Fesser" <ne*****@gmx.dewrote in message
news:oe********************************@4ax.com. ..
>>>.oO(Brian Huether)
When I run phpinfo, it diaplays the same thing regardless of changes I
make
to php.ini. For instance, php.ini shows register globals on max upload
filesize of 16M. etc, etc. But phpinfo always shows register globals off
and
max file upload size of 2M. Any idea what is going on?

Did you edit the correct php.ini? phpinfo() also shows at the beginning
which php.ini was used.

Micha

Interesting. I noticed I had this in http.conf:

#ScriptAlias /php/ "c:/php/"
#AddType application/x-httpd-php .php
#Action application/x-httpd-php "/php/php.exe"

#try this:
# For PHP 4 do something like this:
LoadModule php4_module "c:/php/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"

Funny thing is, I didn't even have php.ini in c:/php (is in c:/windows).
Though there is php.ini-dist
Does the system recognize that anyway?

I don't even remember switching to the php dll. But I did all sorts of
stuff to get ssl working about a year ago... didn't take notes.

thanks,

brian


Actually, even when httpd.conf says c:/php is the php.ini location, phpinfo
says that c:/windows is Configuration File (php.ini) Path. Yet changing
c:/windows/php.ini does not cause changes to phpinfo output. (It does change
results if I specify c:/windows as ini path if httd.conf).

brian

Did you stop and restart Apache?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 30 '06 #5
Brian Huether napisał(a):
Actually, even when httpd.conf says c:/php is the php.ini location, phpinfo
says that c:/windows is Configuration File (php.ini) Path. Yet changing
c:/windows/php.ini does not cause changes to phpinfo output. (It does change
results if I specify c:/windows as ini path if httd.conf).
Restarting apache should help out the situation. *However* I have seen
that even though c:/php was set as the right path, php sometimes did
indeed use php.ini from c:/windows. Strange.
Regards,
--
Mateusz Papiernik, Maticomp Webdesign
ma**@maticomp.net, http://www.maticomp.net
"One man can make a difference" - Wilton Knight
Dec 30 '06 #6
"Brian Huether" <bh********@comcastSPAM.netwrote:
: Actually, even when httpd.conf says c:/php is the php.ini location,
: phpinfo says that c:/windows is Configuration File (php.ini) Path.
: Yet changing c:/windows/php.ini does not cause changes to phpinfo
: output. (It does change results if I specify c:/windows as ini path
: if httd.conf).

Hiya,

httpd.conf specifies where to load the php.dll for its use. Once
that's loaded, whenever a different library gets called, php looks
first in the folder the php.dll is installed. The list of paths
it searches, in the respective listed order...

(1) Directory containing the exe or dll.
(2) The current directory (this could vary as it could possibly
be the folder where a PHP is executing).
(3) The system folder (%systemroot%\system32).
(4) The %systemroot% folder (\Windows or \Winnt).
(5) The path environmental variable.

http://msdn.microsoft.com/library/en...lprocedure.asp

..INI files SHOULD get searched for in much the same way,
so if WINDOWS finds it inside the folder with the DLL it stops
searching at that point and loads that one.

My own httpd.conf file doesn't specify a location for php.ini.
It ends up finding it in the %systemroot% folder.

The php.ini is laid out quite nicely and provides a way to specify
where extensions get loaded from.

extension_dir = "C:/php5/extensions"

and all the extensions get placed in that folder.

Hope this helps.

--
Jim Carlock
Post replies to the group.
Dec 31 '06 #7

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

Similar topics

3
by: Shawn Wilson | last post by:
Hi, My host keeps messing things up and not telling me. I am trying to write a cron job that will test to make sure the "unusual" functions I use work and, if not, email me. I want it to send...
2
by: ChronoFish | last post by:
Hello, From my understanding, setting the ini value "html_errors" is supposed to force the output from phpinfo to be either plain text or HTML. I have setup two files. One is executes as CGI,...
2
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should...
1
by: Csaba Gabor | last post by:
In the code below, invoked with CLI PHP, it would make good sense to have phpinfo() include HTML tags with its output. Is there any way to effect this? My attempt using ini_set("html_errors",...
0
by: Wescotte | last post by:
<?php global $TABLE_GL_DATA; global $connect; $PREPARED_SQL = odbc_prepare($connect, "INSERT INTO $TABLE_GL_DATA VALUES (?,?,?,?,?,?,?)"); function Generate_GL_Data() {
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
3
by: Prince of Code | last post by:
Hi All, I wonder how the function phpinfo() draws the image of phplogo as an Image. When I viewed source, Its more strange It shows like this <img border="0"...
4
by: Ronald Raygun | last post by:
I have just discovered that the value reported for $_SERVER by phpinfo is different from the value I obtain when I run the following: <?php echo $_SERVER ?> My natural assumption is to assume...
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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 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.