PHP and Erlang for binary communication
There are 2 kinds of network communication: Text communication and binary communication. The text communication between PHP and Erlang is relatively simple, and there is no discussion here, which mainly
Problem with picture Verification code
A simple code to display the verification code, as follows.
for ($i =0; $i {
$r. =dechex (rand (1,15));
}
$im =imagecreatetruecolor (100,30);
$BG =imagecolorallocate ($im, 0,0,0);//The background color when
Ajax obtains the ID data, how to submit the data via post to the post page.
Ajax obtains the ID data, how to submit the data via post to the post page.
such as this, if Id= "ABC" Inside the show is: we and you ...
How can we and you this value
Write a simple php template engine by yourself
The core idea in the template engine is that the variables in the template are compiled into PHP variables for output.
Example: DEMO.TPL
{$data} {$title}
The template engine then compiles {$data}
For PHP high concurrent under the lottery program, how to avoid the repetition of the winning and the same award in many people?
My practice is: First Prize: one, Second Prize: 2, three grade: 3, so there is an award of 6, if 100 people participate
Who will help me to see the PHP login page problem, greatly appreciated
Use PHP to do the landing page, with the data in the database to verify, if the input username or password does not match the "user name or password is incorrect" error message,
How PHP Gets the current CPU usage of CentOS
Title.
I use
$str = shell_exec (' More/proc/stat ');
Or
Popen (' Top-b-N 2 | grep-e "(CPU)" ', "R");
Take the image is not accurate, each time is 0.4%, but on the server with top view change is 0.7,1.0,14
Modify a section of code
How do the following code change to http://localhost/GetAllPic.php?
url=xxx
The URL behind the url= is the URL to be submitted without the DOT submit button
Trouble knows the big Brother directly to the code, thanks
Require_
How can I assign a data loop of a tree structure queried by a database to an array?
Database
ID parentid Name Status
03e782cd-0f00-11e3-bcf6-001d608a0834 Head Office 1
49d15b3a-1798-11e3-991e-001d608a0834 55ac840c-0f01-11e3-bcf6-001d608a0834 Design
Interested in compiling the principle of
This post was last edited by xuzuning on 2012-08-27 16:40:33
Recently tried to do a grammar analysis of the east, more problems.
Please make suggestions. The code does not fit, two pages. Download Address
Easy Paging Class
This is a simple to use paging class. Just add two sentences to your original program and change them.
Post Code First
paging.php
Class Paging {public static $count = 0;public static $size = 0;public static $page = 0;static
PHP Session Validity Issue
? ? ? The Session works by creating a unique ID (UID) for each visitor and storing the variables based on this UID. The UID is stored in a cookie or transmitted through a URL.The duration of the session in PHP is 1440
Imagecolorallocate Allocation failure
$imageHand = Imagecreatefromgif ("Images/mb.gif");$color = Imagecolorallocate ($imageHand, 0,0,0);Var_dump ($color);
But my this imagecolorallocate always allocation failure, resulting in the future font is
To find a simple regular expression
Preg_match_all ('/String start (. *?) Enter/US ', $snoopy->results, $snoopy->results);
While parsing the Web page, I used the expression above to intercept the string between "string start" and the carriage return.
SQL statement seeking guidance
Table Name: table1
Field: ID value (number plus comma/number of digits indeterminate)
Content A:1 3,5
Content B:2 3,3
Content C:3 3,4,5
Content D:4 5,3,6
All I have to do is find the corresponding ID. Replace 3 in the
Move to the right, why should you select Post to get the corresponding value.
This post was last edited by qq914260102 on 2013-10-14 16:02:07
If you choose to the right, you cannot get the value, you must click once, select to get to, how to let the
Self-accumulated phpcms two times development (ii)
1. Modify PHPCMS Background Click Modify/Add content, open in a new window in the browser.First, open the content_list.tpl.php file under \phpcms\modules\content\templatesSecond, find the content
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