One, we use WAMP, first guarantee Wamp open, service open stateSecond, create the database, create the tableNote that the data set here is to choose UTF8, otherwise the insert data will be garbled to create table selection advanced properties, also
PHP on Linux even MSSQL, using UNIXODBC + FreeTDS Installation steps: Installing UNIXODBC Yum Install UnixODBCYum Install Unixodbc-devel Installing FreeTDS
using Memcache in PHP1. Test codeThis is memcache official test memcache codeset ("Str_key", "String to store In memcached "); $memcache->set (" Num_key ", 123); $object = new StdClass; $object->attribute = ' Test '; $memcache Set ("Obj_key",
#html页面 Submit Query Information view.htmlview.php page for XML processing 0H6m5R2mBkUipA1zwDg0zBnG "; #该密匙在百度libs云注册后获得 # Get information $data = file_get_contents ($STR); #获取xml信息 $data = simplexml_load_string ($data); #遍历景点信息 parsing according
Configure nginx + php and macnginx for mac
System: OS X Yosemite 10.10.1
The system comes with php and php-fpm
Path remarks:
Php. ini:/etc/
Php-fpm.conf:/etc/
Nginx. conf:/usr/local/etc/nginx. conf
Nginx Default root:/usr/local/opt/nginx/html
1.
Use of php eof (heredoc), eofheredoc
PHP heredoc technology $ var EOF; echo PHP heredoc technology $ var zhangshan;/* Note: 1. herdoc starts with " 'World '); echo PHP heredoc technology $ a $ B $ a + $ B {$ arr ['hello']} EOF;
Php uses GD to create a method for maintaining the aspect ratio thumbnail. phpgd thumbnails
This example describes how to use GD to create a thumbnail with a aspect ratio. Share it with you for your reference. The details are as follows:
/*** Create
PHP method for generating unique order numbers
First
The Code is as follows:
Return date ('ymmd'). str_pad (mt_rand (1, 99999), 5, '0', STR_PAD_LEFT );
Second
The Code is as follows:
Return date ('ymmd '). substr (implode (NULL, array_map
Php remembers the implementation of the next automatic password login
When creating a website, you will often encounter the need to remember the password. The next time you log on automatically, you will not log on within one week, and you will not
Laravel 5 framework learning date, Mutator and Scope, laravelmutator
In our previous solution, assigning the value of published_at to the current date is actually a temporary solution. We need to set the release date, which may be released in the
Principles and tutorials of PHP connection and Memcached manipulation
Memcahced is an open source distributed memory object cache system. Memcached is often used for a slightly larger project to reduce the burden on the database and accelerate the
PHP connection operation access database instance, access instance
Because the previous PingSwitch is used as a front-end for WEB display, the Delphi and access structures are used at the beginning, and the connection between Delphi and MySQL is
JSON and json online resolution
Brief description:
JSON (JavaScript Object Notation) is a lightweight data exchange format. It is based on a subset of JavaScript (Standard ECMA-262 3rd Edition-December 1999.
JSON uses a completely
Differences between passing parameters in PHP and passing Parameters
Differences between passing parameters in PHP and passing Parameters
This article mainly introduces the differences between passing parameter values in PHP and passing parameters,
Php method for generating rounded corner Images
The details are as follows:
The Code is as follows:$ Image_file = $ _ GET ['src'];
$ Corner_radius = isset ($ _ GET ['radius '])? $ _ GET ['radius ']: 20; // The default corner radius is set to 20px
$
PHP5.4 and xdebug are compiled in Windows.
In fact, my ultimate goal is to compile php_xdebug.dll that supports PHP5.4. Before that, it is necessary to compile PHP5.4 successfully.
Compiling environment and related software packages:1. Microsoft
If your job is related to PHP, you must know five things about PHP 7.
1. This year's schedule has been released. In PHP 7, the RFC vote has been passed, and PHP 7 will be released in October 2015. Despite some delay, we are glad to announce its
Php internal post data method, php program post Data
This article describes the internal post data method of the php program. Share it with you for your reference. The specific implementation method is as follows:
$ PostData = array (); $ postData
Development -- generate two-dimensional codes with parameters in Php in batches.The two-dimensional code with parameters is very useful for channel marketing and promotion. Multiple two-dimensional codes with different scenario values can be
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