Many, many years ago I was a Moderator in the PHP area of the "Buschhacker" forum, l8rs even a "Technical Administrator". So maybe I didn't forget that much about PHP!?
Since I just wrote another .php
script for my website
and I hadn't a repository for it, I created this new one. That's the reason.
Note
Since this repository has just been created, I didn't already collected so much scripts for here (even if I created really a mass of them..). So this one will hopefully grow in time (today my heart doesn't beat so much for PHP than before ~20 years...)!
- [2025-05-01] Fixed a bug in
rewrite
.php, v0.5.1; - [2025-04-28] First 'useful' script:
curl
.php, v0.1.2; - [2025-04-10] Just created this repository.
Example for HTTP requests in PHP via the cURL Library.
- Version v0.1.2 (created 2025-04-28)
This script cleans and rewrites HTTP querys in some ways which are useful for me.
- Version v0.5.1 (updated 2025-05-01)
The main reason was: the JavaScript part of my websites utilizes
both the ?
search and #
hash parts of the URL in my own way. The ?fbclid
etc. disturbed my logics.
Tip
Maybe of interest: my own isIP()
, isIPv4()
and isIPv6()
functions.
I could have used filter_var()
, but this ain't that funny. ^_^
So the most important thing this script does is to remove any ?fbclid
and ?gclid
parameter in the URL/Query.
//mit erklaerung: ich wollte das selbst sauber loesen,
//ohne integrierte php-funktionalitaet. grund: meine
//website und anderes interpretieren den query-string
//selbst.. da brauch ich 'ne "saubere" loesung quasi..
//bspw. koennen bei mir auch verteilt mehrere '?' auf-
//tauchen.. und manche params duerfen nicht mit '=' enden,
//und sowas halt. ^_^
The Copyright is (c) Sebastian Kucharczyk, and it's licensed under the MIT (also known as 'X' or 'X11' license).