PHP Tutorials
PHP (Hypertext Preprocessor) is a server-side HTML embedded scripting language that allows web developers to create dynamic content that interacts with databases. PHP is easy to learn and platform-neutral, so the same code runs on Windows, Mac OS X, and Linux; and all the software you need to develop with PHP is open source and therefore free.
Using a stream wrapper to access CouchDb attachments
Another perspective using CouchDb as file storage. Now we're going to create a stream wrapper. With this custom stream wrapper we will enable PHP to work with our CouchDb's attachments.
Magic Methods
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.
How to Create Blog Excerpts
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 MySQLs LEFT() function, using PHP's strrpos, and substr, creating the beginnings of an actual blog, and more.
The Problem with PHP 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 wont immediately know how many variables to pass? Luckily, theres a solution!
Create a php click counter
This tutorial will teach you how to create a simple php counter to track how many times your banners were clicked
Using Monkey Patching to store files into CouchDb
Thanks to PHPs namespaces we can now use Monkey Patching within our projects. In this post theres a practical example of this feature. Were going to override the standard behavior of PHP's file system functions to store files into a CouchDb database as attachments without rewriting our code. Only setting up a namespace.
IP Information Class
ipInfo is Extremely useful PHP class to detect your Country Code, Region, City, location, Latitude and Longitude information automatically.
How to set download limit
In this tutorial u will learn how to restrict files to download via htaccess, php and mysql. set download limit and secure your files to download.
PHP Expat Parser
PHP expat Parser is Event Bases Parser. Expat, being an event-based parser, processes your XML document and reports events through callback functions you specify. Here you will learn all about event based parser.
XML Reading PHP DOMDocument Class
DOMParser can be used to parse strings and streams of XML text. XML Reading with DOMDocument, In this Chapter you will Learn How Parse XML Document and store content in Associative Array
JSON
JSON, short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays called Objects
Sending Text Messages
I've had to implement an alert system in PHP were the alerts are sent via a text message. The concept is very simple use an email to SMS gateway. Essentially, you send an email to a phone companies gateway server, that server then relays the email to the phone number specified via a SMS. Since PHP has the ability to send emails, the whole process is quite easy.
Create dynamic userbars with GD
In this tutorial you will learn many GD functions that you can use to generate images. The goal for this tutorial is for you to generate a dynamic user bar.
How to create a Blog with WordPress
It is an easy to use, fast and flexible blog software and content management system. WordPress is highly versatile. You can use it to easily create a simple family blog, a professional blog, a company's corporate website, or even a news syndication website with ease.
Using CouchDb as filesystem with PHP
CouchDb has a great feature. We can store files as attachments into our documents. If we add this feature to its multi-master replica system, we can easily create a distributed filesystem based on CouchDb. The aim of this library is to create an interface with PHP to store, read, and modify files within our CouchDb storage.
Easy Ways to Sort Arrays in PHP
Learn how to sort arrays quickly and simply in PHP. This tutorial shows you how to sort indexed, associative and multidimensional arrays using some handy PHP array functions.
PHP Class Tutorial - Part 2 - What is $this->
This tutorial will explain what $this-> is all about, and how to further your PHP class knowledge!
PHP/MySQL Tutorial: Classifieds Software In 1 Hour
In this tutorial we will build a basic classifieds software in PHP and MySQL.
Creating Custom Fields for Attachments in WordPress
Custom fields in WordPress make it easy to customize your theme in a variety of ways; plus, they are simple to implement for posts and pages. Attachments, on the other hand, take a bit more work to implement, requiring you to read through and decipher core source code in order to make them work. We'll be walking through the use of a couple undocumented WordPress hooks in this tutorial to make this process much easier.
