As I have a website, I started to check out google ads and how they work. I was also curious if there was a way to generate views on a page. So this curiosity led me to write my own page view generator. First of all, I needed a way to simulate real life user […]
Coding
Handling tree structures in PHP
What is a tree? A tree is a scructure of data used for categories, showing hierarchy and so on. In web applications usually the most used case is creating category hierarchy, menu hierarchy or page hierarchy. Currently there are a lot of ways to create tree scructures in PHP, but we will use just one […]
How to structure a basic PHP file
When creating code, PHP gives us a huge freedom. Since PHP is compiled at runtime, it can be mixed with any text inside the file. Then, when the code is compiled, the content of the file gets to the output (usually your browser). If you create a small project, using this technique is totally ok. […]