A quick guide on how to set up a website in Docker

Hello everyone! I will try to describe, without going into complicated terms, how to quickly and easily raise a site in Docker using docker-compose. First step First, we need the site itself. Let's assume that we already have some index.php that sends "Hello world" to the browser. Let's also assume that you already have Docker... Read more...

PHPExcel - Trying to access array offset on value of type int

Hello everyone! Recently, after updating the system to PHP 7.4, along with all that it implies, an interesting problem happened - the thing that was collecting reports started throwing errors at me in the form of Trying to access array offset on value of type int . Oddly enough, the problem itself lies in the PHPExcel library, which for... Read more...

How do I use Linux commands in PHP?

It will be a short article, because there is nothing much to tell. I'll probably talk about the commands on the windows servers sometime next time. Today about linux. The shell_exec feature will be used, accepting one option with a string in which the server command is located. By the way, the team does not work in a safe mode. Thanks... Read more...

Reading IMAP emails via PHP

Actually, this is not complicated, but it has a rather large list of what it might be needed for. I personally used it to send to myself in VK notifications about the release of new episodes of my favorite series. These notifications just come to one of my mailboxes. I already mentioned how to write messages in VK through PHP in one of the... Read more...

Why don't you add your code to functions.php and what to do

Why shouldn't I add my code to functions.php? Why did I touch on this topic? It's as simple as that. Very often I see tips on the internet, like "add this code to the functions.php file of your topic and will %what you Googled%". This is a very frequent response, only the code that needs to be added changes. And this is the most... Read more...

How to create a bot in vk or VK Callback API

Hello! Recently, on one project, I had to come across a VK bot that “lives” in group messages. Prior to that, I had the most diverse experience in creating bots from personal pages. In order for the bot to be able to respond normally to messages, one had to do all kinds of perversions with crowns, timers, “remembering” messages and... Read more...

How do I use wordpress outside of wp itself?

I decided to write a small (or large) series of articles with regards to wordpress. The first thing that was a little difficult to find information on Google and what you had to get to yourself was: How to use wordpress functions outside of wordpress itself? For those who are especially quick and do not want to read tons of letters: You just... Read more...

VK API. Authorization for the site

In order not to write a very large article, I reduced the code only to the necessary minimum. Those. no checks, powerful filters for errors and other things. Only that which is directly necessary for authorization, for understanding what is happening. Also, the article is designed to have at least basic knowledge of PHP and HTML. Details will... Read more...