Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
php

13 Articles
{
,

}
Direct link to the article PHP Date and Time Recipes
dates locales php

PHP Date and Time Recipes

Dealing with dates and times is one of those things that can frustrate programmers a lot. At the same time, they are fundamental to software development, used from everything from meta and how things are ordered to time-based triggers and …

Avatar of Arjuna Sky Kok
Arjuna Sky Kok on Nov 18, 2021 (Updated on Jan 5, 2022)
Direct link to the article Building a Form in PHP Using DOMDocument
DOMDocument forms php

Building a Form in PHP Using DOMDocument

Learn how to build an HTML form in PHP using DOMDocument — a structured and expressive way to build logical markup.
Avatar of Jonathan Land
Jonathan Land on Sep 14, 2021
Direct link to the article Smarter Ways to Generate a Deep Nested HTML Structure
haml HTML JavaScript php preprocessing pug

Smarter Ways to Generate a Deep Nested HTML Structure

A look at using HTML preprocessors to generate HTML, particularly deeply nested HTML, which is useful for a variety of interesting browser art and experimentation.
Avatar of Ana Tudor
Ana Tudor on Oct 20, 2020 (Updated on Jul 7, 2021)
Direct link to the article A Follow-Up to PHP Templating
php templating

A Follow-Up to PHP Templating

Not long ago, I posted about PHP templating in just PHP (which is basically HEREDOC syntax). I’m literally using that technique for some super basic templating I needed to do on this very WordPress site. The main pushback was that …

Avatar of Chris Coyier
Chris Coyier on Feb 28, 2020 (Updated on Feb 29, 2020)
Direct link to the article PHP is A-OK for Templating
php templating WordPress

PHP is A-OK for Templating

PHP templating often gets a bad rap for facilitating subpar code — but that doesn’t have to be the case. Let’s look at how PHP projects can enforce a basic Model, View, Controller (MVC) structure without depending on a purpose-built …

Avatar of Chris Geelhoed
Chris Geelhoed on Feb 4, 2020
Direct link to the article PHP Templating in Just PHP
php

PHP Templating in Just PHP

With stuff like template literals in JavaScript and templating languages, like JSX, I’ve gotten used to wanting to write my HTML templates in one nice chunk and sprinkling in variables wherever I need them.

I had a situation where I …

Avatar of Chris Coyier
Chris Coyier on Dec 26, 2019
Direct link to the article PHP For Beginners: Building a Simple CRM from Scratch
crm php

PHP For Beginners: Building a Simple CRM from Scratch

Customer Relationship Management (CRM) is a system that manages customer interactions and data throughout the customer lifecycle between the customer and the company across different channels. In this tutorial, we are going to build a custom CRM in PHP, …

Avatar of Richard Chen
Richard Chen on Mar 1, 2017 (Updated on Nov 14, 2022)
Direct link to the article Adding and Leveraging a CDN on Your Website
cdn performance php

Adding and Leveraging a CDN on Your Website

If you’ve been working around web development for a while, you’ll know that the web has a need for speed. The truth is simple: speed matters and faster is considered better.

One “easy win” for increasing performance is using a …

Avatar of David Attard
David Attard on Nov 16, 2016 (Updated on Jan 25, 2017)
Direct link to the article PHP School (Learn PHP Through Command Line Workshops)
command line composer php php school

PHP School (Learn PHP Through Command Line Workshops)

Whilst attending a local meet-up last year in Nottingham, UK, my friends and I were introduced to the concept of NodeSchool. NodeSchool workshops are small applications which run in the terminal and exist to teach you various topics related …

Avatar of Aydin Hassan
Aydin Hassan on Jun 24, 2016 (Updated on Mar 6, 2017)
Direct link to the article Start a Web Server With One Terminal Command on OS X
php python web server

Start a Web Server With One Terminal Command on OS X

I’ve searched for this three times this week, so I figured I’d better make sure I have a copy of it.

Python 2:

python -m SimpleHTTPServer 8000

Navigate to the project directory in the terminal and do that command. Then …

Avatar of Chris Coyier
Chris Coyier on Aug 27, 2015 (Updated on Jan 24, 2019)
Direct link to the article PHP for Beginners: Building Your First Simple CMS
CMS php

PHP for Beginners: Building Your First Simple CMS

The Magic of PHP + MySQL

It’s safe to say that nearly every website that’s up-to-date these days is using some form of content management system (CMS). While there are a ton of great free options that provide us with …

Avatar of Jason Lengstorf
Jason Lengstorf on Jan 5, 2009 (Updated on Mar 20, 2017)
  • 1
  • 2
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top