Programmers of the world, unite!

Welcome to Garth.cz. If you are a programmer or you are interested in programming, programming languages and related topics, you will probably find some useful information here.

I work on the site in my spare time and add content gradually, so please be patient with the categories that fill up very slowly. If you would like to share your own findings, tips or experience, feel free to write to me.

Local spells: PHP, MySQL, (x)HTML, JavaScript, www and more

Broadly speaking, we talk about all IT topics you can come across in the real or virtual world. If it is worth a click, it is worth a conversation.

Latest articles on Garth.cz

CSS · Modern CSS

Scroll-driven animations

A bar showing how much of an article you have read, a header shadow that appears once you leave the top of the page, cards that appear as they enter the window. This used to mean JavaScript and listening to the scroll event. Today a few lines of CSS are enough: the animation progress follows the scroll position, not time.

read more →
PHP · PHP website security

PHP2Shell: critical flaws in PHP itself

In October 2026, fixes were released for two critical flaws in PHP itself, known as PHP2Shell. An attacker can use them to run their own code on the server without logging in, even before your website's code starts. Which versions are affected, how to fix them in new and old PHP, and what to do when you cannot update right away.

read more →
AI · Introduction to AI

What a language model is and how it works

Tools such as Claude, ChatGPT or Gemini are built on so-called large language models (LLMs). What a model actually does, why it can write text as well as code and where its natural limits are.

read more →
AI · Introduction to AI

Tokens and the context window

Language models do not work with characters or words but with tokens. The number of tokens determines the price as well as how much text the model can hold at once. What that means in practice and why answers can get worse in a long conversation.

read more →
AI · Introduction to AI

Why AI makes things up (hallucinations)

AI sometimes answers confidently and to the point – and yet wrongly. It makes up a nonexistent function, parameter or source. Why this happens and how to catch such errors in time.

read more →
AI · Coding with AI

How to code with an AI assistant

AI can write a function, find a bug or explain unfamiliar code within moments. For the result to really save time, it pays to have a workflow – from the prompt through review to tests.

read more →