Tag Archives: php

Change the maximum upload size of files (upload_max_filesize)


To change the upload size of your files (if the limit you have is too small), you can try one of these methods:

(The default size is most probably 2MB, in all examples we're going to change it to 5MB)

  1. Using the file php.ini
    Keep in mind, that this is the recommended option, but some hosts don't give you access to do this.
    Open the file, find and change the values of these two lines:
    • upload_max_filesize = 5M
    • post_max_size = 5M

    The lines may be commented with semi-column (;) and you will have to remove the comment.

  2. Using the .htaccess file.
    Add the following lines in the .htaccess file in your EZG root directory (online):
    • php_value upload_max_filesize 5M
    • php_value post_max_size 5M


    If there is no such file, you will have to create one (just make file with this name and add the code inside).


  3. (If none of the above works) Contact your administrator to change the size for you.



Note: The value of the size is one char only everywhere. It's 10M, not 10Mb or 10MB!

Note 2: The php.ini changes may require server (actually apache service) restart. Try to restart it somehow (or contact administrators for this) if after the change it still doesn't work.

Note 3: Additional changes you may wanna do together with the upload size, is the upload time. It could be changed by these two parameters:

[php_value] max_execution_time 200
[php_value] max_input_time 200

(The [php_value] part is for the .htaccess file only! And is used without the brackets)


Print  posted by atanas   MySql/Php tags:  upload • php   permalink
0 0

MySql Backup


EzGenerator doesn't make backup of online database.

To create backup, use online tools available in control panel of your hosting.

PhpMyAdmin utility is available on most of then hostings.

To make backup of online database in PhpMyadmin :

1. login to your phpmyadmin account

2. select database used in your project and click on export:

 


 

3. in export screen left all settings untouched, scroll down and in save as file" select zip option, then click on GO button:

 


 

save file, this file is your database backup

notice, on many accounts, database backup is done automatically by host, check your server documentation.

 

 

 


Print  posted by miro   MySql/Php tags:  mysql • backup • php   permalink
5 1


[home] 1-2 of 2


CATEGORIES



TAGS


RECENT ENTRIES