Search & replace a text from a file using perl is very easy.
perl -pi -w -e ‘s/search/replace/g;’ *.php
–e means execute the following line of code.
To getting the Real IP Address of client in PHP is very simple using following function, even if user is behind a proxy server.
1. Background Properties
background -> background
background-attachment -> backgroundAttachment
background-color -> backgroundColor
background-image -> backgroundImage
Php has file related functions , which helps us to get complete details of the file creation and modification etc
// filemtime is a php function which gives us the last modified info of any file
$file_modified_on = date(“l,
I got the “Openx M2M authentication error password invalid code 823” & I realise that many openx.org ad server users comes across this message when they login to their administration after an upgrade.
You might already know that PHP’s in_array() function matches the string needle case sensitive way. But for matches the string needle case insensitive way in PHP there is nothing. It is quite simple. Here it is: