23
2009
php tips
When i read the blogs through google reader ,i saw some php tips. I shared that points here. Use a SQL Injection cheatsheet. Know the Difference Between Comparison Operators Shortcut the else Drop those Brackets Favor str_replace() over ereg_replace() and preg_replace() Use Ternary Operators Memcached Use a Framework Use the Suppression Operator Correctly Use isset instead of strlen
23
2009
Serialization and Deserialization
serialize is a inbuild method in php .It is used to convert any object in to string. Using unserialize() conveting the serialized string into its own format. For example, class serializeClass { public $fname; public $lname; public $email; } class serializeClass1 extends serializeClass { public $name; } $myserializeObject = new serializeClass1(); $myserializeObject->name = “prabhunameâ€; $myserializeObject->fname = “prabhuâ€; $myserializeObject->lname = “kalaiselvamâ€; $myserializeObject->email = “prabu@gmail.comâ€; if you want to convert the object “$myserializeObject†into string ,Using serialize [...]
23
2009
Spell Checking – PHP
Spell checking is very easy to integrate in any site. We can simply create a spell checker using php and ajax. Pspell is the Extension in php, used to check the spelling of the word and also give the suggestions. if you want to use pspell,first u can install aspell library in your system after installation was completed.copy the pspell.dll and aspell.dll and put it in system32 directory or in the php directory. After all [...]
23
2009
xml and xpath
XML stands for extensible Markup Language XML is a markup language like HTML. It won’t have any predefined tags. You must define the tags. XML was designed to describe data and to focus on what data is. If you want to ignore some thing from the parser, you can use CDATA. Namespaces are used to avoid the Name conflicts in XML XPATH: Is a language for defining parts of an xml. xpath uses the following [...]
23
2009
sso Implementation in linux
Steps needs to follow to implement sso in our server (Linux)  : 1. Needs to download ntlm package for our corresponding server version. 2. Install or upload the ntlm.so file in apache module folder. 3. Needs to enable the ntlm module in apache configuration file for load the module. 4. Needs to add some few configuration for  ntlm (domain name,domain controller name and domain backup controller name) and also needs to set the authentication type [...]

An article by admin