Skip to main content

Posts

Showing posts from June, 2011

ffmpeg convert to flv file

Using ffmpeg.exe, we can convert a media file into flv format, with a little code as below: <?php exec('ffmpeg -i abc.mpg abc.flv'); ?> The above code converts the "abc.mpg" file into "abc.flv" file. Note that the "ffmpeg.exe" file must be present in the directory where this code is run.

mysql enable remote root access

Example : Enable remote root access to ip address: 192.168.3.177 mysql > GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.3.177' IDENTIFIED BY '' WITH GRANT OPTION; mysql > FLUSH PRIVILEGES; This setting also allows us to connect to mysql in our php code, with the host set to ip address, 192.168.3.177 : mysql_connect("192.168.3.177","root","");

Drupal clear cache

You might have noticed that the code changes you made in your module are not reflected in the site. Because it is important to clear the cache in Drupal, whenever you change the code in your module file (.module extension). For doing this, go to Administer > Site Configuration > Performance , and go to the bottom of the page. Click on the big fat button: "Clear cached data". Now refresh your module page and you should see the latest modifications.