PHP intercepts the specified picture size instance Code _php tutorial

Header ("Content-type:image/jpeg"); $filename = ' book_rabbit_rule.jpg '; /* Read the drawing document */ $im = Imagecreatefromjpeg ($filename); /* How much to cut, length/width */ $new _img_width = 120; $new _img_height = 42; /* Create a new blank

PHP template tags Getting started tutorial [file_get_content]_php Tutorial

This article is the use of the FSO function of PHP to read the template file, and then according to our custom-made label file template replacement is OK. This article is the use of the FSO function of PHP to read the template file, and then

PHP Collector _php Tutorial

This article is a PHP implementation of the article collection function Oh, just a simple function but the source is very few, suitable for small collection function Oh. This article is a PHP implementation of the article collection function Oh,

PHP imitate user Login read DZ Forum Verification Code Program _php Tutorial

error_reporting (0); Session_Start (); Require ("config.php"); if (!is_dir ("temp")) { mkdir ("temp", 0777); } $c =tempnam ("temp", "C"); $url =dz. " Logging.php?action=login "; $ch =curl_init (); curl_setopt ($ch, Curlopt_url, $url); curl_setopt

PHP batch upload two [with preview]_php tutorial

$id = $_get[' id ']; $sql = "SELECT * from Biao where pid=". $id; $res = Mysqli_query ($conn, $sql); $num = Mysqli_num_rows ($res); How many pictures are available $sql 1 = "SELECT * from Biao where id=". $id; $res 1 = mysqli_query ($conn, $sql 1); $

PhP4 How to get the remote file size class _php tutorial

PHP5 has get_headers very useful, because he can read the remote file information directly, without having to read the entire file to the server. But now many Web servers do not support PHP5, let's look at a php4 to get the remote server file size

PHP page FTP code one _php tutorial

PHP Web page FTP code $ftpserver = "127.0.0.1";$ftpport = "21";$ftpuser = "Anonymous";$ftppassword = "";if ($_post){$action =$_post[action];Switch ($action){Case "OPEN":Case ' Change ':$ftpserver =$_post[ftpserver];$ftpport

PHP converts Chinese phonetic code (_php) into a tutorial

PHP will be converted to Chinese pinyin code this program is the implementation of the original is to convert the Chinese characters to the corresponding machine inside code, and then define the relative pinyin, so that the Chinese pinyin is only a

PHP Send SMS Instance Code _php Tutorial

SMS Web Sender Demo SMS Web Sender demo! if ($action! = "Submit") {?> Any username or password your Enter here is not being storedIn any (although we ' re not using SSL either) Also, as can see the most of these is UK sites, not allOf

_php tutorial on the legality detection of directory names

Legality detection of directory names Legality detection of directory names function Isen ($STR) { $ret = ""; for ($i =0; $i $p =ord (substr ($str, $i, 1)); if ($p 57 & $p 90 & $p 122) { Nerror ("not conform to specifications!") "); } $ret. =CHR ($

PHP generated distorted angular support Chinese image Verification code function _php Tutorial

PHP generated distorted angular support image verification code function in Chinese !--? php function make_rand ($length = "32") {//Captcha literal generation function $str = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ";

Do not submit data code from Form _php Tutorial

Include (".. /inc/inc.php "); IsLogin (); $Db = new Db (); This database class address database connection class ?> Increase City classification Back to previous page This site original reprint annotated www.111cn.cn http://www.

PHP Files Online Decompression Code _php tutorial

Public Function Extractfile ($header, $to, $zip) { $header = $this->readfileheader ($zip); if (substr ($to, -1)! = "/") $to. = "/";if ($to = = './') $to = ';$pth = Explode ("/", $to. $header [' filename ']);$mydir = ";for ($i =0; $i if (! $pth

PHP Google style pagination Code _php tutorial

PHP Google style pagination code Public Function Showctrlpanel_g ($halfPer = 5) { $re = ' '. $this->linecount. ' Article '. $this->currentpage. ' /'. $this->pagecount. ' Page'; if ($this->currentpage-$halfPer >1) { $re. = ' FileName:

Php+ajax Cutting Pictures _php Tutorial

#dragHelper http://www.bkjia.com/PHPjc/445085.html www.bkjia.com true http://www.bkjia.com/PHPjc/445085.html techarticle style #image {background-image:url (test1.jpg); width:1000px;height:200px;border:1px solid #000}/* Absolute positioning

PHP Product Invoicing Management System Development Example Tutorial (1/13) _php Tutorial

This article to friends to tell you about PHP products Invoicing Management System Development Example Tutorial OH. Let's take a look at the features. This article to give friends to tell you PHP Tutorial products Invoicing Management System

PHP renaming and Copying Files _php tutorial

PHP renaming and Copying files $nname = $nowpath. $newfilename; if (file_exists ($nname) | |!file_exists ($oldname)) { M ($nname. ' The target file already exists or the original file does not exist '); } else { M (basename ($oldname). ' Renaming '.

PHP get Route [Previous] page analysis function _php Tutorial

PHP get the route [previous] page analysis function This article provides a full-featured function to get the upper-level page. Oh, that's the antecedents. Function Getref (& $ref,& $fullref) {Global $err, $conf, $HTTP _get_vars,$_get; if (Isset

PHP call Google Translator feature _php tutorial

PHP calls Google Translator features From Chinese to English Class Google_api_translator { Public $out = ""; function translate () {$this->out = "";$text = UrlEncode ("Computer");//The Word to be translated $google _translator_url =

PHP picture upload class _php tutorial

Class upload_class{ Private $ptname; Upload the name of the form; Private $udname; Whether to create sub-directories by month (0 is no, others are true); Private $ufname; Whether to TimeCreate a file name (0 is no, others are true); Private $ultype;

Total Pages: 5208 1 .... 3680 3681 3682 3683 3684 .... 5208 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.