944,092 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 5112
  • PHP RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Nov 5th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
Does it solve your problem..you can supress any warning with prefixing '@' to the function like @ini_set(), eventhough i never recommend doing that.

hi sir,,


after fix the @ini_set ,also i m getting the same warning...
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008
Nov 5th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
Does it solve your problem..you can supress any warning with prefixing '@' to the function like @ini_set(), eventhough i never recommend doing that.

hi sir,,


after fix the @ini_set ,also i m getting the same warning...

Is there any other method to upload audio files?..because it takes around 4 to 5 mins...
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008
Nov 5th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by sarithak ...
hi sir,,


after fix the @ini_set ,also i m getting the same warning...

Is there any other method to upload audio files?..because it takes around 4 to 5 mins...
very strange actually using @ should suppress warning if any.
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 7th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
very strange actually using @ should suppress warning if any.

hi...

somebody help me regarding this warning....

the code runs some time..after some time it display warning...

Quote ...
PHP Warning: POST Content-Length of 9484737 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
is there any problem with execution time? ...

Thanks in Advance............
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008
Nov 7th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by sarithak ...
hi...

somebody help me regarding this warning....

the code runs some time..after some time it display warning...



is there any problem with execution time? ...

Thanks in Advance............
since you carrying the lots of data in post, your default value of '8Mb' for "post_max_value" is exceeded.
So you need to set this variable to the higher value too, in the similar way i told you set the max_file_upload.
PHP Syntax (Toggle Plain Text)
  1. $new_limit = '10Mb';
  2. ini_set('post_max_value',$new_limit);
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 7th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
since you carrying the lots of data in post, your default value of '8Mb' for "post_max_value" is exceeded.
So you need to set this variable to the higher value too, in the similar way i told you set the max_file_upload.
PHP Syntax (Toggle Plain Text)
  1. $new_limit = '10Mb';
  2. ini_set('post_max_value',$new_limit);
Hi,
still i m getting the same warning....
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008
Nov 7th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by sarithak ...
Hi,
still i m getting the same warning....
are you using the $new_limit variable more than once.
post your code , to what value you setting those variables now
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 7th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
are you using the $new_limit variable more than once.
post your code , to what value you setting those variables now

Hi

this is my code...

PHP Syntax (Toggle Plain Text)
  1. error_reporting(E_ALL^E_NOTICE);
  2. $new_size = '50M';
  3. @ini_set('upload_max_filesize',$new_size);
  4. $new_limit = '20Mb';
  5. @ini_set('post_max_value',$new_limit);
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008
Nov 9th, 2009
0

PHP warning itself guides you

Click to Expand / Collapse  Quote originally posted by sarithak ...
Hi

this is my code...

PHP Syntax (Toggle Plain Text)
  1. error_reporting(E_ALL^E_NOTICE);
  2. $new_size = '50M';
  3. @ini_set('upload_max_filesize',$new_size);
  4. $new_limit = '20Mb';
  5. @ini_set('post_max_value',$new_limit);
If the warning as below -
PHP Syntax (Toggle Plain Text)
  1. PHP Warning: POST Content-Length of 9484737 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
it mentions that your post carries 9484737 bytes i.e. 9.04535MB of data.So setting new_limit to the 50MB is still not enough.
Increase it to fare enough as -
PHP Syntax (Toggle Plain Text)
  1. $new_limit = '100M';
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 9th, 2009
0
Re: Mp3 file upload problem
Click to Expand / Collapse  Quote originally posted by network18 ...
If the warning as below -
PHP Syntax (Toggle Plain Text)
  1. PHP Warning: POST Content-Length of 9484737 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
it mentions that your post carries 9484737 bytes i.e. 9.04535MB of data.So setting new_limit to the 50MB is still not enough.
Increase it to fare enough as -
PHP Syntax (Toggle Plain Text)
  1. $new_limit = '100M';

HI Sir,


this is my code...still i got the same warning....i tried to upload 7.9 MB..its uploaded...but for 8.3 MB..its not working...
PHP Syntax (Toggle Plain Text)
  1. $new_size = '100M';
  2. $new_limit = '100M';
  3. @ini_set('post_max_value',$new_limit);
  4. @ini_set('upload_max_filesize',$new_size);


i saw in many sites(tutorials)...every where having same asnwer wat u told....dont know wat to do...any other way????

Thanks in advance...
Last edited by sarithak; Nov 9th, 2009 at 3:09 am.
Reputation Points: 10
Solved Threads: 7
Junior Poster
sarithak is offline Offline
183 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Update db
Next Thread in PHP Forum Timeline: url mod writing not working properly





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC