Links

Home arrow Articles arrow Programming
Programming
PHP Timer class to profile methods in joomla PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 1
The following class can be used to time and profile PHP Scripts. Timer data will be written to a mysql table and can later be queried.
Last Updated ( Wednesday, 09 January 2013 )
Read more...
 
Backup mysql database shell script using python on debian ubuntu PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 1
Run this script as a cron job to take daily snapshots of mysql.
Last Updated ( Tuesday, 01 May 2012 )
Read more...
 
How to run a PHP script as a daemon on linux PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 1
You could start your php script from the command line (i.e. bash) by using

the & puts your process in the background.

To kill simply


or to kill PHP process altogether

 
Get menu alias using Joomla JMenu PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 0
$menu = JSite::getMenu();
        
$am = $menu->getActive();

$selflink = $am->alias;
 
Importing raw SQL File into mysql from the command line PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 0

To import an SQL file by passing it as if it were an arguement, you need to use the < sign. So for example, say that I wanted to import an external database from production and wanted to import it into my development environment, I can do so by doing the following:

How to Import an SQL file directly from the Command Line:

Read more...
 
<< Start < Prev 1 2 3 4 5 Next > End >>

Results 1 - 10 of 50