Recently encountered a customer, the use of the PostgreSQL database, has not been contacted to use this database. So also is a novice, also did not have too much say, just here to record the problem to share to everyone, hope that the next encounter
The problem was found in the work a few days ago: When a field is of type varchar, the field holds values similar to ' 100,200,300 ' and ' 100 ' or ' 100,400 '. When you write a SQL statement, you make such a mistake, such as:
Select
Note: Add gray background, about the value of Ajax , and JS judgment
1 post-Login controller processing: Determine whether to log in and transmit user information
classIndexcontrollerextendsHomebasecontroller {//Login Publicfunctionindex () {$id=i
Security issues:
Whether there is permission to curd, because the parameters in the address bar, can be modified, (or parameters in the HTML page, you can use Firebug to modify the source code), so before curd to check whether the operator has this
Add the following code to each
level two domain name site entry file index.php
Define (' DOMAIN ', ' cdfanfan.com '); Cdfanfan.com change to actual root domain name
The following two lines are for sub-domain sharing session Note that domain
To install the Redis service:
Download address: http://redis.io/download, download the latest version of the document.
The latest version of the document used in this tutorial is 2.8.17, download and install:
$ wget
Today, the title of my diary is "hard to move themselves, hard to powerless", I believe that each person has a different heart experience. Remember half a year ago, at that time also in the public reviews to do group sales clerk, remember that will
The default version is too low, manual installation has some trouble, want to use Yum install the following scenarios can be used:
First remove the old version of PHP,
Pass
yum list installed | grep phpcan view all installed PHP software
Use
yum
The SSL module is not installed by default, and if you want to use the module, you will need to specify the –with-http_ssl_module parameter at compile time, and the installation module relies on the OpenSSL library and some reference files, usually
This example describes how PHP generates a Curl command line. Share to everyone for your reference, as follows:
Example:Curl "HTTP://LOCALHOST/OTHER/SERVERINFO.PHP?DD=DDD"-H "host:localhost"-H "connection:keep-alive"-H "Cache-control: Max-age=0 "-H"
Here is both the end and the beginning
Came to the brothers even more than half a month, unconsciously feel into this full of magical places. Recall how long it has been, I do not know that I can still be so diligent, but also so brave, but also so
In the process of infiltration, you can insert in the Web page
JS
code to get
Cookies
:
Document.cookie
then get to the Cookies how to upload to our own server?
here, I'm using a AJAX technology. But Ajax has a cross-domain problem, so the http
Get_post () (Get an article)
The Get_post () function can query the information of an article based on its ID, and can also return the current article in the loop.
Usage
Get_post ($post, $output, $filter);
Parameters
$id
(Integer | Object)
1, cross-compiling LIBXML2 and zlib, expand ARM-LINUX-GCC Lib library. Where LIBXML2 is the required library file for PHP5 installation.
1.1 Install the LIBXML2.
Unzip the libxml2-2.7.8.tar.gz into the home directory.
Tar zxvf
Original website: http://www.111cn.net/wy/CMS/87635.htm
PHPCMS2008SP4 GBK version in the background when editing the article found that the title, content, etc. do not display, such as:
After the investigation found that PHPCMS2008SP4 in the
Reproduced in: Click to open the link
php5.5 do a lot of updates, when paired with Apache how to choose also very fastidious, here we take 64-bit php5.6 and Apache2.4 as an example of how to configure.
Tools/Materials
WIN7/8 64-bit
Basic exercises for MySQL database
Create a database
Working with databases
Create a table
Char: fixed-length constant
VARCHAR: variable
Show Table
View table Structure
Inserting dataSHA1 ():
Today is too unlucky, found through the IP can not access the server 80 port very silent, yesterday is OK ah, also did not modify the configuration, the other port is normal, the firewall is OK. So asked the room, gave a crash reply said our server
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