Building real-time chat app using WebSockets with AWS API Gateway and Lambda

|
| By Navneet Kashyap

We can build many real-time applications such as chat applications, multiplayer games, financial trading platforms, and collaboration platforms using WebSockets with AWS API Gateway, Lambda, and dynamoDB. In this blog we will learn how to build real-time applications using WebSockets

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

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

| By Webner

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