Recently Added
Posted by Sajith M.R in general on 16. Jan, 2010 | 1 Comment
If you become mad with coding , play this game for some time.
http://firstpersontetris.com/
I like the way it is implemented
Cheers
Sajith
Posted by Sajith M.R in php on 31. Dec, 2009 | No Comments
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.
Posted by Sajith M.R in php on 29. Dec, 2009 | No Comments
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 elementum [...]
Posted by Sajith M.R in php on 28. Dec, 2009 | 2 Comments
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 [...]
Posted by Sajith M.R in Downloads, php, webworld on 27. Dec, 2009 | No Comments
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 added some [...]
Posted by Sajith M.R in general on 22. Nov, 2009 | 2 Comments
Watch this amazing presentation. It is really fantastic.
Posted by Sajith M.R in php on 20. Nov, 2009 | 6 Comments
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 the [...]
Posted by Sajith M.R in php on 16. Nov, 2009 | 1 Comment
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.
Posted by Sajith M.R in php on 14. Nov, 2009 | No Comments
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})”;
$message = ereg_replace($email_regexp, ‘XXX’, $message);
}
if($numbers)
{
//strip all numerical values
$number_regexp [...]
Posted by Sajith M.R in general on 13. Nov, 2009 | No Comments
Guess what will happen if you add an image like below in your html page:
<img src=”http://mail.google.com/mail/?logout&hl=en” />
It does not appear in page, but your google account in another window or another tab will get logoff. Now an external website could logout you from your gmail or orkut.
IF you coded your website to delete a photo [...]
Posted by Sajith M.R in php on 12. Nov, 2009 | 1 Comment
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 the header
Take [...]
Posted by Sajith M.R in php on 11. Nov, 2009 | No Comments
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 submit,
ie
if (count($_POST) [...]