PHP Learning Notes (1) _php Techniques for Environment configuration and code debugging

One Configuration PHP environment 1, understand what is PHP PHP ("Php:hypertext preprocessor", acronym for hypertext Preprocessor) PHP is the acronym for the English Hypertext preprocessing language hypertext preprocessor. PHP is a

PHP Learning notes array of _php tips

How to define an array: There are two main ways to create an array in PHP, so let's look at how to create an array (1) Create an array of methods for assigning values directly to each element. The format is: $arrayname [Key]=value; Where

The difference between echo () and print (), require () and include () in PHP, and _php techniques

The difference between 1.echo and printThe functions of ECHO and print are essentially the same in PHP (output), but there is a slight difference between the two. echo output does not return a value, but print has a return value that returns Flase

Setting time zone methods in PHP summary _php tips

After you find out why, you search the web for some time zone settings for PHP: 1, modify php.ini, found in the php.ini Data.timezone = remove it before the number, and then set data.timezone = "Asia/shanghai"; 2, in the program PHP 5 version of

Introduction to the use of the date function of PHP series learning _php Tips

Introduced PHP is a very amazing language. It's strong enough (the core language of the biggest blog (WordPress)), it's wide enough (running on Facebook, the biggest social networking site), and it's simple enough (as a beginner's preferred starter

PHP uses the Glob function to traverse a directory or folder method _php tips

This example describes how PHP uses the Glob function to traverse a directory or folder. Share to everyone for your reference. The specific analysis is as follows: When it comes to PHP traversal directory Many of our friends will think of Opendir

PHP echo, print, Print_r, sprintf, Var_dump, var_expor using the difference _php tips

/*******echo********/echo-output one or more stringsDescribeEcho (String arg1 [, String ...])Echo () is not actually a function (it is a language structure), so you do not need to use parentheses. Echo () (unlike some other language constructs) is

Based on PHP common function Summary (array, string, time, file operation) _php tips

Array: "Focus 1" implode (delimited, arr) concatenate the array value data by the specified character For example: $arr =array (' 1 ', ' 2 ', ' 3 ', ' 4 '); $str =implode ('-', $arr); Explode ([delimited],arr) splits a string by the specified

How PHP uses the pack to process binary files _php tips

The pack and unpack functions can be used in PHP reading and writing binaries.Today to deal with a binary file problem, so need to use, specifically to understand the use of the pack, unpack usage is similar to this. In short, the pack function is

Use the Uniqid () function in PHP to generate a unique ID

function Createid ($prefix = "") { $str = MD5 (Uniqid (Mt_rand (), true); Return $prefix. $str; } uniqid (prefix,more_entropy) The Uniqid () function generates a unique ID based on the current time in microseconds. Prefix optional. Specify

CI Framework Source Reading Note 5 Benchmark benchmark.php

Since benchmark is the first core component to be loaded in CI, our analysis begins with the component first. The meaning of benchmark is very clear, students who have used benchmark tools should be more aware that this is a benchmark component.

PHP preg Regular function use

the difference between 1.preg_match and Preg_match_all The difference between Preg_match and Preg_match_all is that preg_match only matches once. and Preg_match_all all match until the end of the string. Cases: String ' ABCDE '

How to insert RDF content into a Web site in PHP (i)

web| Insert | Site reputation and great wealth Imagine a site that gets the latest news from the hottest portal site. Stock prices, weather information, news stories, thread discussion groups, software releases ... All of this will be dynamically

How to download php File: Php file download

/** Author Zhangzhaoyu 2012-9-13 2:28:18 **/ /** * * @param unknown_type $file _name * @param unknown_type $file _sub_path "xxx/xxx/" * */ function Down_file ($file _name, $file _sub_dir) { $file _path = $_server["Document_root"]. $file _sub_dir.

Session scheme when PHP cookie is disabled

Friends who have used sessions in PHP may encounter a problem where the session variable cannot be passed across pages. This annoyed me for a few days, and finally I thought through the data and solved the problem. I think there are several reasons

PHP error handling and the exception handling mechanism of PHP

PHP Error Handling When we develop programs, sometimes there are problems with the program, we can use the following methods to find the error. Development phase: Output all error reports during development, which will help us to debug the program

Instructions for adding a extension=php_mysqli.dll directive in php.ini

When configuring PHP5 to use MySQL as a database, many people think that as long as the php.ini add the Extension=php_mysql.dll, the instructions can not understand why many articles are recommended to add Extension=php_mysqli.dll Instructions Just

For PHP application speed, speed up, and then speed! Part 1th

For PHP application speed, speed up, and then speed! , part 1th: Improving performance and throughput using opcode caching software In a very short time, PHP became a very popular programming language for developing WEB applications. For beginners,

Implement a real-stay drop-down list with PHP

The following two files are copy to the same file, Access through the Web path index.html see, this is through the IFRAME to achieve the dynamic update, list.php current content is relatively simple, you see through the list.php database query, and

PHP Google's Translate API code

CODE: Header ("content-type:text/html; Charset=utf-8 ");Class google_api_translator{Public $opts = Array ("text" => "", "Language_pair" => "En|it");Public $out = "";function Setopts ($opts) {if ($opts ["text"]!= "") $this->opts["Text" = $opts

Total Pages: 12780 1 .... 384 385 386 387 388 .... 12780 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.