Archive

Archive for the ‘php’ Category

PHP versus ASP.NET – Windows versus Linux – Who’s the fastest ?

August 7th, 2009

PHP versus ASP.NET – Windows versus Linux – Who’s the fastest ?

This is the first question which comes to a developers mind when they think about hosting. misfitgeek wrote an interesting blog post about PHP versus ASP.NET – Windows versus Linux – Who’s the fastest ? you can also read about the Comparative Performance tests here.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban ASP.net, php

Create you own Twitter Reminder Service using Remind_Me_About

July 26th, 2009

What is Remind_Me_About?

remind_me_about is a new Twitter bot written in PHP. What is it all about?

remind_me_about is a reminder service using Twitter. Follow , Wait for remind_me_about to follow you back, Send your “to do”as a Direct Message and forget about it. Remind_me_about will remind you on the day.

What’s more? When you recive a DM Twitter will (may) send you and email and if you have subscribed to SMS alerts then you willrecive an SMS alert.

If you do not want others to know about your reminders then you can start your own Twitter reminder service in few minutes by downloading the source code from codeplex.

Product Home Page : http://remindmeabout.codeplex.com/

You will need a webserver which can handle PHP scripts and run cron jobs.

Related link:

  1. http://www.binoyxj.com/2009/07/create-a-twitter-reminder-with-remind_me_about-bot/
  2. http://www.twi5.com/remindmeabout-a-twitter-reminder-bot/5828/
  3. http://mytweeterapps.com/twitter-web-applications/set-reminders-twitter-bot/
  4. http://www.ghacks.net/2009/07/22/use-twitter-as-a-reminder-service/

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban php

Remind_me_about : Twitter Reminder service in php

July 20th, 2009

remind_me_about is a new Twitter bot written in PHP. What is it all about?

remind_me_about is a reminder service using Twitter. Follow , Wait for remind_me_about to follow you back, Send your “to do”as a Direct Message and forget about it. Remind_me_about will remind you on the day.

What’s more? When you recive a DM Twitter will (may) send you and email and if you have subscribed to SMS alerts then you willrecive an SMS alert.

remind-me-aboutWhat are the rules?

Rules are simple. As stated above follow remind_me_about. Wait for remind_me_about to follow you back. When you want to add a reminder, simply send a Direct Message in any of the following formats.

Bob’s birthday Tomorrow

or

Tom’s Birthday on 23/04/2009

The date format should be dd/mm/yyyy. remind_me_about notifies you if you enter a valid date format.

I will upload the source code to codeplex soon.  If you find a bug please send me an email to shobankr[at]gmail.com

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban php

10 Ways to Automatically & Manually backup MySQL Database

March 16th, 2009

Here is a  very useful post about different ways to backup MySQL database.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban php

IE7 iframe and cookie hell!

February 19th, 2009

Recently I was working on a project which loads a third party domain webpage in an iframe. Everything looked fine except it started acting weird in Internet Explorer 7.

Later I realised that it was because of the default privacy settings (or rather annoyance) in IE7 which blocks third party cookies in iframes.

There are two ways to solve this.

  1. Change the IE7 settings to accept all cookies. This can be done by navigating to

Internet Options >> Privacy >> Advanced >> Check “Override Automatic Cookie Handling” and “Always allow session cookies”.

This solution is not possible if you are the webdeveloper. You cannot ask all users to change their privacy settings. So how can you over come this programatically? Look at the second solution.

 

     2. If you are the we developer then you can add p3p headers to the pages loaded in iframe. By doing this we are telling the browser that it is OK to create and maintain cookie values of the pages loaded in iframe. Adding the headers is not a tedious task. Use the following code.

PHP :

header('P3P: CP=\"IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA\"');

ASP :

Response.AddHeader "p3p", "CP=" & chr(34) & "CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR" & chr(34)

ASP.net :

HttpContext.Current.Response.AddHeader ("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

:>

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban ASP.net, php

Stackoverflow Favorites wordpress widget

February 18th, 2009

Do you love stackoverflow? Are you a frequent user or stackoverflow? Then why not share your Favorite programming questions from stackover?

Here is a wordpress sidebar widget that will make your job easy. Simply download and add the sidebar widget to your theme and your Favorite questions will automatically be displayed.

Usage :

  1. Download the plugin from here
  2. Open stackoverflow_favs.php and edit the userid on line 11 (You can get your userid from your stackoverflow profile url. Example : http://stackoverflow.com/users/12178/shoban
  3. Upload the changed file to your plugins directory and activate it.
  4. Add My Favorites from SOF widget to your sidebar from your widgets menu.

Do you have any suggestions? let me know :)

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Uncategorized, php

Links for Sunday #4

November 16th, 2008

Contact Grabber

November 12th, 2008

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, Hotmail, Rediff, Yahoo, Orkut, MySpace, Indiatimes, Linkedin , AOL and lycos.

Read the rest here

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban php

Create a simple Twitter IM bot

October 12th, 2008

Some time back I worte a post about a Twitter Google bot in www.crankup.net. As promised, here is how you can develop your own google talk bot which can post your messages to Twitter.

First, You need an imified account for your bot to work properly. Get one here. Once the account is created, login to your account and give your new bot a name. I call it Post2Twitter.

Now its time to develop the bot. I have used PHP to post message from the chat window to twitter.Below is the code.

<?php
error_reporting(0);
require('twitterAPI.php');
$message = $_REQUEST['msg'];
if(isset($message))
{
$extracted = explode("$",$message);
$twitter_username = $extracted[0]; 
$twitter_psw = $extracted[1];
$twitter_message = $extracted[2];
 
if(strlen($twitter_message)<1){
	echo "Sorry! Please enter a message to post!";
	exit(0);
	} else {
	$twitter_status=postToTwitter($twitter_username, $twitter_psw, $twitter_message);
	}
}
 ?>

Looks simple? Infact it is not. I have used anoter file which will post the message to twitter. Get the include file here.

Now upload both the files to a webserver and provide the url in your bot setting page (imified.com).Once this is done you can invite your bot to your google talk and start having fun. The above code is self explanatory if you have any queries please post it as a comment.

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban Uncategorized, php

5 Ajax calendars you shouldn’t miss

August 1st, 2008
  1. Vista Like Ajax calendar : The Vista-like Ajax Calendar (vlaCalendar) version 2 is a unobtrusive  web version of the slick and profound Windows Vista taskbar calendar, by using the mootools javascript framework, AJAX, XHTML, CSS and PHP. Read more here
  2. Aeron Calendar : Calendar is a Javascript class that adds accessible and unobtrusive date-pickers to your form elements. This class is a compilation of many date-pickers I have implemented over the years and has been completely re-written for Mootools. I have tried to include all the features that have been most useful while streamlining the class itself to keep it as small as possible. Use the links below to see what features are available in Calendar and how it might enhance the accessibility, usability and validation of form elements on your website. Read more
  3. Ajax calendar for ASP.net
  4. Super Ajax calendar : The super version includes the posting and viewing of linked events, and it comes with an admin tool to easily add and modify events to the calendar. Also added is a “jump to” box (the down arrow) so you can jump to a month / year instead of having to navigate using the previous / next functions. Read more and download here
  5. Simple Ajax calendar : Get it here

[Post to Twitter]   [Post to Plurk]   [Post to Digg]   [Post to ping.fm]

Related posts

Shoban links, php