I have one goal Mmy form was to download large files from a local drive to server.but, when I click on the Send button " & quot; she did not download the file without showing any mistakes. Then Ii looking for a way out of the web site and for that I solutionthen find a solution by changing environment of php.ini
To find ound where php.ini file, is to run this small code
and search " configuration file (php.ini) Path & quot; row To be in the reception window and that that will contain the path php.ini file in your PC
and in the php.ini file, change the size of a variable, as for requirement
upload max filesize = (size) M
post max size = (size) M
new in php 5
max input time = (Value) / / in second
max input time variable, which specifies the duration in seconds, to obtain baseline data using POST, GET and PUT. If your application is running at a slower link,
it sometimes useful to explore and increase this value to allow more time scenario to obtain baseline data. or you can change this variable in the perspective of time through programme
example
ini set (& 39; post max size & 39;, 9 M & 39;)
now post max size variable 9 MB set.
using
string through ini set (line varname, newvalue line)
now I added checks on the client side to restrict the user to download a particular file size.
use this hidden variable, and its value contain how many bytes be allowed upload.
if you want to save the file to the database Long blog type.
set variable
max allowed packet = (byte)
The above steps My problem is solved, and I can download large files without any obstacle ..
Author: According to Jayesh Sorathia Jayesh Sorathia works as a junior programmer at Semaphore Infotech Pvt. Ltd, India. He has 8 months of experience. You can contact by e-mail: jayesh@semaphore-software.com.
Bookmark it:
Monday, April 28, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment