[PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi all:

I've learned, much to my pleasure, that I can place a php.ini file in the 
root directory of my shared domain to allow some customization of the php 
settings.  However, when I do this, I keep getting weird results.  Some of the 
values that I change appear as I've asked them to be.  Some appear to not 
change at all.  And some have been changing to what appears to be default 
values for php.

I'm wondering a few things here.  First, my computer is Windows-based, but 
the server is Linux-based.  Do I need to somehow convert the Windows text file 
line termination characters to their Linux variants?  If so, how?  Is it 
possible that I'm trying to change values beyond some upper limit which is 
causing php to use the default value?

The main values that I'm trying to change are:

post_max_size
upload_max_filesize
memory_limit
max_execution_time
max_input_time

If anyone knows of upper limits for these, I'd appreciate learning about 
them.

As always, any help you can send my way will be greatly appreciated!

Thanks,

Jon


Re: [PHP] Question about php.ini file

2007-11-04 Thread Cristian Vrabie
You must take in count that before php even gets to receive something, 
it all passes through the HTTP server (apache or something). for most of 
these settings there are equivalents in the config file of the server 
that you need to change accordingly.
this might be the cause of the weird results. for example, if your limit 
for uploaded files is 10M in php but the server is set to accept max 5M, 
5M will be the limit


Jon Westcot wrote:

Hi all:

I've learned, much to my pleasure, that I can place a php.ini file in the 
root directory of my shared domain to allow some customization of the php 
settings.  However, when I do this, I keep getting weird results.  Some of the 
values that I change appear as I've asked them to be.  Some appear to not 
change at all.  And some have been changing to what appears to be default 
values for php.

I'm wondering a few things here.  First, my computer is Windows-based, but 
the server is Linux-based.  Do I need to somehow convert the Windows text file 
line termination characters to their Linux variants?  If so, how?  Is it 
possible that I'm trying to change values beyond some upper limit which is 
causing php to use the default value?

The main values that I'm trying to change are:

post_max_size
upload_max_filesize
memory_limit
max_execution_time
max_input_time

If anyone knows of upper limits for these, I'd appreciate learning about 
them.

As always, any help you can send my way will be greatly appreciated!

Thanks,

Jon

  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi Cristian:

Thanks for the replies.

In this case, what I've been noticing is that most of the values have
gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in
place.  For example, upload_max_filesize was 8M before I placed my file,
but, afterwards, it was 2M!  I'm trying to increase this size, not decrease
it.

Could it be the line-ending characters that are causing the problem?
Could PHP be seeing the new file but not realizing how to process it, which
would cause the values to flop over to their defaults?

Thanks,

Jon

- Original Message -

 You must take in count that before php even gets to receive something,
 it all passes through the HTTP server (apache or something). for most of
 these settings there are equivalents in the config file of the server
 that you need to change accordingly.
 this might be the cause of the weird results. for example, if your limit
 for uploaded files is 10M in php but the server is set to accept max 5M,
 5M will be the limit

 Jon Westcot wrote:
  Hi all:
 
  I've learned, much to my pleasure, that I can place a php.ini file
in the root directory of my shared domain to allow some customization of the
php settings.  However, when I do this, I keep getting weird results.  Some
of the values that I change appear as I've asked them to be.  Some appear to
not change at all.  And some have been changing to what appears to be
default values for php.
 
  I'm wondering a few things here.  First, my computer is
Windows-based, but the server is Linux-based.  Do I need to somehow convert
the Windows text file line termination characters to their Linux variants?
If so, how?  Is it possible that I'm trying to change values beyond some
upper limit which is causing php to use the default value?
 
  The main values that I'm trying to change are:
 
  post_max_size
  upload_max_filesize
  memory_limit
  max_execution_time
  max_input_time
 
  If anyone knows of upper limits for these, I'd appreciate learning
about them.
 
  As always, any help you can send my way will be greatly appreciated!
 
  Thanks,
 
  Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about php.ini file

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi Cristian:

 Thanks for the replies.

 In this case, what I've been noticing is that most of the values have
 gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in
 place.  For example, upload_max_filesize was 8M before I placed my file,
 but, afterwards, it was 2M!  I'm trying to increase this size, not
 decrease
 it.

 Could it be the line-ending characters that are causing the problem?
 Could PHP be seeing the new file but not realizing how to process it,
 which
 would cause the values to flop over to their defaults?


do you have ssh access to the server?
i recommend you start out by creating the simplest file you can by editing
it
directly on the linux server, via vim or w/e.
then using a phpinfo() script, you should see your overridden value in the
left
column (those are for the locally overridden values).
some other things to note are;

   1. apache must be properly configured to allow the .htaccess
   overrides.
   2. you cant override all the values in php.ini; see the documentation

regarding which ones can be overriden and where

here is an article regarding the process,
http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

-nathan


Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi Nathan:

I'm not certain if I have all of the items you've mentioned, but I'll look 
into it.  And thanks for the link; I'll check that out, too.

Jon

- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Sunday, November 04, 2007 5:05 PM
Subject: Re: [PHP] Question about php.ini file


On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi Cristian:

  Thanks for the replies.

  In this case, what I've been noticing is that most of the values have
  gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in
  place.  For example, upload_max_filesize was 8M before I placed my file, 
  but, afterwards, it was 2M!  I'm trying to increase this size, not decrease
  it.

  Could it be the line-ending characters that are causing the problem?
  Could PHP be seeing the new file but not realizing how to process it, which 
  would cause the values to flop over to their defaults?

do you have ssh access to the server?
i recommend you start out by creating the simplest file you can by editing it
directly on the linux server, via vim or w/e. 
then using a phpinfo() script, you should see your overridden value in the left
column (those are for the locally overridden values).
some other things to note are;

  1.. apache must be properly configured to allow the .htaccess overrides. 
  2.. you cant override all the values in php.ini; see the documentation
regarding which ones can be overriden and where


here is an article regarding the process, 
http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

-nathan



Re: [PHP] Question about php.ini file

2007-11-04 Thread Jon Westcot
Hi Nathan:

Another quick question regarding the use of the .htaccess file:

If I'm trying to set something like post_max_size, which takes a shorthand 
value such as 16M in place of the full value, will using the php_value type of 
statement also accept the shorthand value, or do I need to place in the full 
value?

Thanks again; this solution may be exactly what we need!

Jon

- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Sunday, November 04, 2007 5:05 PM
Subject: Re: [PHP] Question about php.ini file


On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi Cristian:

  Thanks for the replies.

  In this case, what I've been noticing is that most of the values have
  gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in
  place.  For example, upload_max_filesize was 8M before I placed my file, 
  but, afterwards, it was 2M!  I'm trying to increase this size, not decrease
  it.

  Could it be the line-ending characters that are causing the problem?
  Could PHP be seeing the new file but not realizing how to process it, which 
  would cause the values to flop over to their defaults?

do you have ssh access to the server?
i recommend you start out by creating the simplest file you can by editing it
directly on the linux server, via vim or w/e. 
then using a phpinfo() script, you should see your overridden value in the left
column (those are for the locally overridden values).
some other things to note are;

  1.. apache must be properly configured to allow the .htaccess overrides. 
  2.. you cant override all the values in php.ini; see the documentation
regarding which ones can be overriden and where


here is an article regarding the process, 
http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

-nathan



Re: [PHP] Question about php.ini file

2007-11-04 Thread Jochem Maas
Jon Westcot wrote:
 Hi Nathan:
 
 Another quick question regarding the use of the .htaccess file:
 
 If I'm trying to set something like post_max_size, which takes a 
 shorthand value such as 16M in place of the full value, will using the 
 php_value type of statement also accept the shorthand value, or do I need to 
 place in the full value?

yes, valid values for ini settings are the same regardless of where you set 
them (.ini, apache conf, php script)

 
 Thanks again; this solution may be exactly what we need!
 
 Jon
 
 - Original Message - 
 From: Nathan Nobbe 
 To: Jon Westcot 
 Cc: PHP General 
 Sent: Sunday, November 04, 2007 5:05 PM
 Subject: Re: [PHP] Question about php.ini file
 
 
 On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote:
   Hi Cristian:
 
   Thanks for the replies.
 
   In this case, what I've been noticing is that most of the values have
   gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in
   place.  For example, upload_max_filesize was 8M before I placed my file, 
   but, afterwards, it was 2M!  I'm trying to increase this size, not decrease
   it.
 
   Could it be the line-ending characters that are causing the problem?
   Could PHP be seeing the new file but not realizing how to process it, which 
   would cause the values to flop over to their defaults?
 
 do you have ssh access to the server?
 i recommend you start out by creating the simplest file you can by editing it
 directly on the linux server, via vim or w/e. 
 then using a phpinfo() script, you should see your overridden value in the 
 left
 column (those are for the locally overridden values).
 some other things to note are;
 
   1.. apache must be properly configured to allow the .htaccess overrides. 
   2.. you cant override all the values in php.ini; see the documentation
 regarding which ones can be overriden and where
 
 
 here is an article regarding the process, 
 http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess
 
 -nathan
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Question about php.ini

2005-02-07 Thread Stephen Wong
Hi, I hope we are all doing well today

I'm very new to php.  Here are some basic info about my server that I
am running:
Mac OS X 10.3.7 
PHP 4.3.10 
MySQL 4.0.18 
Apache 1.3.33

What I want to do is host a forum on my web page.  I can't seem to get
it set up, and I notice that I do not have a php.ini file in my /etc
directory (This is the Configuration File Path).  However, I do have a
php.ini.default in the same directory.
I seem to have two options:
1.) rename the php.ini.default to plain php.ini and see if that
resolves it.  However, I'm not sure what kind of tests can I perform
to see that it is working properly?
2.) or I can follow this tutorial at:
http://www.dmcinsights.com/phpmysql/phpini.php; which teaches me how
to make my own php.ini file.

