PHP

Useful PHP tips

Use an SQL Injection Cheat Sheet XSS (Cross-Site Scripting) and CSRF (Cross-Site Request Forgeries), are at least as common and at least as dangerous. We can provide some much-needed context, but because we don’t want to focus too much on one attack, we’ll first take a step back. Every developer should be familiar with good …

Read More

PHP backup DB

backupDB() is a PHP script that backs up MySQL tables and databases to a gzip’d file for easy daily backup. Can back up a single database and/or table, or all tables. Structure-only, complete-inserts optional. Can be called interactively or run as a cron job. Works well with doSQL() (also available on this site).

Read More

PHP Basics: Directory

The directory functions allow you to retrieve information about directories and their contents.

Read More

PHP Basics: Calendar

The calendar functions are useful when working with different calendar formats. The standard it is based on is the Julian day count (Julian day count is a count of days starting from January 1, 4713 B.C.). Note that the Julian day count is not the same as the Julian calendar!

Read More

PHP Basics: Array

PHP supports both simple and multi-dimensional arrays. There are also specific functions for populating arrays from database queries.

Read More

About PHP

What is PHP anyway? PHP is a powerful tool for making dynamic and interactive Web pages. Is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. PHP means Hypertext Preprocessor. PHP was originally created by Rasmus Lerdorf in year 1995. The main implementation of PHP is …

Read More

Advertising

Advertising