Quantcast
Channel: PHP – Return True
Browsing all 33 articles
Browse latest View live

WordPress: PHP CGI Vs PHP FCGI

This is a little bit of a niche post, but it's all about a problem I had recently with my site. It was all to do with WordPress and how it responded when running under PHP as FastCGI instead of CGI.

View Article



Writing Text On An Image With GD

Writing text on your images using GD is a handy ability to have. Maybe you are developing an imagehost or you have a project where you need to place text on an existing image. Whatever the reason here...

View Article

Simple Data Sanitization with preg_replace

Sanitizing data is a very important part of any server side scripting language, and it's no different for PHP. So here is one simple way of sanitizing data using the dreaded REGEX.

View Article

Measuring The Speed Of PHP Scripts

It's always useful to run speed tests on your scripts to check how fast they are running, and so that you can then measure any improvements when you are optimizing scripts. Here is how I do it, plus a...

View Article

Store Multiple Values In A Single Row MySQL – Revisited

I originally wrote a post about 2 year ago explaining how to store multiple values in a single MySQL row. Now I have more experience with PHP/MySQL I have decided to revisit this topic to clear up any...

View Article


PHP Code Snippet: Quote of the Day Picker

While I've got a few minutes spare here is a little snippet of code that picks a random quote that changes every day from an array you provide.

View Article

Tip Of The Day: Convert Paragraphs To Returns

This may seem completely pointless, but I needed to do this for a client & it confused me for a while.

View Article

WordPress Tip: rewind_posts() Not Working

I recently came across a small quirk when using rewind_posts(). Hopefully this small tip will save you the same confusion I suffered.

View Article


Creating A WordPress Plugin Using OOP Techniques

I’ve been receiving a lot of requests for a tutorial showing how to write a plugin using Object Oriented Programming techniques, and so I thought I would give it a go while I have a few minutes spare....

View Article


Cleaning Up Your Code – A Developer’s PHP Tip

Today I thought I’d give you one of my famous developers tips. All right, so they aren’t famous. Yet! I’m sure, if you are a PHP developer, you have created a loop many a time. They are useful for all...

View Article

AngularJS and Laravel Shopping List Application – Part 2

As promised here is the second part of building our Shopping List Application with the excellent AngularJS the JavaScript MVW framework. In this final part we are going to look at how to extend our...

View Article

Using PHP & MySQLi With A MySQL Database Part 3

This third part of explaining how to use PHP & MySQLi was inspired by ‘abr4xas’ who commented on part 2 of this tutorial. He/she asked how they would go about safely inserting data from the $_POST...

View Article

Creating A Simple Website Using SensioLabs (Symfony) Silex and Twig

It’s been a long time since I last wrote a tutorial, all I can do is apologise for the long gap and tell you that it was mostly due to …

View Article


Adding SwiftMailer to a Simple Website Using Silex and Twig

In our last tutorial we looked at how to make a very simple website using Silex and Twig. If you haven’t yet took a look I encourage you to do …

View Article

Reorder A Numerically Keyed Array Using Array Splice?

So today I was given an interesting task by a client. I had the output of a certain function. That function returns an array containing the days of the week …

View Article


Simple Website with Silex and Twig: Adding Form Validation

In that last part of our tutorial we looked at how to add Swiftmailer to the contact form of our simple Silex website. This time we are going to look …

View Article

Using Composer To Stop Reinventing The Wheel

Let’s say you are developing a cool web application in PHP. Maybe it’s a cool, but very simple gallery. You build out your album system, then suddenly you hit a …

View Article


Creating A WordPress Plugin With Composer and the Mailgun API

Composer is an extremely powerful tool for PHP developers and I love it, but how about when you are building a WordPress plugin? WordPress has a lot of built in …

View Article

Fill MySQL Table With Data From CSV

It’s probably been in every PHP ‘test’ going and is a very commonly asked question, but it’s something I’ve never covered here at Return True before. So what exactly is …

View Article

Adding Content To Yoast SEO Analysis Using YoastSEOJS

I recently received a request from a previous client asking if I could debug why their custom field content had stopped being analysed by their Yoast SEO plugin. It turns …

View Article
Browsing all 33 articles
Browse latest View live




Latest Images