Skip to main content
Being Idea Innovations
All Articles
Category

PHP

12 articles in this category

Google reCAPTCHA with PHP: v2, v3 and the Verification Step Everyone Skips
PHP

Google reCAPTCHA with PHP: v2, v3 and the Verification Step Everyone Skips

Implement reCAPTCHA properly in PHP — server-side token verification, handling v3 scores, why the checkbox alone protects nothing, plus privacy-friendly alternatives like Cloudflare Turnstile and hCaptcha.

5 September 20186 min read
Facebook Login with PHP and MySQL: A Secure 2026 Implementation
PHP

Facebook Login with PHP and MySQL: A Secure 2026 Implementation

Implement Login with Facebook the current way — the Authorization Code flow with a state parameter, server-side token exchange, storing users safely, and the account-linking rule that stops Facebook login becoming account takeover.

1 August 20186 min read
PHP Cookies: setcookie(), SameSite, and What Changed in 2026
PHP

PHP Cookies: setcookie(), SameSite, and What Changed in 2026

Set, read, update and delete cookies in PHP using the modern array syntax — with SameSite, Secure and HttpOnly explained, the __Host- prefix, signing values against tampering, and where third-party cookie deprecation leaves you.

16 July 20186 min read
PHP Sessions Done Properly: Security, Locking and Correct Logout
PHP

PHP Sessions Done Properly: Security, Locking and Correct Logout

How PHP sessions really work — preventing session fixation and hijacking, the cookie settings that matter, why session_write_close() fixes slow concurrent requests, and the three-step logout most tutorials get wrong.

30 June 20186 min read
OAuth Social Login with Google, Facebook and X: A Secure Implementation Guide
PHP

OAuth Social Login with Google, Facebook and X: A Secure Implementation Guide

Implement social login correctly using the Authorization Code flow with PKCE — the state parameter that prevents CSRF, why the implicit flow is deprecated, popup vs redirect handling, and the account-linking mistake that lets attackers take over accounts.

27 June 20187 min read
Stripe Payment Integration in PHP: Payment Intents, SCA and Webhooks
PHP

Stripe Payment Integration in PHP: Payment Intents, SCA and Webhooks

Integrate Stripe with PHP the way it works today — Checkout Sessions and Payment Intents, why raw card fields put you in PCI SAQ D scope, handling Strong Customer Authentication, and confirming payments with webhooks rather than the redirect.

19 May 20185 min read
How to Increase the Maximum File Upload Size in PHP (and Why Your Change Isn't Working)
PHP

How to Increase the Maximum File Upload Size in PHP (and Why Your Change Isn't Working)

Raise PHP's upload limit properly — which method works for mod_php, PHP-FPM and CGI, the five directives that all have to agree, the nginx setting nobody mentions, and why ini_set() can never change upload_max_filesize.

4 May 20186 min read
PayPal Webhooks in PHP: The Modern Replacement for IPN
PHP

PayPal Webhooks in PHP: The Modern Replacement for IPN

IPN is deprecated. Here is how to receive and verify PayPal payment notifications with Webhooks in PHP — signature verification, idempotency, sandbox testing, and why you must never trust the browser redirect to confirm a payment.

1 May 20186 min read
Generate a Valid RSS Feed with PHP (Escaping, GUIDs and Caching)
PHP

Generate a Valid RSS Feed with PHP (Escaping, GUIDs and Caching)

Build an RSS 2.0 feed in PHP that actually validates — correct XML escaping so one ampersand cannot break the whole document, stable GUIDs, the self-referencing Atom link validators require, and conditional GET support.

26 February 20185 min read
Find a Visitor's Location from Their IP Address in PHP (Safely)
PHP

Find a Visitor's Location from Their IP Address in PHP (Safely)

IP geolocation in PHP done properly — why unserialize() on a remote response is a remote code execution risk, how to get the real client IP behind a proxy or CDN, plus caching, accuracy limits and GDPR.

23 January 20186 min read
A Secure Registration and Login Form with PHP (No jQuery)
PHP

A Secure Registration and Login Form with PHP (No jQuery)

Build a registration and login form using native HTML validation and the Constraint Validation API, with a PHP backend that hashes passwords correctly, prevents user enumeration, and defends against CSRF and session fixation.

3 January 20186 min read

Want to talk tech?

Join 500+ engineering leaders who get our monthly insights on building great software.

No long-term contracts
Senior engineers only
US · AU · NZ timezone coverage
14-day trial on retainers