A complete self-hosted analytics pipeline for a Pelican static site: a PHP tracker with bot detection, a SQLite view that hides pollution, a retroactive backfill tool, and a deterministic two-feed sync that keeps counts in markdown frontmatter. No third-party provider, no client-side telemetry,...... Read More
All tags » php
1-12 / 12 articles
1K, 1.234M Human readable formatted numbers in PHP, Python, C and C++... Read More
in this 7th part of this tutorial series about PHP object oriented programmig, we will add a very important part of any website, an input field to search the website, in this particular website the input search field will help us search the wallpapers and we will add an autocomplete component...... Read More
At this point we will start adding some HTML code to our website. and our website will start looking beautiful little by little as we add more features to it... Read More
We will use the MySQL function TIMESTAMPDIFF, the process is simple enough : we check the difference between the last time a user identified by its IP adress viewed our page and the current time, if the said difference is greater than a defined value, we increment the view.... Read More
A Tag cloud is a section of your website that shows a cluster of words that are different in size according to how many times they appear in your website.... Read More
For a Blog or any website to thrive and grow, it must have a way to interact with its visitors, to get their opinions, expectations and criticism. And what a better way to do all this than a section for comments for the visitors and customers to express their opinions and make their voice heard.... Read More
We will decide how our website will Handle the URLS, to comply with Google recommendations for building the urls, we will not use GET parameters, instead we will build our own logic to handle the parts of our URLS... Read More
Every php file you create must be included at some point before you use it. but as the website becomes bigger and the number of files increases, it becomes extremely difficult to keep track of the files. if you can't organize your code you might find yourself including the same file multiple...... Read More
in this 3rd part of our series of tutorials about php programming language, now we are starting to fetch data from our database and we are getting closer to a functioning website.... Read More
In this tutorial we will make a class that will make the connection to our sql server. and all other classes will inherit it and extend it for more features. For all our database operations we will use prepared statements as they are more secure against mysql injection.... Read More
For this tutorial, I assume that you have a basic knowledge of php and classes and objects, the programming language doesn't matter, for the principle of classes and object is the same. What will be the key point of this tutorial is to show you how to implement these abstract notions in a real...... Read More