delete
Find and Replace Specific Occurrence across Multiple Files

Find and Replace Specific Occurrence acr...

Sometimes you might need to find and replace specific occurrence¬† across multiple files. In linux system you can do your task with just a single command line.¬† Imagine you have a large and multiple files ( txt, php, html, anything ) and you want to replace all the words , no doubt it’s very time consuming . With ‘sed’ command you can complete your task pretty easily. Below is example, if you like to change all the php files in a specific directory find . -name "*.php" -print | xargs sed -i 's/foo/bar/g' 1 find . -name "*.php" -print | xargs sed -i...
delete
Set Cookies From Different Domains

Set Cookies From Different Domains

If you manage multiple domains , but need to share any cookies value across the domains , this might be great starting point to set cookies of a domain from a different domain. Later you can call that cookie value from respective domain. Think about the scenario MSN setting the login status cookie on the various domains of theirs (Hotmail, live.com, msn.com). One thing you have keep in mind , cookie can’t be set in a different domain from another domain directly. But there is workaround for issue and the workaround is quite easy than you think. Suppose You have...
delete
PHPMYADMIN access Denied , Unable to start Php sesssion

PHPMYADMIN access Denied , Unable to sta...

Have ever face followiing phpmyadmin error for apache cpanel .   Access Denied Unable to establish a PHP session. If you believe that this is in error or inadvertent, contact your system administrator and ask them to review your server settings. This error occurs mostly because of improper permission or ownership of a usr’s tmp folder . Because everytime you login to phpmyadmin user session is created in tmp folder . If your tmp folder located under username directory having wrong permission or ownership phpmyadmin can not create session and throw the above...
elgntwplk