473,408 Members | 2,405 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,408 software developers and data experts.

i have made an upload .php and i need to know why this is wrong

in my config file I have the max file size set to 10. but on the website it still says 2.

here is the code in index.php


ini_set('post_max_size','500M') ;
ini_set('upload_max_filesize','500M');
ini_set('memory_limit','500M');
//find real max_filesize
$max_filesize = $config['max_filesize'] * pow(2024,2);

if (!$config['upload_progressbar']) //doesn't apply with the perl script
$max_filesize = min(return_bytes(ini_get('post_max_size')),return_ bytes(ini_get('upload_max_filesize')),return_bytes (ini_get('memory_limit')),$max_filesize);
May 7 '10 #1
3 1270
Did you restart your webserver after you made that change?
May 7 '10 #2
yes
i did
May 7 '10 #3
You may want to read this other post
May 7 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: NohaKhalifa | last post by:
Dear All; I'm developing a web site and i need to make adminisration for this site it's a site for Real Estates . But I don't need the administration to be online .. I want them to fill data...
5
by: kbrad | last post by:
I am trying to use SoftArtisans FileUp Professional to upload a directory. I have found some sample code to help but you have to type in the directory name when you run the page. I want to use a...
16
by: Mark Hamptons | last post by:
Hi, I've scoured sites like Bravenet but cannot find what I want, which is a ready to go tool that will let me place an Upload button on my web site. When clicked this will give the visitor a...
3
by: Bob.Henkel | last post by:
I write this to tell you why we won't use postgresql even though we wish we could at a large company. Don't get me wrong I love postgresql in many ways and for many reasons , but fact is fact. If...
0
by: Miquel | last post by:
Hi all. I felt frustrated when developing an 'UserControl' derivated from textBox, because sequence event (and Validate event) seems to fail. I Always thought my code was wrong. But after...
10
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was...
2
by: alabraha | last post by:
Hi! It's been awhile since I've had to upload files with classic asp and now that we're changing servers, we're having a problem with the server guys. They don't want to install any components...
1
by: Redapple | last post by:
Hello everybody, Im a beginner in PHP and i'm thinking how i can make more things on my own made upload script: Sorry if this is the wrong forum or if its not allowed to ask for script...
4
by: Dev | last post by:
Hello All, i am unable to upload file using following code: chmod("upload", 0777); move_uploaded_file($_FILES, "./upload/". $_FILES); chmod("upload", 0755); what wrong in this code any...
2
by: vinodkus | last post by:
dear sir/madam I have to do something like this that a user see list of record if he would find record and want to upload that list then he could upload in a pdf file of that record. please help...
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: 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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.