PHP | Deleting files from local machine (unlink(): No such file or directory)

| By Webner

Assume following is the path on your system in which you want to delete some files through code (unlink function): C:\wamp\www Now if we use the same address in source variable (“C:\wamp\www”), it gives the following error: unlink(): No such

Mysql Workbench | How to copy Remote database into your local machine

| By Webner

1.  Select Database: Schema Transfer Wizard from the Mysql workbench menu bar. You will see schema transfer wizard on your screen as below: Click on Start the Wizard option. 2.  Connection Selection: Now select your source and destination location to copy database:

Linux | How to grep only uncommented contents from any configuration file

| By Webner

Problem : How to grep only uncommented contents from any configuration file which is big in size, has many comments and blank lines Solution: This can be achieved by following single command : # grep -v ‘^$’ /etc/httpd/conf/httpd.conf | grep

MySQL | Upgrade MySQL 5.5 to 5.6 in Ubuntu 14.04

| By Webner

MySql 5.5 is the default version for Ubuntu 14.04 Steps to Upgrade the mysql-server If you have existing database in Mysql 5.5. It should be migrated automatically. Take the backup of existing databases: mysql> mysqldump –lock-all-tables -u root -p -all-databases

Java | Configure Tomcat as a service on linux

| By Webner

Configure Tomcat service in Linux: These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown. Running tomcat as a

How to use SimpleSAMLPhp as a Service Provider for authenticating users?

| By Webner

How to use SimpleSAMLPhp as a Service Provider for authenticating users? Some Basic steps to start using simplesamlphp. 1. Download stable version of SimpleSAMLphp from this link: Click here 2. Go to the directory or your workspace where you want

Eclipse | Undo deleted file in Eclipse

| By Webner

Problem: Undo deleted file in Eclipse Solution: We were working on a project in Eclipse. Accidentally one of the PHP files got deleted in which code was written. Eclipse does not use the Linux ‘Trash’ but keeps local history from where we