Is there any other recommendations/comments that you all have?  Thanks
so much in advance everyone, I'm new to this mailing list.

-- 
S. Wong

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Question about php.ini

2005-02-07 Thread Jay Blanchard
[snip]
1.) rename the php.ini.default to plain php.ini and see if that
resolves it.  However, I'm not sure what kind of tests can I perform
to see that it is working properly?
[/snip]

How about just making a copy of the file and testing it? Have you run
phpinfo() yet?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Question about php.ini

2005-02-07 Thread Jay Blanchard
[snip]
Yup, I have tried making a copy of it.  I'm just not exactly sure how
to test it?  I ran phpinfo() , and it runs even without a php.ini.
[/snip]

Change something in the configuation file that you know you can run a
test on, like safe mode status, then restart Apache and conduct the
test.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about php.ini

2005-02-07 Thread Richard Lynch
Stephen Wong wrote:
 I'm very new to php.  Here are some basic info about my server that I
 am running:
 Mac OS X 10.3.7
 PHP 4.3.10
 MySQL 4.0.18
 Apache 1.3.33

 What I want to do is host a forum on my web page.  I can't seem to get
 it set up, and I notice that I do not have a php.ini file in my /etc
 directory (This is the Configuration File Path).  However, I do have a
 php.ini.default in the same directory.

