My system flow is this: First, the administrator entered the user name and password login, the system will jump directly to result.php. And I wrote this in result.php to prevent users from entering result.php access directly in the address bar.
DocumentTest
The above code is the HTML example I wrote after I finished the control, and the test was successful after it was saved to xxx.html. However, if you save this file as a xxx.php plugin, there will be a problem (all in Apache test).
This will have the value:
$a = ' {' A ': "www", "B": 2} '; $arr = Json_decode ($a, true);
This returns null:
$a = ' {' A ': ' Hello ', ' B ': 2} '; $arr = Json_decode ($a, true);
Why does this happen? How do I parse a JSON string with
PHP thinkphp buildhtml
I'm a newbie, I don't know a lot of things, huh?
$this->buildhtml (' 1 ', Html_path. /', ' Index ', ' utf-8 ');
The above sentence is what I saw on the internet, it is to use thinkphp to generate HTML but I used, I put ask it,
$i = -1;while ($i + +
Need to test data, to write 500 million data into 500 MySQL tables, directly executed with the PHP command code, why is memory exhausted?
Thanks a lot!
Reply to discussion (solution)
This previous hair, come to
Session
In a small project to find a problem, after landing on the $_session[' name ']= ' xxxx ', after the page has not appeared $_session[' name '], but run some pages always found $_session[' name '] The value of the change is a strange and
Want to get a part of the page, the code is as follows, run the result is empty, do not know why
$con = file_get_contents ("http://www.meishij.net/zuofa/gouqiboluoyinertang_5.html"); $preg = ' # (. *) # '; Preg_match_all ($preg, $con, $arr); The
Smarty Encoded Database MySQL
This is a smarty function I registered.
function CharsetUTF8 ($params) {extract ($params), $str =iconv ("gb2312", "UTF-8", $text); return $str;} $smarty->register_function ("Util", "charsetUTF8");
MySQL PHP HTML
1, Table_arr "" In the HTML code is saved. Used to display a table on a Web page.
2. The field of the code snippet in the database that holds Table_arr "" is in the text type.
My problem is that with one more save $table_arr[] content,
$ipfile = "./user.txt";
if (GET_MAGIC_QUOTES_GPC ()) {
if (! $fp = fopen ($ipfile, "A +")) {
Die ("Failed to create an online list file, please check for permissions.");
}
$time =time ();
$line = $username. "|". $REMOTE _addr. "|". $time. " \ r \
This is to be content
Tip_lb_jianjie "> Update time: 2013-05-29 00:42:36
$guize 2= "/tip_lb_jianjie\" > Update time \: (. *?)[\n*|\r*]* Content preview: (. *?) /I ";
Get a time, but to the content, you can't get it. I also used the \ r to
I found the PHP program, in order to get the value of the check box, usually give the check box's Name property plus [], for example:
New User Registration
Can not add, in other ways to replace, because I want to convert the ASP program to
The server is installing Apache
Web site is developed with the thinkphp framework, with the verification code image
Member registration page, using the Verification Code, HTML page:
When registering, the program determines the code of the
Directory of the website
D:\ Paving Mesh \nnpm.cn
D:\ more files and folders out of the storefront network
Boot. INI (folder)
-0.htm______.html
-0.jpg______.html
-0______.html
boot.ini______.html (file)
Etc
Version 1.PHP, there are now 2
1) VC9 x86 Non Thread Safe (2013-may-08 22:51:31)
2) VC9 x86 Thread Safe (2013-may-08 22:51:34)
A non-thread-safe, one thread-safe;
2.PHP in the server Apache execution Mode fastcgi/Modular, (I have been using
menu is an operation that extracts the data generation menu from the database.
I would like to refer to it on the
homepage, but it can only load the data in the template after introduction, it is not transferred from the database, which one has
Novice I want to smash Smarty modeled insert an online editor FCK but the FCK call is called with PHP code, I can not generate an edit object in the controller, in the assignment to the TPL, if the TPL in the write PHP code words This tried a few
My little brother just started to learn PHP, using curl to send an HTTP request, but the returned Chinese is all garbled.
Browsing the URL directly in the browser is like this.
But crawling with PHP is the way it is.
The code is as follows,
Boss to the site to find 10 bugs, completely no clue--
Reply to discussion (solution)
Test Ah, after running a variety of search.
Broken chain, wrong chainHandling of the wrong URLHandling of erroneous user interaction data
Broken chain,
I want to output one months of data in the template page (this one months of data when the two-dimensional array, the daily data composition of the one-dimensional array inside), but some days there is no data, I would like to judge on the template
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