๐Ÿ“ Category

Web Development Posts

Browse all posts filed under Web Development.

26Posts
2Categories
254Total Views
PHP Regex: preg_match, preg_replace and Capture Groups๐Ÿ“ Web Development

PHP Regex: preg_match, preg_replace and Capture Groups

Delimiters, character classes, anchors and capture groups โ€” the parts of PHP regex you actually use, and the one job you must never give it.

web-development
Read More โ†’
PHP JSON: json_encode and json_decode Explained๐Ÿ“ Web Development

PHP JSON: json_encode and json_decode Explained

Two functions carry almost every API you will write. json_encode, json_decode, the array-or-object rule, and why a silent null is not an empty result.

web-development
Read More โ†’
PHP Cookies: setcookie, $_COOKIE and Expiry๐Ÿ“ Web Development

PHP Cookies: setcookie, $_COOKIE and Expiry

setcookie() writes a header, not a variable, which is why the cookie you just set is not in $_COOKIE until the browser sends it back on the next request.

web-development
Read More โ†’
PHP Date and Time: Format, Parse and Compare Dates๐Ÿ“ Web Development

PHP Date and Time: Format, Parse and Compare Dates

date() to print it, strtotime() to read it, DateTime to do arithmetic on it โ€” and the timezone setting behind most off-by-five-hours bugs.

web-development
Read More โ†’
PHP switch: Cleaner Branching Than if else๐Ÿ“ Web Development

PHP switch: Cleaner Branching Than if else

One variable, a list of values, and the missing break that catches everybody once. PHP switch explained, plus loose comparison and PHP 8's match.

web-development
Read More โ†’
PHP Login System: Register, Log In and Protect Pages๐Ÿ“ Web Development

PHP Login System: Register, Log In and Protect Pages

Forms, sessions, a database and hashing finally come together. Registration, login, a page only members can reach, and a logout that clears all three of the things a session leaves behind.

web-development
Read More โ†’
PHP Security: SQL Injection, XSS and Password Hashing๐Ÿ“ Web Development

PHP Security: SQL Injection, XSS and Password Hashing

Four habits you build into ordinary code: never let user input become SQL, never let it become HTML, never store a password, and never assume a request came from your own page. Each problem shown breaking, then fixed.

web-development
Read More โ†’
PHP include and require: Reuse Code Across Pages๐Ÿ“ Web Development

PHP include and require: Reuse Code Across Pages

Every site repeats its header and footer on every page. include and require are how you write that markup once and pull it in everywhere โ€” with the four keyword variants and the path mistake that only shows up in production.

web-development
Read More โ†’
PHP File Upload: Handle $_FILES Safely๐Ÿ“ Web Development

PHP File Upload: Handle $_FILES Safely

Learn PHP file upload the safe way: read $_FILES, verify the true type with finfo, limit the size, and rename before storing. A full beginner guide.

web-development
Read More โ†’