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.
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 this kind of thing can be an XSS vulnerability. In my case, it’s not, because I’m not using it for anything other than an abstraction convenience for my own hand-written strings.
Since then, we’ve had a couple of good articles … Read article “A Follow-Up to PHP 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 templating engine.… Read article “PHP is A-OK for Templating”
I had a situation where I needed to do that in “raw” PHP the other day, so I’m just documenting it here. … Read article “PHP Templating in Just PHP”
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, which a sales team can use to track customers through the entire sales cycle.
We’ll be creating a simple CRM system for salespeople … Read article “PHP For Beginners: Building a Simple CRM from Scratch”
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 CDN. We’ve discussed this several times at CSS-Tricks. It’s easy in that you aren’t rewriting a codebase or hand-editing content, but it’s an area of performance many of us might overlook because, well, hosting, servers and cPanels, oh my!
I had great fun and the workshops were really cool – you select an exercise, read the problem … Read article “PHP School (Learn PHP Through Command Line Workshops)”
I’ve searched for this three times this week, so I figured I’d better make sure I have a copy of it.
python -m SimpleHTTPServer 8000
Navigate to the project directory in the terminal and do that command. Then http://localhost:8000 will server up that directory (as in, it’s `index.html` file).
python3 -m http.server --cgi 8080
php -S localhost:2222
… Read article “Start a Web Server With One Terminal Command on OS X”
npm i -g serve serve
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 a CMS to power a website (WordPress, Drupal, etc.), it doesn’t hurt to peek under the hood and get a feel for how these systems work.
To get our feet wet as back-end developers, we’ll be creating a simple PHP … Read article “PHP for Beginners: Building Your First Simple CMS”
Polls are fun! They can help engage the readers of your site and give both you and the poll-taker valuable information. Let’s walk through building a poll from scratch. All the way from the Photoshop design to the PHP / MySQL that powers it. Here is what we will build:… Read article “How To Design and Create a PHP Powered Poll”