Categories
Tags → Function Php Example

Directory Listings, list files and subfolder using php

This is the simple example to list contents of any Directory. To do this we are going to define function DirDisply( ) which will read the current directory contents and display it as a list. We first open current directory by $TrackDir=opendir(...
DETAILS

Sending Mail with PHP

Despite what you may think, sending mail is a widely used practice in most scripts. Some use other methods, but the simple PHP mail() function is safe, reliable, easy to use and very useful. Below we''ll show you step-by-step different ways to u...
DETAILS

PHP Includes

An introduction to the PHP include function and example an of how to use this to create a template base for your website.
DETAILS

Examples of the preg_match function

The preg_match function of Php is often used and the online script here includes few examples which can be implemented in any code. There is an online demo. The code will be updated regularly. - just added a preg_match_all example
DETAILS

Create a copy of an image as a thumbnail

You get a great function that use the GD library to create the new thumbnail file. Often you need to change the size/dimensions of images in your web site. One example could be if you let your visitors upload an image of themself when they regi...
DETAILS

getServer Path (function)

a simple function that returns the path to folder in which script subsides. Valuable in producing php programs that will be distributed randomly and require absolute paths. Just call this function and it will return everything up to the current folde...
DETAILS
©2003-2019 jCay.com