This two-day project development, need to implement some more practical functions, using two of the SQL used, summed up, afraid to forget the next time.
1. Retrieving content in the database that matches the content submitted
For example: The data
To do an information publishing function, but the information under the classification is not uniform, for example, there are basic elements: title, release time, text. And some categories under the information may be one to four fields, some also
This article to recommend a good shopping cart effect, here the main requirements include a few things, one is the shopping cart class with PHP written, there is an AJAX operation used to jquery, there is a jquery plugin thickbox, below we
#需要根据你的需要修改一些目录, or delete some options.
# by Sonymusic (sonymusic@163.net)
# Mysql 3.22.32 Installation Script
mysql_ver=mysql-3.22.32
Prefix=/ugsc/mysql
CD $mysql _ver
./configure--prefix= $prefix
Make
Make install
Cd..
echo $mysql _ver Install OK
--------------------------------------------------------------------------------
Create a Bug Tracking System Early and not Often
The earlier people get used to using a bug tracking system the better. If you're 3/4 through a project and then install
Program
This chapter delves inside PHP and tells you how to use functions, expressions, and statements to control your program.
The previous section introduces how to manipulate data, and if we look at operands and operators as building elements,
Using the PHP template class for programming is good, but sometimes you will encounter a problem, such as the output of a table, but the number of table rows to run to know, such as message boards, BBS, shopping sites and so on, often encounter this
PHP itself has a readdir function, but can only read the current directory, according to this function, I wrote another function, to achieve my needs. The principle of the function is very simple, the main is to use a recursive call.
The
This article introduces the differences between Is_file and File_exists and Is_dir in PHP, and the friends who need them can refer to them.
Is_file only determine if the file exists;
The code is as follows
Copy Code
I've talked about generating random passwords, so let's introduce some of the usual functions that generate random strings, these are our custom functions, and of course we have the system's own functions, but it's easier.
Mt_rand
There are several functions for deleting array repeating elements in PHP, one is Array_unique () and the other is the Array_flip () and Array_uniqure () functions, but the latter is many times higher than the former, so I only introduce the two to
This article to give you a detailed introduction of the PHP curl separate header and body information Test example, before you may not notice, and then analyzed, the following to introduce you.
PHP can be used to simulate HTTP requests via curl, as
Today is nothing to do yourself write a php curl fake IP Source program Instance program, here can forge IP source, forge domain name, forge user information, have need to know friend can refer to.
Define forged user Browser information
Oracle does not support a limit similar to MySQL. But you can still rownum to limit the number of rows returned by the result set.
If you only want to return the first 10 rows of records, you can write:
SELECT * FROM table WHERE rownumHowever, the
After creating a exception object you can return the object, but should not use it, the better way is to use the Throw keyword instead. Throw is used to throw an exception:
throw new Exception ("My Message", 44);
Throw aborts the execution of the
Winmysqladmin 1.1 Storing Mysql Password vulnerability in clear text form
Article Source:
Procedures involved:
Winmysqladmin
With:
Winmysqladmin is a MySQL management software that discovers that it holds the MySQL password in clear text in the
Delete directory in PHP if it is an empty directory we can use RmDir directly to delete, but to delete the non-empty directory we need to delete the most sub-directory of the file and then delete the empty directory, in fact, is the recursive delete
This article to the Friends introduce Magento correction from the homepage of the product page breadcrumb navigation implementation method, if the product is from the category product list into the Product Details page, the breadcrumb navigation
HTTP requests include two kinds, one is our normal HTTP request login, the other is another HTTPS request login, let me give you a detailed introduction to the students to use Curl_init to implement HTTP and HTTPS login.
Note: Using the Curl_init
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