1.cookie&session Introduction and differences
The cookie data is saved on the client and the session data is saved on the server side.
Simply put, when you log on to a Web site, if the Web server side is using session, then all the data is stored
1. When defining an object method, although it is not necessary to write public by default, it is recommended to write.
PHP Object-oriented first day
1. What is Object oriented ?
Elements: Abstraction, encapsulation, sharing, emphasis on object
PHP server-side default session storage is the way in which files are stored, and on WINDOWS, PHP's default sessions server file is stored under C:/windows/temp, *nix under the default storage in/TMP, If concurrent access is large or the session is
The native environment takes the default installation Nt4+iis4,iis root directory as c:inetpubwwwroot.
First, software download
You can href=http://www.php.net/download-php.php3>http://www.php.net/download-php.php3 from Second, the Software
Error_log () is a function that sends an error message to a place, which is more common in program programming, especially in the debugging phase of the program.
This article will use an example to explain the use of the Error_log () and some
Objective:
PCNTL Introduction
PCNTL extensions can support multithreaded operations in PHP. (Non-UNIX class systems do not support this module)
Phpize Introduction
Phpize can be used to dynamically add extensions to PHP. For example, when
PHP official update is very diligent. A few days to see, and updated. So upgrade the VPS PHP chant. The compiler ran running with the following error:cc:internal error:killed (program CC1)obviously this is a compilation process that was killed by
The rmdir () function deletes an empty directory.
Cases
The code is as follows
Copy Code
$path = "Images";if (!rmdir ($path)){Echo ("Could not remove $path");}Else{Echo ' Delete directory failed because images is not
Shengxin Network: First open free 100M space Limited applicationIIS Connection amount/apache Connection amount not LimitedSend a free level two domain name, you can bind 3 domain namesOnline Control Panel, support for online decompression, setting
The code is as follows:Get the current script URLfunction Getcururl (){if (!empty ($_server["Request_uri"])){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName = $_server["Php_self"];if (Empty
Get Files in PHP fsockopen () us.netOpen socketUse Fsockopen () to open a socket. This function is present in both PHP3 and PHP4. The prototype of the function is as follows:
Intfsockopen(String hostname,int port [,int errno [,String Errstr
Performance has always been a point of laravel framework, so tuning Laravel program is a must-learn skill. Next, share some of the best practices of development, as well as tuning techniques, and we have other suggestions and comments to discuss.
Usage:First, we need to create the include. Php file in our topic directory. If so, add the script directly. The code is as follows:Copy code /*** Get the article list* @ Param int $ count quantity* @ Param null $ cate Category ID* @ Param null $
Open the following address in IE browserHttp://ip.taobao.com/service/getIpInfo.php? Ip = 8.8.8.8Response Information The code is as follows:Copy code {"Code": 0, "data": {"country": "u7f8eu56fd", "country_id": "US", "area": "", "area_id ": "",
Original StyleOriginal method: Send the header, and send the header of the attachment to the user's browser to indicate that the object is to be downloaded. Then, read the data in the database, parse it one by one, and write it into an excel file.
Environment:-Apache 2.2.6-PHP 5.2.5-SQL Server 2005-Windows XP SP2Steps:1. Configure PHP5 to connect to ms SQL Server as usual2. Download the correct version of ntwdblib. dll (2000.80.194.0). Note that this version number does not work for this
PHP obtains directories and methods through magic variables, Super global variables, and related functions: The code is as follows:Copy code /*** PHP path or directory retrieval implementation* @ Link http://www.111cn.net*/ // Magic variable to
Session usage:Session_start (); defines the $ _ SESSION array variable.Session_start () cannot be output in any form, including the output and html code in php.The $ _ SESSION array cannot use numeric subscript, but can only use string subscript.The
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