Uploadify – A php-flash library to make upload simple

Here is a simple jQuery plugin for creating flash based file uploader. http://www.uploadify.com/ Look some demo here. Include the js file and run the following script to make a file input to flash uploader <script type=”text/javascript”>// <![CDATA[ $(document).ready(function() { $('#fileInput').uploadify({ 'uploader'  : 'uploadify.swf', 'script'    : 'uploadify.php', 'cancelImg' : 'cancel.png', 'auto'      : true, 'folder'    : '/uploads' [...]

0 Comments

Mx Lookup Tool

If you want to know where your website is blacklisted and why all the email you send from your website do not delivered to inbox, and reporting as Spam, use the following url: http://mxtoolbox.com/blacklists.aspx Happy new year Mr. Share

0 Comments , , , , ,

Lorem Ipsum

This is a lazy post. Read the following first: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis placerat dolor at accumsan. Aenean quis magna eget dolor adipiscing porttitor. Sed vestibulum placerat neque, in lacinia mauris luctus in. Aliquam adipiscing commodo hendrerit. Proin a metus id diam malesuada egestas. Mauris nisi sem, ullamcorper nec [...]

0 Comments , , ,

WMODE – Flash overlapping problem

When we use mixed html and flash content, we usually face the problem of overlapping flash contents over html text. In the case of mere html we use z-index to format which content should be on top. But Z-index cannot do nothing here. So the recommended option is wmode parameter.   Sometimes the wmode mode [...]

2 Comments

JBar – Jquery Bar

Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like “You account has been updated” or “Your photo has been successfully deleted” Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter’s settings page) I [...]

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

Fancybox runtime height change

For those who use fancy box and iframe inside fancy box might face the issue of changing the height. Once fancybox is loaded with a particular height and width, it does not change when you change the content inside iframe dynamically. Auto height change is only possible for images. Use the below code to change [...]

10 Comments , , , , ,

Bootstrapping the startup

I uploaded my first presentation in slideshare. It is about , how the current world’s online technical tools can be used to bootstrap your startup. Most of the services in this presentation are based on UK based startup companies. Bootstrapping the stratups View more presentations from sythoos. Share

1 Comments , , , , , , , , , , , ,

Remove emails, numbers or url from text inputs

Below is a simple php code to sanitise an input message . The function has 3 parameters, depending on the parameter the input is parsed to filter. function sanitize_message( $message , $email = true, $numbers = true, $url = true ) { $message = strip_tags( $message ); if($email) { //strip email address $email_regexp = “[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,3})”; [...]

0 Comments , , , , , , , ,

Just a second with Iframe

IF you are facing problem with layout issues inside iframe (which is normally not there in normal pages) just test these things. Iframe is considered as a separate html page. So it needs all the basic tags, from html, head, body. It does not get styles from parent, so you need to add manually in [...]

1 Comments , , ,

Codeigniter – Post resubmit problem on refresh

A small tip for codeigniter programmers. If you use same controller for display view page and take action on POST, there is a problem may happen when you try to refresh the page after submit, the whole data get re-submit and creates problem. It can be solved using session. If there is any POST form [...]

3 Comments

Webservice call from PHP – wsdl2php makes it simple

From PHP we usually do a lot of coding to create a webservice client. We use nusoap library for this purpose. But in the case of complex objects, it is very hard to create a soap client call. We need to create a class structure before invoke a wsdl call. As a solution, you can [...]

4 Comments

Firephp

We like firebug , We like PHP , if so, We also begin to  like FirePHP !!! Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console. In our php life, we know we can use echo function to print or debug the value of a [...]

2 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 , , , , , , , ,

Symfony V/S Codeigniter

     V/S     I have developed more than 7 web projects using Symfony framework. Mobshare.in, Amvizone.com, Campaignmanger.in , Movieonline.in etc are some of the websites. But for the past 5 months my developement is in Codeigniter. It is very very lighter than Symfony and has almost all the features of Symfony. Both are MVC [...]

11 Comments , , , , , , , ,

Check website in different browsers

Last day i got a good website in which we can test the rendering of a particular website through different versions of interenet explorer. From a designer’s view, internet explorer is a life long head ache due its different alignment, floating problem, iframe problem, script execution problem and all. Here , http://ipinfo.info/netrenderer/index.php , You can [...]

12 Comments , , , , , , ,

Plugin Age

We know Stone Age, Iron Age , Bronze Age . My friend  Binny started new Technical Age named Plugin Age. He announced this week as a plugin age. From Monday  (17-11-2008) to Friday (21-11-2008) he projected to release each plugin a day. He already released his two  wordpress plugins Eventr & Autofields WordPress plugin Lets [...]

5 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, [...]

46 Comments , , , , , , , , , , , , , , , , , , , ,

Bypass your browser download to any accelerator (Flashgot)

When ever we click on a downloadable file , our browser pop up a download window popup and ask us where to save. That download option does not have any other options like , limit the speed, scheduled download, download by split parts etc like what download accelerator like flashget does. In some cases we [...]

1 Comments , , , , , , ,

IDE for PHP, Ruby on Rails, Python and Javascript – Aptana

After a long searching, i got this IDE , Aptana which satisfies all my requirement. It is just like .net IDE with auto compiling and error displaying system, and come with built in server. You can download it from: http://aptana.com/studio/download Error display while coding time is its another feature. Auto filling is another feature. For [...]

7 Comments , , , , , ,

WordPress post via email

If you know this feature already , skip this article. But i have to ask a single question at the end of this section . For wordpress version less than 2.3 , Go to Options  >  writing, and  for greater than 2.3, Go to settings > writing What you have to do is create an [...]

12 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 , , , , , , , ,

Show WordPress Currently Reading Posts

After the success of my previous wordpress plugins , Announcement, Show My Page Rank, Sexy Rating, Add to this , Stumble Reviews, I created one more interesting plugin, called Currently Reading Posts Plugin. Whenever a visitor visits your website, he can see what are the posts currently reading by other visitors. It is like youtube’s [...]

41 Comments , , , , , , ,

The biggest blunder I ever made with PHP

I was writing a php code to parse images from a particular url . At the begining I used http://www.google.com as a testing url. When I tested the php code from my local machine (http://localhost) it took time to get data from a remote url (google.com) . So I decided to check this code with [...]

6 Comments , , , , , ,

Sexy Rating – WordPress Plugin

If you wanna know , what is others review or opinion about your website, You can use this wordpress plugin. It will provide the blog readers and your regular visitor to rate your blog. You can put this plugin anywhere in your blog. The plugin name is sexyrate plugin. Here is the screen shot: There [...]

13 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 $x1 = $_GET['x1']; $y1 = $_GET['y1']; $x2 = $_GET['x2']; $y2 = $_GET['y2']; $image_object = imagecreatefromjpeg(‘hari.jpg’); $image_cropped = Crop($image_object,$x1, $y1, $x2,$y2); $temp_path = rand(1,99999).”hari.jpg”; imagejpeg( $image_cropped,$temp_path); header(‘Location: simplecrop.php?img=’.$temp_path [...]

19 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 [...]

81 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 , , , , , , , , , ,