Mp3 file upload problem

Thread Solved

Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #21
24 Days Ago
Originally Posted by network18 View Post
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...
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #22
24 Days Ago
Originally Posted by network18 View Post
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...
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 525
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro
 
0
  #23
24 Days Ago
Originally Posted by sarithak View Post
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.
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #24
22 Days Ago
Originally Posted by network18 View Post
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...

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............
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 525
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro
 
0
  #25
22 Days Ago
Originally Posted by sarithak View Post
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.
  1. $new_limit = '10Mb';
  2. ini_set('post_max_value',$new_limit);
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #26
22 Days Ago
Originally Posted by network18 View Post
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.
  1. $new_limit = '10Mb';
  2. ini_set('post_max_value',$new_limit);
Hi,
still i m getting the same warning....
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 525
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro
 
0
  #27
22 Days Ago
Originally Posted by sarithak View Post
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
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #28
22 Days Ago
Originally Posted by network18 View Post
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...

  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);
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 525
Reputation: network18 is an unknown quantity at this point 
Solved Threads: 61
network18 network18 is offline Offline
Posting Pro

PHP warning itself guides you

 
0
  #29
20 Days Ago
Originally Posted by sarithak View Post
Hi

this is my code...

  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 -
  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 -
  1. $new_limit = '100M';
"The discipline of writing something down is the first step towards making it happen."

follow me on twitter
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 149
Reputation: sarithak is an unknown quantity at this point 
Solved Threads: 6
sarithak sarithak is offline Offline
Junior Poster
 
0
  #30
20 Days Ago
Originally Posted by network18 View Post
If the warning as below -
  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 -
  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...
  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; 20 Days Ago at 3:09 am.
My best wishes ... from my soul ... for everyone!
Keep Smiling....Never Depress
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC