473,382 Members | 1,646 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.

Help with ini_set and upload_max_filesize

I am puzzled, I want to change the upload_max_filesize setting, if I
do this with

ini_set('upload_max_filesize', 8000000);

the upload_max_filesize is not set. However, if I make the change in
..htaccess with "php_value upload_max_filesize 8m", this works.

Why does not the ini_set work?
Nov 29 '06 #1
3 13367
*** David escribió/wrote (Wed, 29 Nov 2006 16:58:01 -0600):
ini_set('upload_max_filesize', 8000000);

the upload_max_filesize is not set. However, if I make the change in
.htaccess with "php_value upload_max_filesize 8m", this works.

Why does not the ini_set work?
From manual: "Not all the available options can be changed using ini_set().
There is a list of all available options in the appendix."

This is the appendix: http://www.php.net/manual/en/ini.php

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Nov 29 '06 #2
David wrote:
I am puzzled, I want to change the upload_max_filesize setting, if I
do this with

ini_set('upload_max_filesize', 8000000);

the upload_max_filesize is not set. However, if I make the change in
.htaccess with "php_value upload_max_filesize 8m", this works.

Why does not the ini_set work?
Maybe because the new upload_max_filesize is only good for this pate?
And the upload is actually handled by the next page?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 30 '06 #3
Jerry Stuckle wrote:
David wrote:
>I am puzzled, I want to change the upload_max_filesize setting, if I
do this with

ini_set('upload_max_filesize', 8000000);

the upload_max_filesize is not set. However, if I make the change in
.htaccess with "php_value upload_max_filesize 8m", this works.

Why does not the ini_set work?


Maybe because the new upload_max_filesize is only good for this pate?
And the upload is actually handled by the next page?
I mean "this page..."

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 30 '06 #4

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

Similar topics

13
by: Joshua Beall | last post by:
Hi All, Is there any way for me to overcome the php.ini configuration upload_max_filesize? I cannot use ini_set() since upload_max_filesize can only be set in httpd.conf or php.ini. Are there...
2
by: Mike | last post by:
I want to allow my students to upload small text files (perhaps just a few bytes in size) just to show them how to upload using a PHP form. For security reasons -- I don't want them uploading MP3...
3
by: kingsleymyers | last post by:
I have a client with a need for an "upload_max_filesize" directive in excess of 10MB. Their current host will not budge. They need something in the range of 15MB to 20MB. Will this require a...
1
by: Mick | last post by:
Hi there, I am using the following : - Win XP - Easyphp v 1-7 - PHP 4.3.10 I am getting the following error in my apache error log file when attempting
9
by: b007uk | last post by:
Hi! Really need help, dont know whats wrong :( I am trying to show images using php script, it works fine, pictures are shown, but if i right click on it and choose "save picture as" it offers me...
1
by: pittendrigh | last post by:
If I want to control (max) upload file size on a Suse10.2 box running php5.0.3, in php.ini, does max_post_size matter? Or is upload_max_filesize the only relevant directive?
24
by: Paul | last post by:
I am taking over an existing app and having trouble understanding their references. They have encapsulated Pear packages in the directory structure like: /site /site/html/Pear.php...
1
by: seigan | last post by:
Hi all, I'm kind of new here and I realy need your help guys. I have done an basic php login script with sesions that will expire after default time. The thing is that it dosen't work at all. If...
3
by: Milagro | last post by:
Hello Everyone, I'm trying to debug someone elses php code. I'm actually a Perl programmer, with OO experience, but not in php. The code is supposed to upload a photo from a form and save it...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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: 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.