HTML / PHP sites

Website Not Mobile Friendly: Fix Missing Viewport and Layout Problems

The page looks tiny or broken on phones. Add the viewport tag and make the layout flexible.

Reference guide · HTML / PHP sites · Speed & performance · 2026-11-21

Site Broke After a PHP Version Upgrade: Deprecated and Removed Functions

Your host moved you to a newer PHP and the site now errors. Roll back for now, then update the code or plugins that are too old.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

PHP Database Connection Errors (mysqli and PDO): Access Denied, Unknown Database, Connection Refused

Read the exact message and match it to the cause: credentials, host, database name or server down.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

PHP File Upload Not Working: Size Limits, Permissions and Form Settings

Uploads fail silently or with an error code. Check the form, PHP limits and folder permissions.

Reference guide · HTML / PHP sites · Forms, plugins & updates · 2026-11-21

PHP Site Shows a Blank Page or 500 Error: How to See the Real Error

A PHP page is blank or gives error 500. Turn on error logging safely, read the message and fix the line it names.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

PHP Contact Form Not Sending Mail: Use SMTP Instead of mail()

Your hand-coded contact form runs but no email arrives. Replace mail() with PHPMailer and an authenticated SMTP mailbox.

Reference guide · HTML / PHP sites · Email problems · 2026-11-21

HTML Website: CSS or Images Not Loading After Upload

Your page shows but without styling or pictures. Wrong paths, file name case and folder mistakes are the usual causes.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

Stop Spam From Your Contact Form (HTML, PHP and WordPress)

Bots fill your form with junk. Add a hidden field, server-side checks, rate limits and a CAPTCHA if needed.

Reference guide · HTML / PHP sites · Security & hacks · 2026-11-21

How to Add a Contact Form to a Static HTML Website Without Writing PHP

Static sites cannot send mail by themselves. Compare form services and a small PHP script, and keep spam out.

Reference guide · HTML / PHP sites · Forms, plugins & updates · 2026-11-21

Redirect HTTP to HTTPS and www to non-www With .htaccess

Visitors reach your site at several addresses. Redirect everything to one address with a few .htaccess rules, without causing a loop.

Reference guide · HTML / PHP sites · Domain, DNS & SSL · 2026-11-21

Favicon Not Showing in the Browser Tab or Google Results

Your site icon does not appear. Check the file, link tag, size, caching and what Google requires.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

404 Not Found: How to Find and Fix Broken Links on Your Site

Visitors land on pages that do not exist. Find the broken links, redirect old addresses and show a helpful 404 page.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21

How to Read the Browser Console and Network Tab to Find Website Problems

A beginner's guide to F12 developer tools: finding broken files, blocked requests and script errors in a few minutes.

Reference guide · HTML / PHP sites · Site down or error screens · 2026-11-21