Client (PHP):
send.php
[PHP]
$fp = Fsockopen ("127.0.0.1", 1024x768, $errno, $ERRSTR, 10);$filename = ' 2012_07_23.zip '; The file to sendFwrite ($FP, $filename. "\ r \ n"); Write file name Java side with. ReadLine (). The first line is the file
Total float time =ls-es or lf-ef
Total float time is for the same activity
Free float time is for two immediate activities.
Free time = The earliest start time of the tight post activity-the latest end time of the pre-tightening activity
Total time
Today is the last day of the National Day holiday, do not engage in business code, see the group to discuss how PHP to determine the array order, I have implemented a complexity of n algorithm, posted code for everyone to learn
[PHP]
function
function Sendheader ($num, $rtarr = null) {
static $SAPI = null;
if ($sapi = = = null) {
$sapi = Php_sapi_name ();
}
return $SAPI + +;
Look at the PW source code to find the SetHeader () function using the static keyword, it is strange, has not been
The original string 1,2,3,4,5,6,
Remove the last character "," and the end result is 1,2,3,4,5,6
The code is as follows:
$str = "1,2,3,4,5,6,";$newstr = substr ($str, 0,strlen ($STR)-1);Echo $newstr;Echo 1,2,3,4,5,6The system comes with a function
mkdir if the parent directory does not exist, it just cannot be created. Please note this point. I'm wasting a lot of time on uploading pictures that Wang Jong said.
Second point of Knowledge: Returns the actual path function of a document:
The Array_diff_ukey () function uses a callback function to compare the difference set of an array to a key name
functionThe function will return an array,The array contains all the values in array1 but not the key names in any of the other
JTemplate.class.php
001
002/**003* @author Jiawei004* @Completed in 2012-6-29 0:23005*/006Class jtemplate{007Temporarily storing an array with variables passed in by the Assign function008Private $templateVar = Array ();10XTemplate
The Array_fill () function fills an array with the given value
functionThe function returns a new array,The array is populated with the specified amount of the specified content."Scope of Use"PhP4 > 4.2.0, PHP5.UseArray Array_fill (int start_index,
Array_merge_recursive () to merge one or more arrays recursively
functionThe function merges the cells of one or more arrays, and the values in an array are appended to the previous array.Returns an array as the result. If the input array has the
Array_multisort () Sorting multiple arrays or multidimensional arrays
functionThis function can be used to sort multiple arrays at once, or to sort a multidimensional array based on a dimension or multidimensional"Scope of Use"PhP4, PHP5.UseBOOL
Observer pattern
The observer design pattern makes it easier to create and view objects of the state of the target object, and provides non-coupled, top-of-the-shelf functionality for core objects. The observer design pattern is very common, in the
Array_intersect () computes the intersection of an array
functionThe function will return an array,The array contains all the values in array1 but not the key names in any of the other parameter arrays.Note The key name remains the same"Scope of
Usually use $_post['],$_get['] to get the form parameters will appear notice:undefined index:--------;
Although it is possible to hide this hint by setting the error display, there is a hidden danger that these prompts are logged in the server's
What is an adorner?
Adorner mode, which adjusts some of the contents or functions of an existing object, but does not need to modify the original object structure, you can use the adorner to set the
Application Scenarios
Design a UserInfo class with
Recently with Php+js+mysql did a imitation WEBQQ curriculum design, Harvest a lot, now will be the key technology to summarize, for everyone to learn and exchange.
Email Verification
When the user registers, will enter the mailbox in the text box,
function init in phpexcel/shared/ole/ole_file.php
$this->_tmp_filename = Tempnam ($this->_tmp_dir, "Ole_pps_file");
Under Join
if ($this->->_tmp_filename==false) {
$this->->_tmp_filename= "c:\\windows\\temp\\". Time (). " TMP
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