Ask for a regular match
How to match link/3445/65 in this form, the numbers are random, the last number may not
link/? ([0-9]{1,})/? ([0-9]{1,})/?$ This write how wrong ah, not very understand, help master
Share to:
------Solution--------------
A space without a database how to do Dynamic Web site?
There is no PHP environment, only the HTML language, CSS, JavaScript to build stations, but also to update the site information (such as news, video, etc.).
Ask for ideas, thank you heroes!
PHP Forged IP
Many online fake IP brush tickets, but now the site to obtain IP only with $_server["REMOTE_ADDR", that should be how to forge it?
REMOTE_ADDR
PHP
Share to:
------Solution--------------------PHP's Curl plus proxy is available.
Application of PHP XML regular expression array
Receive similar to the following XML file, want to divide the contents of the file into the corresponding array output, what should be handled
Like what:
I'm a fortune teller."I'm a fortune teller"
How to perfectly set the Sphinx matching degree
The use of Sphinx full-text search, when searching for the sort of problem, such as I search "12 Zodiac", out of the results have "12 Happy Street", "12 Zodiac Guardian God", "New 12 Zodiac", "12
Ask a small question.
$subject = "abcdef";$pattern = '/^def/';Preg_match ($pattern, $subject, $matches);Print_r ($matches);?>
Why can't you output anything?
Share to:
------Solution--------------------
^ denotes the beginning, but the
About the socket for PHP
Recently learning PHP socket, want to pass a function of the implementation to check my understanding of the socket:
1. Client side sends data to server side
2. Server side receives the data sent by the client and sends a
. htaccess I wrote the redirect doesn't work
Rewriterule ^products/list/([0-9]+) products/list.php?category_id=$1&%{query_string} [L]
The original has this redirect, commented out after ***/PRODUCTS/LIST/10 such a link will not be accessible, open
Want to add home and last page on pagination
!--? php extract ($_request); $n = 0; $query =mysql_query ("SELECT count (*) as SM from Jiaoshi"); mysql_query ("Set names ' GB2312 '"); $row =mysql_fetch_array ($query); $count = $row [' SM ']; if
How did it go wrong? Seeking principle
This post was last edited by abu_sec on 2013-05-21 14:26:40
$colors = Array (' Red ' = ' hongse ', ' blue ' = ' lanse ', ' green ' = ' lvse ', ' yellow ' = ' huangse ');foreach ($colors as $color) { echo
MySQL connection command line can PHP unexpectedly can not
I use Mysql-h 192.168.7.14-uroot-proot-d sheep on the web host to connect to the remote database to see the data inside.
But the same server with PHP to connect unexpectedly failed.
PHP which environment problem, now must be encrypted to use
Tried, unchanged PHP files, not encrypted thrown in can not be used, as long as the addition of the secret can be used.
And all are involved in PHP to determine the interaction of the
The SQL statements in mysql_query () do not seem to be enclosed in parentheses.
$rs = mysql_query ("select * from Cxjb2 where Nam". $_post[select3]. [$_post[nam] and cat ". $_post[select0]." $_post[cat "an D sha ". $_post[select1]." $_post[sha] and
WEBService Client (PHP)->server (JAVA)
Recently in doing WebService development, my side is to do the request side, to request the Java WebService, the question is as follows,
$ViewProjectNumber [' Project '] = '
1
';
$encodded = new Soapvar ($
How to write the site of the article inside the top and stepping
To an article how to can add top and step such a function, I hope you can give an example, thanks ...
HTML? Top & Tread
Share to:
------Solution--------------------
The table
PHP paging problem, seeking the guidance of the Great God
$key = $_post["Key"];if ($key = = ""){echo "Please enter search criteria";Return}Get page number$page = @$_get[' page '];Define the number of information bars to display per
Request php-5.3.6-win32-vc9-x64 Download
Previously are directly installed integrated environment suite, now notebook 64-bit W7 system to build a server, in a one to install, PHP also to 64 bit, but found in csdn the download is very slow, the
Please help me see why the Code for database administration is invalid
$dbcon = mysql_connect ("localhost", "xxxx", "xxxxx");if (! $dbcon){ Die (' Could not connect: '. Mysql_error ());}echo "MySQL connected\n";mysql_query ("CREATE DATABASE
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