Pass parameter to an iframe embedded Fan Page in Facebook

Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL. A normal Fan page of Facebook would like this: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&sk=app_XXXXXX This Url will call your domain, say example.com inside the iframe to [...]

0 Comments

jRecorder 1.1 with Preview option is released

Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called jRecorder I got many responses and requests to maintain the code with new enhancements and some bug fixes. Based on that, a new version (1.1) is released which has the capability to preview the recorded audio before [...]

33 Comments

Facebook – Like to see the content

Sometime in Facebook Pages, you can see the message / banner, we have offers for you, like us to see. Or Like us to unlock the content etc. These all are for getting more likes in their Facebook page and indeed, it is a very nice idea to spread your updates among many of your [...]

6 Comments

jRecorder – jQuery plugin for audio recording

Recently I made a jQuery plugin named jRecorder to record voice in html pages. This plugin is very easy to integrate with your web page and you DON’T need a flash server or RED5 server to do the recording What all you need is a Web Server (PHP or any server scripting language). You can [...]

127 Comments

VARDUMP.IT – PHP remote debugging console

In PHP coding, we spend most of the time for debugging. Either we use echo, print_r or var_dump to check variable values or check whether a particular function is executing or not. These all things are outputting something to browser. This is not applicable in case of redirection, or image processing (GD) or sometimes with [...]

1 Comments , , , , ,

Algorithm for range of dates

Here is a php function which returns from and to date as an array for a range: <?php function get_rangeof_dates($time_frame = ‘all_time’) { $from_date = ”; $to_date = ”; switch($time_frame) { case ‘all_time’:        $from_date = ’1170-01-01 00:00:00′; $to_date = ’2250-12-31 23:59:59′; break; case ‘today’: $from_date = date(‘Y-m-d 00:00:00′); $to_date = date(‘Y-m-d 23:59:59′); [...]

0 Comments , , , , , , , , , , , , , , , , , ,

Mysql Table Editor

In a php project, if we get the requirement , we usually start design and database. But the data entry procedure is very hard. In this case PhpMyadmin is a good comfort.  Here is another tool from phpguru.org , MySQL Table Editor. Using this library you can make your database table editable from your php [...]

3 Comments , , , , , , ,

XAJAX

Basically using xajax “You can directly call php functions from your javascript code” Xajax will do the rest.  For example, if you are going to write a javascript function Capitalize which captilaze your textbox content when you press a button. Here is the pure html/javascript code for that: ============================================= <script> function Capitalize() {      [...]

0 Comments , , , , , , , ,

Contact Grabber

If you are a social media website developer , sometimes you might search for grabbing contacts from a particular email account if the password is given. I also did the same.  In most of the cases it did not work properly. But recently i got a contact grabber from phpclasses.org which works perfectly on Gmail, [...]

49 Comments , , , , , , , , , , , , , , , , , , , ,

Intelligent Watermark (php + gd)

Online Photoshop in PHP Part (5) >> (image after watermarked with gmail logo) Those who haven’t seen  the online photoshop tool created by me, just click here: http://www.sajithmr.com/photoshop Today we will implement the watermarking on images using php gd library. Intelligent watermarking means, apply a logo or a watermark image on another image by measuring [...]

3 Comments , , , , , , , ,

Crop Image Like Orkut

Online Photoshop in PHP (Series Part 4) >> Today we will discuss about cropping of images using php and gd library. Look at the simple example here: http://www.sajithmr.com/photoshop-tuts/crop/simplecrop.php Here the Crop function is doing the real work. x1 and y1 are Top-Left Coordinates of new image and x2, y2 are the Bottom-Right . Here is [...]

20 Comments , , , ,

Download Youtube Videos using PHP Code

  If you want to get the FLV file of any youtube video url using php code, here is the solution. If you are a PHP Programmer and if you are working with any video website, and if you need to grab videos (FLV files) from youtube and to put it yourown site (not object [...]

84 Comments , , , , , , , , ,

Online Photoshop in PHP (Series Part 3)

Resize a Photo >> Today we will implement hows to resize photo into a particular width and height (or keeping aspect ratio) See the live example from: http://www.sajithmr.com/photoshop-tuts/resize/resize.php You need to install php-gd library to do this. To functions, imagecreatetruecolor and imagecopyresampled will do the resizing. Those who have not seen the Online Photo Editing [...]

2 Comments , , ,

Online Photoshop in PHP (Series Part 2)

Implementation of the Browse Photos Area >> Today we will implement the browse photos area of online photoshop Those who haven’t seen the online photo editing tool, click on the above icon (baloon) You can see the browse area implementation here: http://www.sajithmr.com/photoshop-tuts/browse.php What you need for this is 4 php functions: is_dir , opendir, readdir, [...]

4 Comments , , , , ,

Online Photoshop in PHP (Series Part 1)

Introduction >> As i announced in my birthday post: celebrating-1st-year-of-sajithmr.com , i am starting my post series How to make Photoshop Express in PHP Before we starting the step by step procedure, have a look at : http://www.sajithmr.me/photoshop/index.php This is a basic version of online photo editing tool. You can either upload a photo to [...]

6 Comments , , , , , , , , , ,