Amazon S3 Error Handling

Amazon S3 PHP Class A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR. AMAZON S3 (Scalable Storage in the Cloud) PHP CLASS // AWS access info if (!defined(‘awsAccessKey’)) define(‘awsAccessKey’, ‘CHANGE-KEY’); if (!defined(‘awsSecretKey’)) define(‘awsSecretKey’, ‘CHANGE-KEY’); OO method (e,g; $s3->getObject(…)): $s3 = new S3(awsAccessKey, awsSecretKey); Statically (e,g; S3::getObject(…)): S3::setAuth(awsAccessKey, awsSecretKey); … Read more

Recover MySQL root Password

1. Stop the MySQL server. # /etc/init.d/mysql stop 2. Start the MySQL server process with the –skip-grant-tables option so that it will not prompt for password. # mysqld_safe –skip-grant-tables & 3. Connect to mysql server as the root. # mysql -u root Welcome to the MySQL monitor…. ……….. Type ‘help;’ or ‘\h’ for help. Type … Read more

PHP JavaScript Mobile Detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices. Mobile_Detect uses the user-agent string with specific HTTP headers to detect the mobile environment. Complete Mobile Testing: BrowserStack is a complete browser coverage tool (including mobile devices) for testing you web application. Open source mobile phone detection http://detectmobilebrowsers.com/ HOW TO DETECT MOBILE DEVICES USING JQUERY … Read more

Replace phpMyAdmin by Adminer

Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. It consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL and Oracle. phpMyAdmin is one of the most famous tools for managing the MySQL database. However, Adminer have important differences with … Read more

Install ImageMagick

ImageMagick can be installed on Windows, Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others. Note: Make sure you have installed GhostScript and FreeType already 😉 More help https://www.svnlabs.com/blogs/install-openmeetings/ Download & Unpack # wget http://www.imagemagick.org/download/ImageMagick.tar.gz # tar xvfz ImageMagick.tar.gz Configure # cd ImageMagick-6.8.0-4 (or current version) # ./configure Build # … Read more

FFMpeg Video to Image Gallery

1. FFMpeg create images using video source # ffmpeg -i video.mp4 -s 560×315 images/image%d.jpg 2. Create image sequence gallery <?php $files = array(); foreach (glob(“images/*.jpg”) as $filename) { $files[] = $filename; } natsort($files); ?> <div id=”slideshow”> <?php $i=1; foreach ($files as $filename) { if($i%15==0) { ?> <img src=”<?php echo $filename; ?>” <?php if($i==15) { ?> … Read more

PHP Colorize an image using GD

I was working for color customization for HTML5 MP3 Player with Playlist Finally, I have time saving code for you PHP Colorize an image using GD <?php //print_r(html2rgb(“#ffffff”)); //echo rgb2html(137, 113, 79); $color=isset($_REQUEST[‘color’])?$_REQUEST[‘color’]:”ff00ff”; $image=isset($_REQUEST[‘image’])?$_REQUEST[‘image’]:”2.jpg”; $rgb= html2rgb(“#”.$color); $imgname=$image;               $im=imagecreatefromjpeg($imgname);     if($im&& imagefilter($im, IMG_FILTER_COLORIZE,$rgb[0],$rgb[1],$rgb[2]))     {                    header(“Content-Type: image/jpeg”);          imagejpeg($im);                    //imagejpeg($im, ‘output.jpg’);          //imagedestroy($im);     }    else    {         echo’Processing … Read more

Red5 Media Server iOS Android Setup

Hope you already read our previous article “VOD to iOS” ?   How you can use Red5 Server for streaming to iPhone, iPads and Android? S V N Labs Softwares implements an iOS/Android add-on setup for Red5 Server to stream both Flash, iOS and Android devices. This add-on also supports setup of JW Player, Flowplayer and … Read more

Pay Per Plugin for HTML5 Media

The Pay Per Media Plugin is embedded stand-alone, e-commerce-powered JavaScript and iFramed widget. Features: 1. Delivers on-demand audios / videos / books 2. PayPal with sandbox support 3. Supports Preview and Full Media using JW Player 4. No Popups 5. JavaScript and i-Frame widgets 6. Tracks user’s payment using PayPal Transaction ID 7. XML based … Read more