Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)

| By Webner

Problem Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple

PHP Code | Connect to remote SFTP location on Windows

| By Webner

We need to use the phpseclib library to connect to SFTP server: $sftp = new Net_SFTP(‘www.webnersolutions.com’); if (!$sftp->login(‘user_name’, ‘password’)) { exit(‘Login Failed’); } $this->downloadfiles($sftp->nlist()); //to download all files on remote root folder

Apache – Use a custom domain name instead of localhost

| By Webner

By following these steps you can run your local machine’s website using a custom domain name instead of localhost: 1. Edit apache configuration file: sudo gedit /etc/apache2/sites-available/000-default.conf   add ServerName property as follows (you can add it just below DocumentRoot,