Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Jochem Maas
Chris wrote:
 Richard Lynch wrote:
 On Tue, April 17, 2007 4:01 pm, Chris wrote:
 Tijnema ! wrote:
 On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:
 Dang. There is no remote access to the server, no way to remotely
 edit php.ini - everything is blocked by the firewall. It's running
 IIS not Apache.
 I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR
 can
 also be set in .htaccess file :)
 IIS doesn't know what to do with a .htaccess file, it's not going to
 work.

 s/with a .htaccess file, //
 
 lol - it took me a few reads to work out what you were saying :)

me too ... way too early, only on my first coffee.
thanks for the early morning sunshine :-)

 

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Brian Dunning
We finally got it resolved by editing php.ini. This was classic: A  
clueless office assistant did it, talked through step-by-step over a  
cell phone, while an armed security guard accompanied her into their  
server room.


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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Tijnema !

On 4/18/07, Brian Dunning [EMAIL PROTECTED] wrote:

We finally got it resolved by editing php.ini. This was classic: A
clueless office assistant did it, talked through step-by-step over a
cell phone, while an armed security guard accompanied her into their
server room.



LOL. Never heard of remote access to a server?
I use it all day to access my server :)

Tijnema

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 10:07 am, Brian Dunning wrote:
 We finally got it resolved by editing php.ini. This was classic: A
 clueless office assistant did it, talked through step-by-step over a
 cell phone, while an armed security guard accompanied her into their
 server room.

I knew a guy one time who had these brand-new honking big-ass servers
he had just had delivered.

Some guy he knew worked at a bank that will remain nameless.

THEIR servers got, um, err, let's just say, rendered inoperable for
secure transactions.

So they called him up in a panic, and he rented them his servers...

Which is another story about the whole rental fees and getting the
hardware back...

Anyway, to make a long story short, at some point, he had to stand in
the hallway yelling to the other guy what to type on the command line
to boot the dang things, cuz he wasn't allowed into the secure server
room...

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



[PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Brian Dunning

If I do this:

ini_set('upload_max_filesize', 30720);
echo ini_get('upload_max_filesize');

it returns 2M. Why is it not accepting the ini_set? The server is  
Windows, PHP 5.2.


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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Sebe

Brian Dunning wrote:

If I do this:

ini_set('upload_max_filesize', 30720);
echo ini_get('upload_max_filesize');

it returns 2M. Why is it not accepting the ini_set? The server is 
Windows, PHP 5.2.


probably because upload_max_filesize is PHP_INI_PERDIR not PHP_INI_ALL

use:
http://us.php.net/manual/en/configuration.changes.php

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Brian Dunning
Dang. There is no remote access to the server, no way to remotely  
edit php.ini - everything is blocked by the firewall. It's running  
IIS not Apache.



On Apr 17, 2007, at 1:40 PM, Daniel Brown wrote:



That particular variable is a PHP_INI_SYSTEM variable, which  
means it can only be set in php.ini or httpd.conf.  This means  
that, unfortunately, even if your system uses Apache on Windows and  
the host allows .htaccess overrides, you still can't set it using  
php_flags.


On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:
If I do this:

ini_set('upload_max_filesize', 30720);
echo ini_get('upload_max_filesize');

it returns 2M. Why is it not accepting the ini_set? The server is
Windows, PHP 5.2.

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




--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107




Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 3:43 pm, Sebe wrote:
 Brian Dunning wrote:
 If I do this:

 ini_set('upload_max_filesize', 30720);
 echo ini_get('upload_max_filesize');

 it returns 2M. Why is it not accepting the ini_set? The server is
 Windows, PHP 5.2.

 probably because upload_max_filesize is PHP_INI_PERDIR not PHP_INI_ALL

 use:
 http://us.php.net/manual/en/configuration.changes.php

Not to mention that by the time your PHP script executes that line of
code, the file upload, if any, has already FINISHED...

Bit of a chicken and egg problem to make it PHP_INI_ALL, eh?

That's almost for sure why it's PHP_INI_PERDIR to start with.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Tijnema !

On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:

Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.


I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can
also be set in .htaccess file :)

Tijnema



On Apr 17, 2007, at 1:40 PM, Daniel Brown wrote:


 That particular variable is a PHP_INI_SYSTEM variable, which
 means it can only be set in php.ini or httpd.conf.  This means
 that, unfortunately, even if your system uses Apache on Windows and
 the host allows .htaccess overrides, you still can't set it using
 php_flags.

 On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:
 If I do this:

 ini_set('upload_max_filesize', 30720);
 echo ini_get('upload_max_filesize');

 it returns 2M. Why is it not accepting the ini_set? The server is
 Windows, PHP 5.2.

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




 --
 Daniel P. Brown
 [office] (570-) 587-7080 Ext. 272
 [mobile] (570-) 766-8107




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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris

