MySql/Php

Add custom code (html or php)not compatible with EZG pages structure


To add custom page content, that's not compatible with the current EZG structure (no possible to add the content directly into the pages), try to use this:

 

  1. Set up the extra page you want with the content you want added into it.
    If you want to manage the page via EZG (and make it part of the project anyway), you can try this:
    • make new page in EZG (wherever you prefer).
    • in page settings check the hide template checkbox (to be able to check it, you have to check hidden in menu first).
    • add macro NOPAGEFOOTER on the page
    • suppress float login (if active)
    • add the required content (you may also use the HTML button in Editing tools for it).

    If you want to make your own page - use external FTP (or some of the ignored from optimization folders in EZG) and upload the desired file on the server. For this option you will have to make full html structure (html, head, body, ect tags), because of the iFrame and no EZG template included to build the page structure.

  2. Once you have the page prepared, make the other page (or open already existing one) that will hold the extra page.
  3. Use the Inline frame option from Widgets and for source add the url of the page, created in 1. (you can use relative paths too in this field).
  4. Set up the rest of the fields (ensure you have unique element id and appropriate name) and settings (the settings button) in the Inline frame dialog.
  5. Confirm and upload

Print  posted by atanas   MySql/Php tags:  • customize • code   permalink
3.7 3

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

MySQL support in EzGenerator v4


MySQL support:

 

EZG V4 can use MySQL for all php features (Blog, Calendar, Counter, Search, etc).

You set your project to either use MySQL, or flat files. You can't have MySQL blog and flat file calendar in same project.

To use Shop/Catalog you need to enable MySQL, there is no flat file catalog/shop.

 

To switch your existing project to MySQL, you have to go to Project Settings >> MySQL Settings an check Use MySQL for all Live pages and do Full build.

 

Important: If you switch your existing project to MySQL, all php features (Blog, Calendar, Counter, Search, etc) will be automatically transferred to MySQL, which means data will be moved from flat file to MySQL. So, you will not loose existing data!

 

 

What if I use separate database for each MySQL shop page?


In v4 all pages use same database, but each has its own database table.


1) you need to use phpmyadmin panel (this is administrator MySQL panel)
2) you have to choose one database that you will use for your project 
3) you have to export all other databases (that you use for shop pages) and then import the tables in the central database that you will use

 


Print  posted by atanas   MySql/Php tags:  • MySql • support   permalink
3 3

Send Mail through GMail SMTP Server


To use Gmail for mail in ezg website, use this PHP settings (with your own e-mail and password) :

 

 

notice :  To send mail via gmail extension=php_openssl.dll must be enabled on your server (in php.ini)


Print  posted by miro   MySql/Php tags:  • gmail • smtp • e-mail   permalink
0 0


[home] 1-5 of 5


CATEGORIES



TAGS


RECENT ENTRIES