Menu

Menu
Category

My status

Our promise


1. We take a stand against fake hosting reviews. Any person or hosting company caught will be exposed for everyone else to see.

2. We do not accept bribes for better reviews or rankings. Hosts: don't bother asking.

3. If you need assistance, we ARE here to help.


By hostingcouponfinder.com |  Published: 2009-12-28

  Rating: Unrated

Are you taking full advantage of your web hosting? Here is a list of tips that will help you make the most of it.

PHP CRON job
- how to make a "cron job" using a php file. Checks age of backup file every time home page is loaded.
- difficulty setting up a cron job from a php file due to permissions.

PHP echo shortcut
Instead of this can be used

Notice there can be limitations using this shortcut as this needs to be enabled in the php.ini. This is however usually the case.

PHP script that automatically removes non-activated users from database
- script used on PCP


How to parse php code requested from database

$message = $mail_body;
$message = 'echo("'.$mail_body.'");';
ob_start();
$message = eval($message);
$message = ob_get_contents();
ob_end_clean();


Server stuff:

Backup scripts that can be used for CRON

- php scripts made for PCP
- how to insert them in CRON


WHM tricks
- look out for use of nodes (e.g. spam mail generated)


MySQL database tricks:

How to dump multiple databases
- example using above backup script

How to fully restore a site every week/day
- first: generate .sql backup
- first: generate .gz backup of files
- later: restore database
- later: extract files and overwrite old ones

Comments

No comments listed.

Comments form


User panel
Remember me.
Most popular