In general, there is no big problem and it is quite easy to change permissions of a directory to 0777 or something different, you simply do (if you create)
mkdir('/project/data/videos', 0777) but this might not work…
Continue reading “How to change directory permissions in PHP”
If you ever need to escape special char with a backslash and then to escape the backslash in shell_exec() or exec() PHP functions (not only).
Continue reading “Escape backslash and special char in PHP – command line”
I had small issue searching for the right way connecting to Google Cloud APIs, that’s why I want to show you how to connect with an example for Vision API, you can find that the steps are easy but I will list them.
Continue reading “How to connect to Google APIs”
After you update your firmware of the UNO, the next step is to connect it to your WiFi, it is hard to find how exactly you should do that, that’s why I will list short steps to do that.
Continue reading “Arduino UNO WiFi connect to WiFi”
I was trying to connect to my new Arduino UNO WiFi R3 to my WiFi network in home and had to spend big amount of time in searching of errors like
Can't communicate with programmer!;
programmer is not responding;
WiFi shield not present OR
Continue reading “Arduino UNO WiFi R3 WiFi Firmware updater – IDE 1.8.2+”
I have found very good explanation what is the difference between
$this->partial('script.phtml', ['article' => 'value'])
and it is still valid for Zend Framework 3, here it is
If you are new to Zend Framework you might land on this error after trying to use MvcTranslator module
Fatal error: Method Zend\View\Helper\HeadTitle::__toString() must not throw an exception
Continue reading “Zend Framework 3: HeadTitle() __toString() error”
SQS stands for Simple Queue Service, is a highly scalable and reliable distributed queueing system, which can be used to make applications asynchronous.
I will show you the simplest way of integrating the SQS, installing AWS SDK, Creating a Queue and a Worker to manage the queues and push tasks to Queues.
Continue reading “How to integrate Amazon AWS SQS”
If you have to use one of their services with the new PHP SDK 3.31 you will have to first install it using composer
composer install aws/aws-sdk-php
then you have to
Continue reading “How to use Amazon PHP AWS SDK”
Nowadays the performance of a website is very very important for everything, user experience, Google and so on.
I have found nice PDF from one PHP conference in 2014 by Gary Hockin, this guy is Zend Framework contributor and made these awesome instructions how to optimize our Zend Framework 2 and how to use best practices.
Continue reading “Zend Framework 2: performance optimization”