As we all know, PHP is a very good dynamic web development language (fast, short development cycle ...). )。 But only a very small number of people realize that PHP can also be very good as the language of writing shell scripts, when PHP as the
Installing Pear
--------------
Pear is a php extension and application library, contains a lot of useful classes, after installing the php5.0, pear is not actually installed, the installation method is as follows:
1. In the PHP directory,
Input and output
Input and output should be said to be the basic function of many websites. User input data, Web site output data for other people to browse.
Take the current popular blog as an example, here the input and output is the author of the
Pre-Knowledge: Javascript, PHP (small)/perl (small)!
Test environment: Windows2000 + IIS5 + PHP (Win98 + PWS + PHP3 failed, estimated to be a problem with the configuration)
Directory structure:
/cgi-bin/fileup.php (File receive)
/www/test/phpfileup.
Description:/*************************
Description
Determine if the passed variable contains illegal characters
such as $_post, $_get
Function: Anti-injection
**************************/
Copy the Code code as follows:
Illegal characters to
IP geolocation Query class
/**
File name: IpLocation.class.php
* IP Geo-Location query class (Master file I'm uploading it.) I upload a test file, and there is a QQWry.Dat this can be downloaded to the pure IP
This article introduces, PHP programming in the naming standard, including the basic concept, camel-style nomenclature, hump method, Pascal method, the need for friends, may wish to refer to the study.Camel-like nomenclature (also called Hump
This article introduces the implementation of PHP with a section of the query DNS domain name information code, there is a need for a friend reference.In PHP, domain-related operations typically use two functions, namely: gethostbyname () and
Open the phpMyAdmin hint in the WAMP environment "the mysqli extension is missing. Please check your PHP configuration. ", this article shared my solution, have encountered the same problem of friends under the reference, hope to solve your
You can use {Y}{m}{n} to become the current date
Set_dir (DirName (__file__). ' /upload/', ' {y}/{m} '); Save path, support {y}{m}{d} these several options
$up->set_thumb (100,80); Thumbnail size setting. Units in pixels
$up->set_
Read some code today, see a little egg.
/* env.php */
Phpinfo ();
?>
Access by browser
Http://ipaddress/dirname/env.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
You will see!
A fat man with two cigarettes in his mouth!:-)
The secret is the image
Dynamically build Flash animations using the Ming library
Rich Internet application is a new buzzword in Web 2.0, and in terms of Web 2.0, a key component is Adobe Flash. Learn how to integrate Flash animations into your application and
Although PHP is a powerful tool for building WEB systems, the functionality of PHP Access databases has not been standardized, and each database uses a different and incompatible application interface (API). In order to fill this shortcoming, there
I think there are several reasons for this problem:
1, the client has disabled the cookie
2, browser problems, temporarily unable to access cookies
3, Session.use_trans_sid = 0 in php.ini, or--ENABLE-TRANS-SID option is not turned on at compile time
The foreach basic syntax is as follows:
FOREACH ($array _variable as $value)
{
[Code to execute]
}
Or
FOREACH ($array _variable as $key = $value)
{
[Code to execute]
}
In both cases, multiple [code execution] will be executed to be equal to the
It is an open source software, developed by Nusphere Corporation (http://dietrich.ganx4.com/nusoap/), a series of PHP classes written entirely in PHP that send and receive SOAP messages over HTTP. One advantage of Nusoap is that there is no need for
Copy CodeThe code is as follows:
/**
* Friendly Date and time
*
* Date Time @param datetime $datetime
* @param int $size Precise in-place number
* @throws \invalidargumentexception
* @return String
*/
function Friendly_date ($datetime, $size
5 Easy-to-commit PHP database errors---Include database schema design, database access, and business logic code that uses the database---and their solutions.
If only one way to use the database is correct ...
You can create database design,
In the Web 2.0 Revolution, wikis originated earlier than blogs. Blog to be written and maintained by one of their own, the daily update of the blog will make your thinking dry, wiki technology and support its web page can let everyone together to
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.