How to convert/encode files to FLV using FFMPEG & PHP

How to convert/encode files to FLV using FFMPEG & PHP So, as I’ve written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a “YouTube Clone” script, there might be those who want to create their own using FFMPEG & PHP. FLV is the most widely …

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

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, …