Archive forJune, 2009

How to get e-mail user and passwords off a linux Plesk machine

Step 1: Log in/access server via command line interface (try putty)

Step 2: Log into MYSQL
mysql psa -u admin -p`cat /etc/psa/.psa.shadow`

Step 3: Run this MYSQL query
select concat(mail.mail_name,'@',domains.name), password from mail left join accounts on account_id=accounts.id left join domains on domains.id=mail.dom_id where postbox='true' order by dom_id;

Comments

Display time of server in PHP

< ?
echo date("d/m/y : H:i:s", time());
?>

Comments

Turn on errors in PHP

If you need to turn on errors for one page, place this code at the top of the page.

< ?
ini_set('display_errors', 1);
?>

Comments

.htaccess 301 redirect

place the following in the .htaccess file

redirect 301 /old.html http://www.yours.com/new.html

Comments

How to link to a specific point in time in a Youtube video

http://www.youtube.com/watch?v=ecI_hCBGEIM#t=52m40s
Note the hash symbol #, the t, 52m, and 40s.
the the #t is a time marker
52m = 52 minutes
40s = 40 seconds

Comments