You don't HAVE to have a php.ini for PHP to run.  PHP will simply use its
default values if you have no php.ini file for it to load.

And your forum software should not require it, in my opinion, but I
suppose it's theoretically possible that it does.

More likely, it requires specific settings to work, which is also bad.  I
don't *WANT* to change my php.ini on my whole site for their software to
work.

Often you can get around this by using an .htaccess file (just create one)
in the forum directory to set whatever they need.


 I seem to have two options:
 1.) rename the php.ini.default to plain php.ini and see if that
 resolves it.  However, I'm not sure what kind of tests can I perform
 to see that it is working properly?

http://php.net/phpinfo
will tell you which php.ini file is loaded (or if none is loaded) and will
tell you everything that is being affected by that file.

If you copy php.ini.default to php.ini, it should be EXACTLY the same as
it is now -- the .default settings match what PHP does if no file is
there.

But, of course, after you copy the file there, you can change it, and then
it will make a difference.

 2.) or I can follow this tutorial at:
 http://www.dmcinsights.com/phpmysql/phpini.php; which teaches me how
 to make my own php.ini file.

It's probably better to stick with the php.ini file that came with your
VERSION of PHP.

That might be the php.ini.default you see, or maybe that .default is some
old left-over thing from a previous version...



-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Question about php.ini

2005-02-07 Thread Brandon Thompson
 The phpinfo() will display either the directory in which it expects to find
the php.ini file (if the php.ini does not exist) or it will display the full
path, including the filename (if the php.ini DOES exist where expected).

 -Original Message-
 From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 07, 2005 12:53 PM
 To: Stephen Wong
 Cc: php-general@lists.php.net
 Subject: RE: [PHP] Question about php.ini
 
 [snip]
 Yup, I have tried making a copy of it.  I'm just not exactly 
 sure how to test it?  I ran phpinfo() , and it runs even 
 without a php.ini.
 [/snip]
 
 Change something in the configuation file that you know you 
 can run a test on, like safe mode status, then restart Apache 
 and conduct the test.
 
 --
 PHP General Mailing List (http://www.php.net/) To 
 unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Question about php.ini and dynamic extensions

2002-01-08 Thread Joelmon2001

Hello, if I want to be able to load dynamic extensions via php, do I just go 
to
php.ini and under

;;
; Dynamic Extensions ;
 ;;

Do I just add the extensions I need?
   extension=msql.so
   extension=gd.so
   extension=xml.so

making sure they are uncommented ?

And then just save the file and reload apache?

In the php page, would
dl(gd.so);

activate it? Is this how to do it?

Thanks