Tijnema ! wrote:

On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:

Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.


I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can
also be set in .htaccess file :)


IIS doesn't know what to do with a .htaccess file, it's not going to work.

--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
Talk to your webhost.

Nobody here can do anything useful for you on this...

Other than to recommend abandoning your current host for a better one.
:-)

On Tue, April 17, 2007 3:46 pm, Brian Dunning wrote:
 Dang. There is no remote access to the server, no way to remotely
 edit php.ini - everything is blocked by the firewall. It's running
 IIS not Apache.


 On Apr 17, 2007, at 1:40 PM, Daniel Brown wrote:


 That particular variable is a PHP_INI_SYSTEM variable, which
 means it can only be set in php.ini or httpd.conf.  This means
 that, unfortunately, even if your system uses Apache on Windows and
 the host allows .htaccess overrides, you still can't set it using
 php_flags.

 On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:
 If I do this:

 ini_set('upload_max_filesize', 30720);
 echo ini_get('upload_max_filesize');

 it returns 2M. Why is it not accepting the ini_set? The server is
 Windows, PHP 5.2.

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




 --
 Daniel P. Brown
 [office] (570-) 587-7080 Ext. 272
 [mobile] (570-) 766-8107




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 4:01 pm, Chris wrote:
 Tijnema ! wrote:
 On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:
 Dang. There is no remote access to the server, no way to remotely
 edit php.ini - everything is blocked by the firewall. It's running
 IIS not Apache.

 I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR
 can
 also be set in .htaccess file :)

 IIS doesn't know what to do with a .htaccess file, it's not going to
 work.

s/with a .htaccess file, //

:-)

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris

Richard Lynch wrote:

On Tue, April 17, 2007 4:01 pm, Chris wrote:

Tijnema ! wrote:

On 4/17/07, Brian Dunning [EMAIL PROTECTED] wrote:

Dang. There is no remote access to the server, no way to remotely
edit php.ini - everything is blocked by the firewall. It's running
IIS not Apache.

I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR
can
also be set in .htaccess file :)

IIS doesn't know what to do with a .htaccess file, it's not going to
work.


s/with a .htaccess file, //


lol - it took me a few reads to work out what you were saying :)

--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Richard Lynch
It's PHP_INI_PERDIR, but php takes the MINIMUM(php.ini, .htaccess,
FORM:MAX_FILE_UPLOAD_SIZE_THINGIE)

So it's no less secure than the webhost/sysadmin chooses to make it.

Or, at least, that's how I understood it to work when I tested it ages
ago...

No promise it hasn't changed.

On Tue, April 17, 2007 3:56 pm, Daniel Brown wrote:
 Is it PHP_INI_PERDIR?  I thought for sure it was PHP_INI_SYSTEM.
 In
 fact, if it's PHP_INI_PERDIR, that's a serious server security risk,
 as a
 user could then upload a massive file (provided they have the
 bandwidth) and
 overload a server, successfully stopping error and access logging.

 On 4/17/07, Richard Lynch [EMAIL PROTECTED] wrote:

 On Tue, April 17, 2007 3:43 pm, Sebe wrote:
  Brian Dunning wrote:
  If I do this:
 
  ini_set('upload_max_filesize', 30720);
  echo ini_get('upload_max_filesize');
 
  it returns 2M. Why is it not accepting the ini_set? The server is
  Windows, PHP 5.2.
 
  probably because upload_max_filesize is PHP_INI_PERDIR not
 PHP_INI_ALL
 
  use:
  http://us.php.net/manual/en/configuration.changes.php

 Not to mention that by the time your PHP script executes that line
 of
 code, the file upload, if any, has already FINISHED...

 Bit of a chicken and egg problem to make it PHP_INI_ALL, eh?

 That's almost for sure why it's PHP_INI_PERDIR to start with.

 --
 Some people have a gift link here.
 Know what I want?
 I want you to buy a CD from some indie artist.
 http://cdbaby.com/browse/from/lynch
 Yeah, I get a buck. So?

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




 --
 Daniel P. Brown
 [office] (570-) 587-7080 Ext. 272
 [mobile] (570-) 766-8107



-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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