Browsing Category

PHP

The Problem with PHP’s Prepared Statements
videos

The Problem with PHP’s Prepared Statements

PHP’s prepared statements (for database access) are fantastic. Not only do they help secure your database queries, but they’re also particularly more efficient for larger products. However, there are a couple issues that appear to make these methods less flexible than we’d hope. For one, we must utilize the bind_result method, and pass in a specific number of variables. However, what happens when this code is within a class, and we won’t immediately know how many variables to pass? Luckily, there’s a solution! I’ll show you what it is in today’s video tutorial.

CodeIgniter from Scratch: Profiling, Benchmarking & Hooks
videos

CodeIgniter from Scratch: Profiling, Benchmarking & Hooks

In this 15th episode of the series, we are going to learn about three subjects: Profiling, Benchmarking and Hooks. You can use these tools to analyze your CodeIgniter applications performance, and figure out what part of the code you need to optimize. We are also going to make even further improvements to the Profiler library to suit our needs.


This entry is part 15 of 17 in the CodeIgniter From Scratch Session
How to Authenticate Users With Twitter OAuth

How to Authenticate Users With Twitter OAuth

Beginning August 16th, Twitter will no longer support the basic authentication protocol for its platform. That means the only way to authenticate users will be through a Twitter application. In this tutorial, I’ll show you how to use Twitter as your one-click authentication system, just as we did with Facebook.

How to Use CakePHP’s Access Control Lists

How to Use CakePHP’s Access Control Lists

If you’re building a CMS, you’ll probably need different user roles—superusers, admins, users—with different permission levels. Too complicated to code? Enter CakePHP’s ACL (Access Control Lists). With the right setup, you’ll be checking user permissions with just one line.

Magento for Designers: Part 6

Magento for Designers: Part 6

Magento is a stunningly powerful e-commerce platform. In this miniseries, we’ll learn how to get started with the platform, get to know the terminologies, set up a store and all related aspects of it and finally learn how to customize it to make it our very own.

In this sixth part, we’ll be building one of the most reader requested feature: getting a featured product slider in the home page. Excited? Let’s get started!


This entry is part 6 of 8 in the Magento for Designers Session
How to Create Blog Excerpts with PHP
videos

How to Create Blog Excerpts with PHP

Ever visited a blog, and noticed that each posting’s overview only contained a hundred characters or so, which is then followed by “…”? Ever wondered how to do that yourself? It’s not quite as easy as you might think. What if character number 100 occurs in the middle of a word? Do you want to display half of a word on the page? Of course not. In this video tutorial, I’ll show you how to compensate for this, as well as a host of other neat little things, like working with MySQL’s LEFT() function, using PHP’s strrpos, and substr, creating the beginning’s of an actual blog, and more.

Deciphering Magic Methods in PHP

Deciphering Magic Methods in PHP

PHP provides a number of ‘magic’ methods that allow you to do some pretty neat tricks in object oriented programming. These methods, identified by a two underscore prefix (__), function as interceptors that are automatically called when certain conditions are met. Magic methods provide some extremely useful functionality, and this tutorial will demonstrate each method’s use.

New Premium Tutorial: All About the “Static” Keyword
plusvideos

New Premium Tutorial: All About the “Static” Keyword

Today, we are going to learn how to use the ’static’ keyword in PHP. We are going go over the basics and build some examples. It is time to add this interesting language feature to your web development bag of tricks. Become a Premium member today to see this and many other tutorials!

Increase Productivity by Creating PHP Helper Functions

Increase Productivity by Creating PHP Helper Functions

Every workman needs a good toolbox, and web developers are no different. PHP helper functions are designed to speed up and homogenise repetitive tasks, and make your life that much easier. This first tutorial explains how to make link helpers that will improve your methods for adding hyperlinks and mailto links in your web applications.

CodeIgniter from Scratch: Security
videos

CodeIgniter from Scratch: Security

In this fourteenth episode of the series, our subject is ‘Security.’ We will go over topics such as: password encryption, message encoding/decoding, XSS filtering, output filtering, sql injection, session security, private controller methods and more.


This entry is part 14 of 17 in the CodeIgniter From Scratch Session
Page 8 of 17« First...56789101112...Last »