$now _time = Date ("H:i:s"); Get the time question, ask the seniors
$now _time = Date ("H:i:s"); Will the current time obtained be 12 o'clock? Where do you want to set up a 24-hour system?
Because
$now _time = Date ("H:i:s"), for example 15:50:22
$s _time = "09:00:00";
$a = Strtotime ($now _time);
$b = Strtotime ($s _time);
Echo out a
------Solution--------------------
The lowercase h is in 12-hour for
Ask a WP question why my website has changed its topic. after a long time, sometimes the page is still the original topic. Baidu and Google are also capturing old themes. what is the problem? I don't have a cache. I want to solve a WP problem.
Why does my website have a new theme after it has been opened for a long time. In addition, Baidu and Google captured the old theme. what's the matter? I don't have
For example, I have a common. php file with the content of lt ;? Phpif (extension_loaded ('zlib ') {ob_start ('OB _ gzhandler');} if (extension_loaded ('zlib') {ob ask a question about include
For example, I have a common. php file with the following content:
If (extension_loaded ('zlib ') {ob_start ('OB _ gzhandler ');}
If (extension_loaded ('zlib ') {ob_end_flush ();}
?>
This is a piece of cod
Ask a question about PHP assignment judgment. I just got in touch with PHP. in a MYSQL class, I saw this sentence $ condition = $ condition? 'Where'. $ condition: NULL does not mean anything clearly. could you please explain it. I personally understand it as follows: if 'where'. $ condition is empty, I want to teach you how to assign values to PHP.
I just got in touch with PHP and saw this sentence in a MYS
Html2fpdf Simple HTML to PDF Chinese garbled I can't handle it, I changed it to Html2pdf.
Vendor (' html2pdf.html2pdf ');
$html 2pdf = new Html2pdf (' P ', ' A4 ', ' fr ', true, ' UTF-8 ', Array (30, 20, 25, 25));
$html 2pdf->parsingcss->fontset (' Dejavusans ');
$html 2pdf->writehtml ("
Come out, Big Brother.This is a test ");
$html 2pdf->output ("Sample.pdf", ' I ');
echo "PDF file is generated successfully!";
The results come out Chinese characters are all
Ask for a garbled problem stored PROCEDURE: CREATEDEFINER = 'dbmaster' @ '%' PROCEDURE 'proc _ photo_album_add' (intype_idint (10), int_idint (10), inus_idint (10 ), inctimeint (10), inalbum asking for a garbled question
Stored Procedure:
Create definer = 'dbmaster' @ '%' PROCEDURE 'proc _ photo_album_add '(
In type_id int (10 ),
In t_id int (10 ),
In us_id int (10 ),
In ctime int (10 ),
In album_tit
Ask a pseudo-static question
I was making that Whois query pseudo-static.
Http://whois.hangye5.com/womai.cn this one.
Rewriteengine on
Rewritebase/
ErrorDocument 404/404.html
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php?domain=$1 [qsa,pt,l]
It's possible to use this.
But I'm going to get one more file on it now. Pseudo-Static
Whois.h
Let's ask a question: cart. php lt; on the shopping cart page ;? Phpdefine ('accesss', 1); require ('.. /init. php '); $ _ GET ['gid'] nbsp; = nbsp; (int) $ _ GET ['gid']; $ _ GET ['num'] nbsp ;= nbsp;
We are creating a shopping cart.
Cart. php on the shopping cart page
Define ('accesss', 1 );Require ('../init. php ');$ _ GET ['gid'] = (int) $ _ GET ['gid'];$ _ GET ['num'] = (int) $ _ GET ['num'];$ G
Ask Zend Studio to run the Times wrong question, thank you
Situation: Complete Zend Studio, Zend Server CE (including apche,mysql, etc., Loaded and normal)
Now I've written a php in Zend Studio,
Problem: Run as will be reported as "not Foundthe requested url/test/newfile.php is not found on the this server." What do you want to configure? or can't find the Apche server?
------Solution-----------------
I encountered many problems when writing scripts today. The following are typical examples:
CAT/etc/hosts | uniq>/etc/hosts
CAT/etc/hosts
We will find that the result is the first time there is no problem, but from the second time,/Etc/hosts fileStartBecomes emptyWhat is the specific reason? If you still don't understand it, you can ask the question. The experts say it is a file lock mechanism:
Pipe
Ask a question about the foreach () function: PHP Warning: Invalid argument supplied for foreach () in C: \ inetpub \ wwwroot \ hp \ client_list.php on line 126
Foreach ($ idcheck as $ u => $ s) // This foreach write method reports an error
Is there any way to solve this error problem without changing the original sentence (the original sentence is used in many places on the website)? Besides (blocking
Ask a php source page security question www.1.com/a.php fill in the information page
Www.1.com/ B .php save data page
B. php use a HTTP-REFERER to determine whether the source page is a. php
Does this play a certain security role?
Reply to discussion (solution)
Yes
You can also use session or add a formkey to the hidden domain for unique identification. There are many ways you can do that, but
Ask an image display question. I want to create a php page with the image search function. the url contains id = XX, and php uses get to get the value of id. If you find an image with the same file name and ID, it will be displayed. if you do not find the image, it will display upload.gif ". I am a newbie. I wrote a paragraph referring to the online example, but I cannot display the picture. Please give poi
Ask the DWZPHP website background page change question. This post was last edited by gdljw at 11:45:59.
Dwz php page feedFinally, let's use PHP + DWZ as the website background. find this code on the internet. if the trial is normal, you can change the page. However, I want to add the condition caidid = caidid pagination, directly at $ SQL = "select id, u_id, u_name, last_logintime, last_ip, last_imei, las
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.