sh: /mencoder: No such file or directory

This is the problem caused due to PHP safe_mode restrictions to execute linux commands. If safe mode is on we can not run linux commands by exec() PHP function. Try safe mode Off when you want to execute linux tools with PHP…. Disable dangerous function from executing to exec().. that will cause application non functional … Read more

Better Solution for Filtering Bad Words in PHP

I was searching for filtering Bad Words from my site…… I have visited so many links on google but…. 🙁 Here is my simple logic for filtering Bad Words from site or any search engine First you have to make a txt file “badwords.txt” or you can search from google Google Keyword: badwords + filetype:txt … Read more

Oscommerce – Features

* Multi language * Content Management ~ WYSIWYG editor integrated into the shop admin to allow easy entering    of    HTML and uploading of images ~ Add text to your category pages – great for SEO and providing information ~ Content Management System – no more FTP and working with PHP files – amend text for … Read more

Free online photo editor

Pixlr is a free online photo editor. Fix, adjust and filter your images. Manage your images in your browser! Get creative images with the free online photo editor and fix with the image express (crop, resize, rotate, flip etc)! Jump in and get going within 2 seconds! Source: http://www.pixlr.com/editor/ http://www.pixlr.com/express/

Create TCPDF PHP Fonts

TCPDF supports TrueTypeUnicode (UTF-8 Unicode), OpenTypeUnicode, TrueType, OpenType, Type1, CID-0 and Core (standard) fonts. You will find font creation utility at fonts/utils of TCPDF… copy desired font to fonts/utils/svnlabs.ttf * For TrueTypeUnicode # cd /var/www/html/tcpdf/fonts/utils # ttf2ufm -a -F svnlabs.ttf # php -q makefont.php svnlabs.ttf svnlabs.ufm * For embedded fonts to tcpdf PDF file.. copy … Read more

Exclude folders from zip – tar

TAR – Tape Archive  (application/x-tar) A common archive format used on Unix-like systems. Generally used in conjunction with compressors such as gzip, bzip2, compress or xz to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files. # tar -cvvf foo.tar foo/ –exclude=”/home/svnlabs” # tar -cvzpP –file=/home/backup.tar.gz –exclude={/dev/*,/proc/*,/sys/*,/tmp/*} / tar work with directory “/” except for /dev, /proc, … Read more

Install MP4Box

MP4Box is a multimedia package used for  conversion, splitting, hinting, dumping and others. zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program. Source: http://sourceforge.net/projects/gpac/files/ Download latest “gpac-0.4.5.tar.gz” & “gpac_extra_libs-0.4.5.tar.gz” from … Read more

Install git on linux

Git is a free distributed revision control, or software source code management project with an emphasis on being fast. Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a … Read more

Resize YouTube Video

Here is the code how to resize youtube video embed code, even this code will work to non-youtube embed videos….. <?php $embed = ‘<object width=”425″ height=”344″><param name=”movie” value=”https://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”https://www.youtube.com/v/jWDmG3JnNLE&hl=en_US&fs=1&” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>’; //$alt = preg_match_all(‘/(width|height)=(“[^”]*”)/i’, $embed, $matches); $embed = preg_replace(‘/(width)=(“[^”]*”)/i’, ‘width=”200″‘, $embed); $embed = preg_replace(‘/(height)=(“[^”]*”)/i’, ‘height=”200″‘, $embed); echo $embed; … Read more

Linux Command Line

http://www.commandlinefu.com/commands/browse http://blog.commandlinekungfu.com/ http://www.shell-fu.org/ http://www.cyberciti.biz/ http://thecommandline.net/ http://cheat.errtheblog.com/ http://getfirebug.com/commandline.html http://xmlstar.sourceforge.net/ http://linuxcommand.org/ http://commandline.org.uk/ http://commandline.net/home.asp http://www.linuxguide.it/linux_commands_line_en.htm http://michaelminn.com/linux/command_line/ http://www.linuxclues.com/ http://www.go2linux.org/ http://www.yolinux.com/ http://www.linuxjournal.com/ http://www.linuxconfig.org/ http://www.linux.com/ http://www.howtoforge.com/ http://www.ehow.com/ http://www.yolinux.com/TUTORIALS/LinuxTutorialSysAdmin.html http://linuxsysadminblog.com/ http://librenix.com/