PHP
Generating Images on the Fly With PHP (By: Divyesh Jariwala)
Generating Images on the Fly With PHPFor developers like Divyesh, one of the most popular features of PHP is real-time image generation. That is, we can create a new image canvas, "paint" it, and either save it to a file, or send it directly to the browser. In this article, Divyesh will show you how to create an image in real-time with PHP.PHP, or PHP Hypertext Pre-processor, is one of the most popular scripting languages available to web developers. There ...
Arrays and PHP: A Primer (By: Tuna Celik)
Arrays and PHP: A PrimerFor many years, arrays have been used to logically store and sequence data. They have also been the point of confusion for many developers. In this article, Tuna will talk about the structure of arrays and how you can create and manipulate arrays with the PHP scripting language.Do you know the proper meaning of the word "Array"? At dictionary.com, an array is defined as "An arrangement of memory elements in one or more planes". For many ...
Parsing XML With DOMXML And PHP (By: Mitchell Harper)
Parsing XML With DOMXML And PHPExtensible Mark-up Language (XML) has just about made its impression everywhere: B2B, B2C, as a replacement for .INI files, to aid with data abstraction and transportation, etc. In this article Mitchell shows us how to use the DOMXML library to parse and extract data from both local and remote XML files with PHP.Extensible Mark-up Language (XML) has just about made its impression everywhere: B2B, B2C, as a replacement for .INI files, to aid with data ...
Working With PHP Data Types (By: Steve Adcock)
Working With PHP Data TypesUsing and manipulating variables in PHP is extremely easy because PHP includes several functions to help us compare and contrast them. In this article, Steve introduces us to the range of PHP data types. He also teaches us how to work with and manipulate PHP data types. This article also presents several code examples that you can test and learn from.For those that haven't noticed, this site is constructed entirely from the incredibly powerful PHP server-side ...
Tips For Making Your PHP Code More Portable (By: Derek Comartin)
Tips For Making Your PHP Code More PortableOne of the big causes of errors in PHP scripts is the lack of a portable code standard. In this article, Derek takes a look at a few little things that we can do to help make our PHP scripts more portable. When other developers comes to use them, they will have more of a chance of working successfully the first time, without the need to perform any kind of system configuration modifications, ...
Building A Document Request Protocol Part 2/2 (By: Mitchell Harper)
Building A Document Request Protocol Part 2/2In this article, Mitchell shows us how to implement our custom SARP protocol that we created yesterday. He uses PHP and its various socket functions to send SARP commands to our SARP server to both retrieve articles and add new articles to the servers Access database.In part one of this article I showed you how to create a Visual Basic application that uses Winsock to accept connection requests from a client, work with a ...
Creating a Credit Card Validation Class With PHP (By: David Rusik)
Creating a Credit Card Validation Class With PHPOne of the most important functions of any eCommerce web site is credit card number storage and validation. In this article David develops a PHP class that stores the details of a credit card and validates its number using the Mod 10 algorithm.Although online payment options such as PayPal have become extremely popular in the last couple of years, the majority of online stores still use some sort of merchant system to accept ...
Create Your Own Mail Script With PHP and IMAP (By: Mitchell Harper)
Create Your Own Mail Script With PHP and IMAPThanks to PHP, we can check our email account remotely using PHP and its imap_xxx functions, which allow us to communicate with mail servers via IMAP, POP3 or NNTP protocols. In this article Mitchell shows us how to create a completely web-based email checking script which can also delete, send and reply to emails... all using only PHP's IMAP functions.How many times have you been away from your home PC and wished ...
PHP and Regular Expressions 101 (By: Mitchell Harper)
PHP and Regular Expressions 101A regular expression is a specially formatted pattern that can be used to find instances of one string in another. Several programming languages including Visual Basic, Perl, JavaScript and PHP support regular expressions, and hopefully by the end of this primer, Mitchell should have you implementing some basic regular expression functionality into your PHP pages.Regular expressions are one of those quirky features that popup in a variety of programming languages, but because they seem to be ...
Implementing Ad Support Into Your Site With PHPAdsNew (By: Mitchell Harper)
Implementing Ad Support Into Your Site With PHPAdsNewPhpAdsNew is one of the most popular open source ad projects on the Internet. We use it right here on devArticles to manage ads for our advertisers, and I would honestly have to say that it's the best ad management system I've ever used. In this article Mitchell's going to give you a guided tour of PhpAdsNew, including how to install it, how to create your first banner, and also how to create ...
