$match = ‘/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/’;
preg_match($match, $email);
|
|||||
|
$match = ‘/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/’; preg_match($match, $email); <?php function my_example() Then add [mytest] to the post. This example shows how to use a specific font. <?php header("Content-type: image/gif"); $image = imagecreate( 500, 250 ); $blue = imagecolorallocate($image, 0,0,255 ); $font = "ARIALBD.TTF"; [...] I was asked how to get the version of PHP , this was due to the minimum requirements of a script stating PHP 5 and a user wanted to know how he could check what his host supplied. This is the simplest version, save as version.php, upload and then open it in your web browser. <?php On [...] function ValidIP($ip){ if (preg_match(‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/’, $ip)){ return false; upload a single file to a FTP server // FTP access parameters // file to move: // connect to FTP server // send access parameters // perform file upload // check upload [...] |
|||||
|
Copyright © 2010 Getphp : PHP and MySQL resources - All Rights Reserved Powered by Yahoo! Answers SEO Powered by Platinum SEO from Techblissonline |
|||||