1
fredgsanford
Debaser Questions

OK, I just installed this module since I am creating an MP3 hosting website and it seems perfect for this.

However I have a few questions about the module that are a bit confusing to me.

1. Where is the "php.ini" file located so that I may set the max upload specs?

2. I would like to set the maximum file upload to 5MB, but I don't know how many bytes that is? .. the modules's preferences ask for bytes, not MB. Can somebody please tell me how many bytes 5MB would be?

Currently the Max. Upload Size is defaulted at: 2096128 bytes. How many MB is that?


Thanks much

2
davidthomas1
Re: Debaser Questions

Currently the Max. Upload Size is defaulted at: 2096128 bytes. How many MB is that?

2096128 Bytes = 1.9990234 Megabytes

5 Megabytes = 5,242,880 Bytes

1 Megabyte = 1,048,576 Bytes

convert bytes to megabytes

You can set php.ini config values in a number of ways
e.g:
1) ini_set() php function
2) .htaccess files
3) placing a file called php.ini the top directory of your website containing the settings you want.

Have a look at this tutorial

or

this one

HIH
みんなちがってみんないい。

XOOPS 2.0.13.2

3
fredgsanford
Re: Debaser Questions

Thanks for this information.

I think I would prefer to place a file called "php.ini" in the top directory of my website containing the settings I want.
The problem is that I don't know what code to put in the php.ini file since I am not good with php or coding.

Can anyone give me the correct code that I will need to place in the php.ini file to get Debaser working to my specs?

I want the max file upload size to be 5242880 bytes.

Thanks

4
davidthomas1
Re: Debaser Questions

You may want to make a php.ini file like this:

php.ini
Maximum allowed size for uploaded files.
upload_max_filesize 6M

Maximum size of POST data that PHP will accept.
post_max_size 6M

 
Maximum execution time of each scriptin seconds
max_execution_time 
1200    

 
Maximum amount of time each script may spend parsing request data
max_input_time 
60      

 
Maximum amount of memory a script may consume (8MB)
memory_limit 8M


Make it in notepad, save it as "php.ini" (with the quotemarks) in the Save As.. dialog. Upload it to your server into your XOOPS root directory and it should do the trick.

See the PHP Manual for more information on php.ini settings.

HIH
みんなちがってみんないい。

XOOPS 2.0.13.2

5
fredgsanford
Re: Debaser Questions

Thanks so much for this! ... you are too cool!!!

Did you mean I should put the file in my Xoop's folder, or in my root?

Thanks again ..



Quote:

davidthomas1 wrote:
You may want to make a php.ini file like this:

php.ini
Maximum allowed size for uploaded files.
upload_max_filesize 6M

Maximum size of POST data that PHP will accept.
post_max_size 6M

 
Maximum execution time of each scriptin seconds
max_execution_time 
1200    

 
Maximum amount of time each script may spend parsing request data
max_input_time 
60      

 
Maximum amount of memory a script may consume (8MB)
memory_limit 8M


Make it in notepad, save it as "php.ini" (with the quotemarks) in the Save As.. dialog. Upload it to your server into your XOOPS root directory and it should do the trick.

See the PHP Manual for more information on php.ini settings.

HIH

6
davidthomas1
Re: Debaser Questions

your main XOOPS folder, you could put it in other folders too (e.g the debaser module folder)

good luck with that
みんなちがってみんないい。

XOOPS 2.0.13.2

7
fredgsanford
Re: Debaser Questions

ut oh!
I installed the "php.ini" file in all of the directories, and it still won't work?
I keep getting this error message:
upload failed .. file is too large

Quote:

davidthomas1 wrote:
your main XOOPS folder, you could put it in other folders too (e.g the debaser module folder)

good luck with that

8
frankblack
Re: Debaser Questions
  • 2005/12/22 15:11

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Not all hosters allow to overwrite master-values of the php-settings with local values.

Perhaps look for another hoster which allows bigger uploads or overriding master-values.

9
davidthomas1
Re: Debaser Questions

You could try another method like

ini_set()

or

.htaccess files

if the first one doesn't work, they might.
みんなちがってみんないい。

XOOPS 2.0.13.2

10
tgotch
Re: Debaser Questions
  • 2006/1/14 16:47

  • tgotch

  • Just popping in

  • Posts: 66

  • Since: 2005/1/31


I just installed debaser, looks awesome...I have this same problem trying to upload a large file. I have uploaded the file via FTP instead. Is there a way in debaser to now move this .mpg file to a category for viewing? I have uploaded the file here:
modules/debaser/upload/

Login

Who's Online

169 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits