Mx Lookup Tool

Mx Lookup Tool

Posted by Sajith M.R in php on 31. Dec, 2009 | 0 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.

Lorem Ipsum

Lorem Ipsum

Posted by Sajith M.R in php on 29. Dec, 2009 | 0 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 [...]

WMODE –  Flash overlapping problem

WMODE – Flash overlapping problem

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

JBar – Jquery Bar

JBar – Jquery Bar

Posted by Sajith M.R in Downloads, php, webworld on 27. Dec, 2009 | 0 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 [...]

Fancybox runtime height change

Fancybox runtime height change

Posted by Sajith M.R in php on 20. Nov, 2009 | 8 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 [...]

Bootstrapping the startup

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.

Remove emails, numbers or url from text inputs

Remove emails, numbers or url from text inputs

Posted by Sajith M.R in php on 14. Nov, 2009 | 0 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 [...]

Just a second with Iframe

Just a second with Iframe

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

Codeigniter –  Post resubmit problem on refresh

Codeigniter – Post resubmit problem on refresh

Posted by Sajith M.R in php on 11. Nov, 2009 | 1 Comment

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

Webservice call from PHP – wsdl2php makes it simple

Webservice call from PHP – wsdl2php makes it simple

Posted by Sajith M.R in php on 10. Nov, 2009 | 1 Comment

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

Firephp

Firephp

Posted by Sajith M.R in php on 18. Aug, 2009 | 2 Comments

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 variable and [...]

Mysql Table Editor

Mysql Table Editor

Posted by Sajith M.R in php, php source code on 04. Jun, 2009 | 2 Comments

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 code. 
You [...]