Recently, learning to use apache2.4.6, but, distressed is, do not know how to set up their own virtual directory. In the apache2.2 set the method, to the 2.4.6 in no matter, please guide AH!!!!!
Reply to discussion (solution)
I hope to get the
Build an XML file in SimpleXML,
Xml->addchild ()
Xml->addattribute ()
The Horse of God,
Save time Xml->asxml (' file.xml '); The resulting XML file is displayed on one line,
Look and want to be crazy, too disorderly pull.
Can't he just
PHP test
phpinfo.php file in the root directory, test results 2, ask the great God, I really have a problem?
Reply to discussion (solution)
StrangeOther files, just get a hello!world. Put it in the same directory to see
StrangeOther files,
PHP U9
How to use PHP to verify Chinese letters and numbers,
[\U4E00-\U9FA5] This can be verified in Chinese????? Tokyu
Reply to discussion (solution)
[\x4e00-\x9fa5]
It should be [\X4E00-\X9FCF]Now the software basically supports the
Php
The problem is found when using the PHP round function for fractional control, as follows:
Round (9999999999999.99, 2) expected value: 9999999999999.99; actual: 10000000000000
Round (1111111111111.11, 2) expected value: 1111111111111.11;
' System administrator ',1=> ' normal user ');?>
The page can be displayed by default. But what to do with the ' columns ' =>array ()?
An official example data dictionary in a database, how is static data handled?
Reply to discussion (solution)
When we get multiple rows of records in a database, we usually do loops.
while ($arr = Mysql_fetch_array ($result, Mysql_assoc)) {
Var_dump ($arr);
}
But when it's written, it's going to be a mistake.
$arr = Mysql_fetch_array ($result, MYSQL_ASSOC);
I beginner PHP and MySQL, imitate php100 video tutorial to do a message board publishing site, but click on the "message" button always pops up "message failed!" , at the same time the database also did not import information, ask the big God to see
The same space is equipped with two programs, is a different domain name, how can be on another site to invoke the content of this member display AH ~ ~
Reply to discussion (solution)
If these programs provide APIs, then the best way to do this
1, ' title ' = ' Test 1 ',), array (' ID ' =>2, ' title ' = ' Test 2 ',), array (' ID ' =>3, ' title ' = ' Test 3 ',), array (' id ' = >4, ' title ' = ' Test 4 ',), array (' ID ' =>5, ' title ' = ' Test 5 ',),); while (List ($k, $v) = each ($arr))
PHP php after page change, the problem of serial number
$MYSQL->query ("Select Cu.*,cy.name from Customer cu,custtype cy where 1=1 and Cu.code=cy.code limit 0,18");
for ($i =1; $i $MYSQL->fetch ($i);
$customerid = $MYSQL->data[customerid];
PHP operation Memcache can add multiple memcache servers with Memcache::addserver
$memcache = new Memcahce;
$memcache->addserver ($ip 1,11211);
$memcache->addserver ($ip 2,11211);
I do not understand the server, there are a few points do not
Curl Socket Fsockopen
Socket Fsockopen Curl How can these things be understood? What's the difference between them? And what are the parameters to understand? Do you have any good information?
Reply to discussion (solution)
A socket is a way
Ask for an Apache rewrite rule
Link the following
/goods.php?id=111&type=apple
Into
/apple/goods-111.html
There is actually no Apple catalog,
Excuse me: Can you do that?
Reply to discussion (solution)
Rewriterule ^apple/goods-([0-9]+).
How can I resolve this? Only the space becomes a question mark, other Chinese or something is normal
Reply to discussion (solution)
This is related to your editor, the space is not a standard spaceCan youecho Base64_encode (' Your utf-8 string '
thinkphp thinkphp Select
$reg = M (' Doctor ');
$data =$_post[' text '];
$map [' name '] = Array (' Like ', '% $data% ');
$result = $reg->where ($map)->select ();
$this->doctor = $result;
$this->display (' Search ');
Do not know which place is
PHP Plugin
Now the need is, click on a post button, pop up the first box, and then fill in some information inside, if the current is logged in the state, some information to use his account information to fill the form, no landing, let users fill
The information read from the page is roughly the same:
=bd=da=c6=f8=c3=c5=bf=d8=d6=c6=c6=f7=bf=d8=d6=c6=c4=a3=bf=e9=
What is this format, and how do I convert it to normal form?
Reply to discussion (solution)
This is QP (quote-printable)
Mail server Phpmailer
Use Phpmailer to send mail to a mailing groupIn addition to the account password server port number are there any parameters that need to be configured? I use the command line telnet directly to send the mail group can be
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