ASPit - Totally ASP JSit - Totally JavaScript
Search PHPit

Use this textbox to search for articles on PHPit. Seperate keywords with a space.

Advertisements

Join the discussion!

PHPit Forums has opened its doors, so come joins us for the latest PHP discussions. If you need help with a certain problem, or just want to know something about OOP or design patterns, PHPit Forums is the place to be. Or, if you're a true PHP expert, we could really need your knowledge, so join PHPit Forums and share your expertise!

Recently Added rss.png

Dirify

Code snippet posted on August 11th, 2004 by Dennis Pallett

This popular MovableType function has been ported to PHP, by Adam Kalsey. Now you can create dirified filenames of any string you use this function with.

iif function

Code snippet posted on August 11th, 2004 by Dennis Pallett

The IIF function is a well-known function in most languages, however PHP does not contain such a function. It does now, if you include this function into your php files.

MySQL NOW()

Code snippet posted on August 11th, 2004 by Dennis Pallett

Using this function you can get the current date and time in the MySQL NOW() form, in case you want to use PHP to generate it, instead of MySQL.

URL Encode

Code snippet posted on August 11th, 2004 by Dennis Pallett

This function is used to URL encode strings so they can be sent through a URL. This function also makes sure all the characters have been transformed into their entities.

PHP Amazon Web Services Class

Code snippet posted on August 11th, 2004 by Dennis Pallett

This class, written by Dennis Pallett, is used to query Amazon Web Services (a developers’ token is required), and retrieve results from Amazon. The class includes automatic caching for increased stability and speed of your website.

Word Count

Code snippet posted on May 23rd, 2004 by Dennis Pallett

This function allows you to quickly calculate how many words a string contains. Very useful for word processor scripts!

Ban certain IP addresses

Code snippet posted on May 23rd, 2004 by Dennis Pallett

Using this handy codesnippet you can easily ban several troublemakers from your website. Please note though that this is far from foolproof, and people can very easily get around it, by using a proxy or changing their IP address (e.g. dial-up users, AOL users, etc).

Backing Up And Restoring Your MySQL Database

Article posted on May 23rd, 2004 by Dennis Pallett

Vinu Thomas shows us how to backup your MySQL database, and restore it safely. Perfect for creating backup copies, in case of server failures.

Overview: PHP

Article posted on May 23rd, 2004 by Dennis Pallett

Jason Cartwright gives us a brief explanation on PHP and what it can be used for. If you’re new to PHP, then this should be the first article for you to read!

.htaccess Wrappers with PHP

Article posted on May 22nd, 2004 by Dennis Pallett

Robert Plank discusses htaccess wrappers and what they can be used for. If you’d like to watermark your images or add headers to all your HTML documents, then this is the article for you!


Latest Forum Discussions