Oct
23
2009
Uncategorized

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

Oct
23
2009
Uncategorized

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

Oct
23
2009
Uncategorized

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

Oct
23
2009
Uncategorized

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

Oct
23
2009
Uncategorized

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

Pages:«12

 

September 2010
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
27282930  
  Domain Name + 1GB Linux India Web Hosting in Rs.349