19
January
2012

Php.ini settings for video scripts

Hi All,

This is a small blog to explain how to set the write settings for a video script. The settings theusually needed adjustment are:
upload_max_filesize, post_max_size, memory_limit, max_execution_time, max_input_time

You can make a php.ini in your root directory and add:

upload_max_filesize = 200m
post_max_size = 200m
memory_limit =  220m
max_execution_time = 1000
max_input_time = 1000

upload_max_filesize is the max MB you can upload to your server with a php session.
post_max_size is the max MB you can send with a post from a form upload.
memory_limit is the max a session of php can use to do his stuff, if you going to encode videos it need to be bigger then the max video upload size.
max_execution_time is the time a script maybe running, for video encoding this needs to be longer if you encode bigger video (also depents on cpu and memory resources)
max_input_time is the time you input data back into php (if you have encoded a video and need to update database though php)

Too add the custom php.ini file to your site open .htaccess and on the top add/replace:

RewriteEngine on
suPHP_ConfigPath /home/<USERNAMEPATH>/public_html/

 

This will set the custom php.ini file on most shared hostings like certified, HostV, Cirtex and hosting managers.
I’m currently testing these hosting companies and see if there is any trouble with JAVS 1.4.3

Greeting rouge

Author: rouge
Posted in: Uncategorized

Tags: ,

Trackback from your site.

Leave a comment

You must be logged in to post a comment.