archive | php RSS feed for this section

Using Regular Expressions – Part 3 of 3 – Examples

Following on Geekology’s previous posts on Regular expressions (Regex Overview and Regex in PHP), the following is a list of regular expression examples for general use.

Read more

A simpler way to send Text or HTML emails with attachments in PHP

This post details how to create and send Text / HTML email messages with attachments in PHP using an adapted version of the CodeIgniter Email Library.

Read more

Using Regular Expressions – Part 2 of 3 – Regex in PHP

PHP offers three sets of functions that allow you to work with regular expressions: “ereg”, “mb_ereg”, and “preg”.

Read more

Using Regular Expressions – Part 1 of 3 – Overview

Regex can be used to search for simple or extremely complex patterns through blocks of text, and most programming languages and tools can interpret and use it.

Read more

Using PHP and NuSOAP to connect to Web Services

NuSOAP is a rewrite of SOAP contained in a set of PHP classes that don’t require a PHP Extension (in contrast, SOAP requires that PHP be compiled with the “–enable-soap” option).

Read more

Sending emails with attachments using PHP’s mail() function

You can send emails with attachments using just PHP’s mail() function by defining a multipart/mixed content header and converting the attachments to base64 strings.

Read more

Gaining access to a visitor’s IP Address in PHP

PHP’s HTTP_X_FORWARDED_FOR and REMOTE_ADDR server variables store the IP Addresses of a visitor’s connection and any proxy server it was forwarded through.

Read more

Minify JavaScript code to obfuscate details and decrease load times

Minification involves removing all characters that are required for readability, but not executability. Examples are white spaces, new lines, comments, and block delimiters.

Read more
Afrigator