prosoxi.com | Archive | July

Archive | July, 2009

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 used type of codec that runs on most Flash players.

So, let’s get started, there are actually a few steps into converting a file to FLV which are shown below Continue Reading

Posted in PHP, Programming1 Comment

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. Continue Reading

Posted in CSS, Flash0 Comments

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:

Simply enter your desired username and password in one of these pages and submit the form. You’ll get back a string similar to the following: Continue Reading

Posted in .htaccess0 Comments

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 Continue Reading

Posted in .htaccess, MySQL, PHP0 Comments

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 enough is enough. After a brief Google search I found the solution to setting the reply position on e-mails to the top instead of the bottom. The stupid thing is that it’s not an application-wide setting, it’s an account setting.

1. In Thunderbird: Go to “Edit > Account Settings” *
2. Select “Composition & Addressing” for the account in question
3. Make sure the “Automatically quote the original message when replying” checkbox is checked.
4. In the dropdown box below that, select the option “start my reply above the quote”

This worked for Thunderbird 1.5, ymmv

* update: on Windows, the option can be found in: Tools -> Account Settings.

update 2: If you’re commenting to say “thank you”: You’re welcome!

Posted in Tips & Tricks, Tutorials, Windows0 Comments

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 to restore it. Enter the following command in the command line window (or shell):

mysql -u root -p wordpress < D:\wordpress_posts.sql

This will restore the “wp_posts” table. You need to specify the database name. Here, it is “wordpress“. The following command restore the whole database:

mysql -u root -p wordpress < D:\wordpress.sql

If you want to restore all the databases (you used “–all-databases” argument to generate a backup file before), you don’t need to specify the database name.

mysql -u root -p < D:\db.sql

Posted in MySQL0 Comments

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, you won’t see anything, as these are comment tags (and thus do not display). So you would have to right-click and view source to see the ‘<!–COMMENTBOX–><!–ENDCOMMENTBOX–>’ effect.

Posted in PHP0 Comments

Troubleshooting SMTP problems

SMTP or sending mail problems are common and usually easy to troubleshoot. This document will help customers troubleshoot SMTP problems on all (mt) Media Temple hosting platforms.

The first step in any troubleshooting procedure is to try to identify and recreate the problem. Use your mail program to send an email messageto a verified working address. If you receive an error message it will likely be one of the following. Please click on the one relevant to your error:

Posted in Plesk0 Comments

Configuring cron jobs on Windows

To setup a Windows machine to run cron.php at a specific time follow the specific instructions below. This can be useful if you are not familiar with Linux/Unix, or if your web host does not offer the ability to run cron jobs; you can run them remotely from your own computer.

Note: These instructions were written for Windows XP but should be similar in other versions of Windows. Continue Reading

Posted in Network, Windows0 Comments

Ubuntu Server:Install GUI and Webmin in Ubuntu 8.10 (Intrepid Ibex) Guide

http://www.ubuntugeek.com/ubuntu-serverinstall-gui-and-webmin-in-ubuntu-810-intrepid-ibex-guide.html

We have already discussed how to install ubuntu 8.10 LAMP server .If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server using the 2 options

Continue Reading

Posted in Linux0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds