1. Php-config Introduction
After the installation of PHP, there is a php-config in the bin directory.
Php-config is a script file. Used to obtain information about the installed PHP configuration.
2. Usage Scenarios
When compiling the PHP
Use regular expressions to determine if the number entered is odd between 1--99, including 1 and 99, thank you.
Reply to discussion (solution)
/\d? [13579]/
/\d? [13579]/
Requires between 1-99
for ($i =1; $i 1 Yes
2 No
3 Yes
4 No
5 Yes
6
search.php
GetCount ("SELECT * from". $prefix. " Newsbase ' where id like '%{$keyword}% ' or the title like '%{$keyword}% ');//Page Count $pagenum=ceil ($total/$num); Get the total number of pages, also the last page $page=min ($pagenum,
1. Locate the httpd.conf file in the Apache \conf directory, open it, and locate the following two lines:
# Virtual Hosts
#Include conf/extra/httpd-vhosts.confRemove the # from the front of him and modify it as follows:
# Virtual HostsInclude
The following two types of for loop, why the first runtime seems to enter the dead loop, and the second, although the error, but can run the results, do not know what the count function in this for loop effect
=0 && $arr [$j]> $key) {
On the newly installed window Server2008 system, install the Wamp development environment, and then open to discover that you can not start Apache, prompted as follows
According to the Internet to see the first shut down IIS, and installed the
Put the code first, the code is streamlined.
$invoker _function ($argus);}? >
Describe:
The program is developed in thinkphp to forward the parameters received by the cache's get method to the specified method,
The last line: where the D
The following code is a method in a class:
Public Function GetHead () {
$map = Array (
' A.state ' =>array (' eq ', 1),
' A.recommend ' =>array (' eq ', 1)
);
$prefix = C (' Db_prefix ');
$data = $this->table ("{$prefix}auction as A")
Join
I have an RSS program that I want to count: is the server of the other website subscribed to my RSS, or the ordinary customer opens the execution through the browser.
The idea now is to count the frequency at which each IP address is accessed to
Delete from (SELECT * To sys_barcode_1d_y UNION ALL SELECT * FROM Sys_barcode_1d_y_bak UNION ALL SELECT * FROM Fg_hi_cus t_in where hi_no like ' esc% ') a where packageno= ' xxx '
Reply to discussion (solution)
Delete from (SELECT * To
I use PHP to output Ajax to HTML pages
Where the Data property in Ajax is as follows
Data:\ ' val=\ ' +\ ' \ ' \ ' +data+\ ' \ ', equivalent (data:val= "data")
But data is a string, and I don't know why double quotes.
$_post[' Val ' When I'm back
First contact with Ajax, want to use a simple example to practice
There is a drop-down list in index.php that selects different classes to return different student information
The code is as follows:
Query Student Information
Please
The control area is written like this.
function Checklogin () {$condition [' employeeno '] = $_request[' Employeeno ']; $condition [' password '] = $_request[' Password ']; $model = M ("EmployeeInfo"); $results = $model->where ($condition)->select
The following code can generate picture thumbnails, but the picture quality will be reduced, who can help to modify the quality of the resulting picture?
/*
* Function: PHP image watermark (watermark supports picture or text)
Parameters
*
Other people's website can display the verification code normally, I and he is the same program, I install the prompt "method does not exist."
if (!class_exists ($control)) NotFound (' Controller 1 ' not found);
$JMS =new $control ($conf ['
PHP Ultra-strong filter functionDo you always have to go through the previous filter code every time you want to filter?Have you ever searched for an anti-filtering, anti-attack PHP solution?Do you have a classic story about "filter input, avoid
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