2.2
PrintShop Web Installation Guide | 36
The PHP configuration file
This section describes the configuration of specific PHP.ini options. The following options need to be
checked and/or modified.
•
short_open_tag
•
max_execution_time
•
file_uploads
•
upload_max_filesize
•
post_max_size
Short_open_tag boolean
PHP scripts can be enclosed either within <?php ?> tags which is the long form or <? ?> tags (short
form). This directive should be turned to on.
short_open_tag = On
Max_execution_time integer
The max_execution_time variable sets the maximum number of seconds PHP will wait for a script to
finish executing before forcibly terminating it. This comes in handy when your script spirals into an
infinite loop. However it can trip you up if you have a legitimate activity that takes time to complete -
for example, a large file upload. The recommended setting for PrintShop Web is 1200 seconds (20
minutes).
max_execution_time = 1200
File_uploads boolean
Whether or not to allow HTTP file uploads. PrintShop Web requires this option to be enabled.
file_uploads = On
Upload_max_filesize
The maximum size of an uploaded file. This setting effects the size of database files that can be
uploaded as well as the size of static pdf documents and PrintShop Mail templates.
upload_max_filesize = 512M
Post_max_size
Files are usually POSTed to the web server in a format known as 'multipart/form-data'. The
post_max_size sets the upper limit on the amount of data that a script can accept in this manner.
Ideally this value should be larger than the value that you set for upload_max_filesize. Post_max_size
is the upload_max_filesize plus the sum of the lengths of all the other fields in the form plus any
mime headers that the encoder might include. Since these fields are typically small you can often
approximate the upload max size to the post max size:
post_max_size = 544M










