php

Page 2 of 3
<< Previous   1 | 2 | 3   Next >>
Code Snippets

Delete all files in a directory using PHP

How to delete all files in a directory using PHP.

Code Snippets

PHP replace underscores with spaces

How to replace underscores with spaces using PHP.

Code Snippets

How to turn on error reporting in PHP

How to switch on PHP error reporting directly in the code, and a quick overview of how error reporting works and the options available.

Tutorials

Zip a directory and automatically download using PHP

How to zip a whole directory and then automatically start the zip file downloading using PHP.

Code Snippets

How to implode array keys in PHP

Code snippet for imploding array keys in PHP.

Business

Mysql extension deprecated as of PHP 5.5

As of PHP 5.5 the original MySQL extension will be deprecated. This article looks at the extension and it's alternatives.

Code Snippets

PHP print_r into a variable

How to return the print_r result into a variable.

Code Snippets

Copyright footer with auto updating year using PHP

Keep your copyright year automatically up to date with this short PHP snippet.

Code Snippets

Replace the first occurrence of a character in PHP

Replace the first occurrence of a character in PHP using preg_replace.

Code Snippets

Protect your email address from spam bots

Adding your email address to one of your web pages makes it easy for spam bots to pick up that address and, well, spam you. In this code snippet we'll look at converting each character to its ASCII equivalent so that bots can't read it, but to your visitors it looks exactly the same.

Page 2 of 3
<< Previous   1 | 2 | 3   Next >>
Sign Up

Popular Tags

350x250

Need a web developer?

If you'd like to work with code synthesis on your next project get in touch via the contact page.