14 10, 2015

PHP Code | Connect to remote SFTP location on Windows

2018-02-08T06:10:55+00:00October 14, 2015|Linux, Windows, Mac, Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|Comments Off on PHP Code | Connect to remote SFTP location on Windows

|
| ByWebner

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

13 10, 2015

Amazon S3 and PHP | How to list only top level folders in a bucket

2017-01-16T12:50:34+00:00October 13, 2015|Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

Sample code: $result= $client->listObjects(array("Bucket" => $bucket,"Delimiter" => "/")); $files = $response2->getPath('Contents'); foreach ($result['CommonPrefixes'] as $object) { echo $object['Prefix']'; } This will list only the top level folder. If we do not use delimiter with listObject function then it will give [...]

5 10, 2015

Apache – Use a custom domain name instead of localhost

2018-01-11T09:34:26+00:00October 5, 2015|Linux, Windows, Mac, Mobile, Web Development|0 Comments

|
| ByWebner

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

23 09, 2015

How to Remove Empty Objects From Array In CakePHP

2016-06-24T09:35:38+00:00September 23, 2015|Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

In CakePHP, to remove empty or ‘false’ values from an Array, use CakePHP’s static ‘filter’ method contained in ‘Hash’ class: $sampleArray = [ , false, true, 0, ['one, 'two, 'three’] ] $sampleArray = Hash::filter($sampleArray); Here’s the array after filter method [...]

24 08, 2015

Digital Signature using Zoho Creator

2018-02-08T05:53:13+00:00August 24, 2015|Web Development, Zoho|0 Comments

|
| ByWebner

Digital signatures/online signatures, as we all know, play a very important role in online industry. The simple idea of using a digital signature results in reducing the paperwork and saves time.  Zoho Creator has provided “signature” feature for online signing [...]

Go to Top