Down load free music

General Support for technical Issues relating to AlegroCart
mike24williams
Posts: 57
Joined: Mon May 23, 2011 10:34 pm

Re: Down load free music

Post by mike24williams » Sat May 12, 2012 12:15 am

hi guys,
thanks for your reply's, I have added the code below into my common.php file. The browser times out and no file is uploaded. But no errors.

Code: Select all

<?php

// REPORT ALL ERRORS
ini_set('memory_limit', '64M');
//echo ini_get('memory_limit');
error_reporting(E_ALL);
I have also created a php.ini file with the code below

Code: Select all

php_value post_max_size 100M;
upload_max_filesize = 100M;
will this cause a conflict.

best Regards

Mike

User avatar
Brent
Site Admin
Posts: 4419
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Down load free music

Post by Brent » Sat May 12, 2012 2:49 am

Does it work. No, I don't think it would create any conflict.

mike24williams
Posts: 57
Joined: Mon May 23, 2011 10:34 pm

Re: Down load free music

Post by mike24williams » Sat May 12, 2012 6:50 am

hi Brent,
thanks for your reply, No I still cant load the file to the downloads.

Regards

Mike

User avatar
Brent
Site Admin
Posts: 4419
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Down load free music

Post by Brent » Sat May 12, 2012 7:03 am

Try this. Create a zip file with just one file. It will be much smaller.
Keep track of how long it takes and the zip file size.
Let me know the results.

mike24williams
Posts: 57
Joined: Mon May 23, 2011 10:34 pm

Re: Down load free music

Post by mike24williams » Sat May 12, 2012 11:52 pm

Hi Brent,

1, .zip file 5.7mb 2.5mins (contains 1 track)
2, .zip file 15mb failed (contains 2 tracks)

hope this helps.

best regards

Mike

User avatar
Brent
Site Admin
Posts: 4419
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Down load free music

Post by Brent » Sun May 13, 2012 4:19 am

What it means is your script will time out before you can ever upload something that large.
Let me think on this one.

mike24williams
Posts: 57
Joined: Mon May 23, 2011 10:34 pm

Re: Down load free music

Post by mike24williams » Sun May 13, 2012 11:26 am

Hi Brent,
I appreciate your time on this.
Best regards
Mike

User avatar
leo
admin
Posts: 4263
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Down load free music

Post by leo » Sun May 13, 2012 12:06 pm

The file upload possibility is determined by 3 values, so please add these lines to the common.php to get all of them.
echo ini_get('post_max_size');
echo ini_get('upload_max_filesize');
echo ini_get('memory_limit');
Thanks
Leo

mike24williams
Posts: 57
Joined: Mon May 23, 2011 10:34 pm

Re: Down load free music

Post by mike24williams » Mon May 14, 2012 10:36 am

Hi leo,
Thanks for your reply.

the values displayed were 8M 100M 128M.

Hope this helps

Best Regards

Mike

User avatar
leo
admin
Posts: 4263
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Down load free music

Post by leo » Mon May 14, 2012 12:29 pm

The minimum of these 3 values determines the max. uploadable file size. In your case that is 8M.
So, you have more possibilities:

1. modify .htaccess file, add

Code: Select all

php_value upload_max_filesize 128M
php_value post_max_size 256M
2. create php.ini with this content

Code: Select all

upload_max_filesize = 128M
post_max_size = 256M
3. contact your web hosting provider to increase the limit if none of these methods work (mainly on shared servers)

Post Reply