The substitution of preg_replace for the result
$url =http://www.xxx.com/66/
Preg_replace ("#^\/(\d{2,4}) \/?$#", "name/index.php?t=1&id=$1", Strtolower ($url));
Through the above I can get a rewritten URL: name/index.php?t=1&sid=66
How can I
Failed to send mail with Phpmailer, no error
My environment used to Appserv, recently changed the XAMPP results before the page sent mail expired, and no error
$mail->send (); return or true, but I send the Outbox in the mailbox is no mail, the
Big surprise,,, htacess How to rewrite all invalid ~ ~
Http.ini, no problem.
[Isapi_rewrite]# 3600 = 1 hourCacheclockrate 3600Repeatlimit 32# Protect Httpd.ini and Httpd.parse.errors files# from accessing through HTTP# Duoduo Rewrite
Ask a single IP address for multiple server access issues
Server 1 is equipped with 2 network card, network card 1 configuration public IP Internet access to the server
Network card 2 Configure private network IP address, connect server 2
Under the
Rookie help, about the post value of the problem, online, etc.
I wrote a simple program, but could not run out the desired results, please take a look
form.php
form1.php
form3.php
if ($_post["Submit"]!= "") {
echo "Your choice is:".
About WAMP Environment configuration
A few days ago downloaded a WAMP integration environment
After placing the project in the Wamp www directory,
You can access the home page by http://localhost/the project name
But the home page has no style
A new PHP program has just been changed. Great God, look, thanks.
while ($rs = Mysql_fetch_array ($result)) { $arr []= $rs;?>
for ($i = 0; $i { echo $arr [$i] [' Date ']; }
A PHP FTP class (copy, move, delete files, create directories, etc.)
A good FTP operation class, you can complete the copy, move, delete files, create directories and other operations, the need for friends, you can refer to the next.
This article
Questions about FTP uploading files
Everyone in the work is how to upload files via FTP to the server, I found a lot of examples on the Internet, not a successful, to support the SFTP, I hope the good-hearted people can help me
sftp?ftp
PHP Cannot access
I built a blog myself, and then Apache and PHP were all set up, but could not be accessed.
Then I changed a port, like 8080, and changed the Iptables,http://***:8080/blog to be accessible.
But to 80, and 8080 of the configuration
Verification code of a class, how is not out of the picture it
I have nothing to do, customize a verification code generated by the class, but do not know why, the picture is not reality. Also please expert guidance.
Class imagecode{Public $img
Magic has not seen the technology of the great gods to onlookers Ah!!! MySQL automatically inserts 2 data at a time to solve ....
This post was last edited by HELPMBBM on 2012-06-12 02:08:16
Mysql_connect ("xxx.com", "xxx", "xxx");
mysql_select_db ("
Find PHP blocking functions
There is such a requirement that a.php execution cannot end after completion and needs to be blocked there. The b.php then communicates with the outside and transfers the externally-transmitted data to the a.php in the
PHP is not connected to MySQL, but Nvicat can.
$db =mysql_connect ("124.172.118.122", "Dbcms_f", "123456");
if (! $db)
{
Die ('
Connection error: '. Mysql_error ());
}
$sqlname = "Dbcmxs";//the name of the database
mysql_select_db ($sqlname, $db) or
A for-loop problem
I saw a problem today, I think it's more interesting.
$n = 20;for ($i = 0; $i Var_dump ('-');}
That is, the above code to modify or add a place, loop in the body to execute 20 times, discerning eye all see, the above code is
If you match the article content link
Now my site needs the following function, this function is similar to Baidu Encyclopedia, is the article content keyword matching.
Each add an article, you need to put some keywords in the article link, these
Let's see how the figures in this figure should be counted.
This is the number of red characters, each line of 3, all the number of even rows should be calculated by the mathematical method?
Take the remainder of the word is a column of numbers,
Issues that cannot be displayed on page refresh
As long as the press F5 refresh will become the back of the picture, re-enter the address and can be used
------Solution--------------------Press F5, and re-lose the address is not the same URL it
How does the obtained data exist in the database (MySQL), with the database port? Please be expert, thank you
(Note: Data is available, but MySQL is not saved?) )
The first part:
Part II:
$username =$_post[' username '];
$userpass
Apache installation configuration always fails, so faint.
The whole morning, http://localhost/go in, always out of their own desired results, how to do
------Solution--------------------Kiss, you try this: http://localhost/hello.php------Solution---
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