Flash: ASfunction Link Rollover Effect

External CSS External css as it applies to dynamic text does have limitations Some of those limitations include: javascript actions such as On rollover events in js. Borders divs and tables text is always set to wrap which can cause formatting issues when dealing with images linked to in the content.

Password Protecting Your Pages with htaccess

Creating the password file The first step is to create a simple text file that will store your username and password, separated by a colon (:). The small catch is that the password must be encrypted. Luckily, there are many free web-based utilities that will encrypt the password for you. Try one of these: 4WebHelp’s online …

Php, MySql, .htaccess: friendly urls

Php, MySql, .htaccess: friendly urls There are a lot of tutorials that show how to change an address like: www.mysite.com/products.php?product_id=1234 into others like: www.mysite.com/products/1234 www.mysite.com/products/1234.html In this article I’d like to go one step forward and to create something like: www.mysite.com/easy-to-remember-product-name www.mysite.com/easy-to-remember-product-name.html

Thunderbird reply position

Sometimes I put up with computer stupidity much longer than I should. By default, Thunderbirdpositions the cursor at the bottom of the e-mail body when replying to an e-mail instead of at the top. I couldn’t figure out how to change it, so instead I rewired my brain to press Ctrl+r, Ctrl+Home to reply. Today I decided …

mysql console backup restore

Question: How to backup the whole database? Answer: Just omit the “table_name” argument. For example, mysqldump -u root -pwordpress > D:\wordpress.sql Question: How to backup all the databases in MySQL? USE –force to continue on errors Answer: Use “–all-databases”. For example, mysqldump -u root -p –all-databases > D:\db.sql linux mysqldump -u admin -p –all-databases > db.sql Restoring Now let’s …

Remove text between two HTML comments.

Remove text between two HTML comments. Well, one way is to make use of assertions. By using look behind and look ahead assertions (they are not included in any matches), you can grab what is not part of them: $tmp_tpl = preg_replace(‘#(?<=<!–COMMENTBOX–>).+(?=<!–ENDCOMMENTBOX–>)#’, ”, $tmp_tpl); Of course, to test this out, when you say echo $tmp_tpl, …