How to write the unique identifier in the php-JS form, please guide, thank you!

php form javascrpit layer += ‘registerx’; layer += ‘ ‘; //layer_cont layer += ‘*:<input type="hidden" name="uniqid" id="uniqid" value="” />’; layer += ‘Account*:’; layer += ‘Password*:’; layer += ‘Confirm password*:’; layer += ‘Email *: ‘; layer += ”; layer += ”; It is impossible to write like this, but I I don’t know how to write it. Is it okay to write in the PHP file of a verification form after the JS form jumps. . But did the generated uniqid change again?

nick-seek php, remote capture code, thank you

nick-seek php, remote capture code, thank you

nickphp parameter curl Crawl website http://www.131458.comSubmit to http://www.131458.com/handler/load.aspx/Load through POST query Pass the parameter nick=z224324Get the result of Figure 2, how does curl capture the result of Figure 2? Figure 1:Picture 2:

java-Continue to ask for the second wave of help, that master can write this Javamd5 method into a php version, and the encryption results must be consistent, thank you!

javaphp encryption md5 Continue to seek help for the second wave, who can write a php version using the Java md5 method, and the encryption results are consistent, thank you, there is a master in the first wave I wrote one, but the encryption result is different, you can refer to it! The idea of ​​java method description is as follows1. Convert the secret key and source string into byte arrays respectively2. Declare two 64-bit arrays, fill in the byte arrays of the key with XOR operation and supplement them respectively 54, 92 Fill up the length of 643. Obtain the MessageDigest object of the md5 digest algorithm4. Use one of the arrays and the array of the source string to update the MessageDigest digest to complete the hash calculation5. Reset the digest >6. Use another array to update the digest Use the results in 4 to start updating the digest from 0 to 16 and complete the hash calculation7. Convert the stringThe method is as followspublic String cryptMd5(String source, String key) { byte[] k_ipad = new byte[64];byte[] k_opad = new byte[64];byte[] keyb;byte[] value;try { byte[] keyb = key.getBytes(“UTF-8”);value = source.getBytes(“UTF-8”);}catch (UnsupportedEncodingException e){byte[] value;keyb = key.getBytes();value = source.getBytes();}Arrays.fill(k_ipad, keyb.length, 64,…

java-Who can write a php version of my Java md5 encryption method, thank you!

phpjavamd5 The master can write my Java md5 encryption method into a php version, thank you, the Java code is as follows! The idea described by the person who wrote this is as follows1. Convert the secret key and the source string into byte arrays2. Declare two 64-bit arrays, fill in the byte arrays of the key with XOR operations and fill them in Supplement 54 and 92 respectively to fill up the length of 643. Obtain the MessageDigest object of the md5 digest algorithm4. Use one of the arrays and the array of the source string to update the MessageDigest digest to complete the hash calculation5. Reset the digest 6. Use another array to update the digest Use the results from 4 to update the digest from 0 to 16 to complete the hash calculation7. Convert the stringpublic String cryptMd5(String source, String key) { > byte[] k_ipad = new byte[64]; byte[] k_opad = new byte[64]; byte[] keyb; byte[] value; try { byte[] keyb = key.getBytes(“UTF-8”); value = source.getBytes(“UTF-8”); } catch (UnsupportedEncodingException e) { byte[ ] value; keyb = key.getBytes(); value = source.getBytes(); } Arrays.fill(k_ipad, keyb.length, 64, 54); Arrays.fill(k_opad, keyb.length, 64, 92); for (int i = 0; i <keyb.length; i++)…

I am a novice in php, please help seniors, thank you~!

I just started to learn php. Because I have a little foundation before and at university, it is relatively quick to get started, but the foundation is still very weak. I am currently watching the video of teacher Han Shunping, but found that many recruitments require LAMP, so I don’t know if there are seniors who can give guidance, learning methods, etc. for the learning of linux. And where can I find more mature php cases suitable for novices, this improvement may be faster. I hope that the seniors who saw Xiaosheng’s problem will not hesitate to guide, Xiaosheng hereby thank you~ Response content: I just started to learn php. Because I have a little foundation before and at the university, I can get started relatively quickly, but the foundation is still very weak. I am currently watching the video of teacher Han Shunping, but found that many recruitments require LAMP, so I don’t know if there are seniors who can give guidance, learning methods, etc. for the learning of linux. And where can I find more mature php cases suitable for novices, this improvement may be faster. I hope that the seniors who saw Xiaosheng’s problem will not hesitate…

ThinkPHP form selection, such as how to select some built-in avatars and cooperate with the form, would like to hear some ideas, thank you

PHP form selection, such as some built-in avatars, how to choose and cooperate with the form, would like to hear some ideas, thank you Response content: PHP form selection, such as built-in avatars, how to select and cooperate with the form, I want to hear some ideas, thank you Put a hidden input as the image address input, click on the avatar, put the avatar address in the hidden input, and submit the form as usual

Programmer-Who can write a PHP encryption and decryption function, can customize the encryption and decryption key, thank you

Who can write a PHP encryption and decryption function, can customize the encryption and decryption key, thank you Response content: Who can write a PHP encryption and decryption function, can customize the encryption and decryption key, thank you When I first learned VB in junior high school, I wrote an encrypted function. The general principle (process) is like this: Plaintext Xor Key 1 to get Ciphertext 1Ciphertext 1 character by character into Get ciphertext 2 in hexadecimal ciphertext 2 Xor key 2 get ciphertext 3 //Final ciphertext There are many, many ways of encryption (if you want irreversible, you can use MD5() and other functions to achieve it, or even write one yourself, haha), you can use various tricks Coincidentally, you can find ready-made encryption functions on the Internet, but I still suggest that the owner of the question think of an algorithm by himself. After all, don’t those who engage in the Web generally try not to let people know their encryption algorithms? Write your own proprietary encryption algorithm. Still need to write? Mcrpty You can use the encryption function in Disuse, the code is as follows, very easy to use //copy from here /** * $string plaintext or…

api-PHP calls the service of sending emails from java, and some garbled characters are found in the inbox, please show me, thank you

$cOntent= ‘live’; $email = ‘[email protected]’; $myHttp = new MyHttp(); $data = array( ‘tenantid’ => UserLogicModel::getTenantId(),//tenant id ‘suject’ => $subject, ‘text’ => base64_encode($content), ‘tomail’ => $email, ‘attachmentPath’ => $attachmentPath, //”attachmentPath”:”/usr/local/files/Job Offer Notice.doc”, ‘attachmentName’ => $attachmentName, //”attachmentName”:”Job Offer Notice.doc” ); $json_data = json_encode($data); $params = “params=”.$json_data; $res = $myHttp->send(Dict::$STATIC_SEND_MAIL_URL, $params, “POST”, “”); class MyHttp { //send network request public function send($url, $data, $method, $token){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)’); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //$header = array( // ‘u:1234567777’, // ‘t:1234568888’, //); curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘token:$token’)); $tmpInfo = curl_exec($ch); if (curl_errno($ch)) { return curl_error($ch); } $stat=curl_getinfo($ch,CURLINFO_HTTP_CODE); //I know the HTTPSTAT code~ curl_close($ch); switch ($stat) { case ‘200’: if(empty($tmpInfo)) $tmpInfo='{“stat”:”ok”}’; break; default: # code… break; } if(empty($tmpInfo)) $tmpInfo=””; //Record the communication data with the api interface to the log \Think\Log::write(“http $method req[$stat]:res($tmpInfo)”,’ALERT’); return $tmpInfo; } The above is the curl code that requests the java interface, no matter how I ask, add the specified charset=UTF-8, java side $head = array(“Content-Type: application/json;charset=UTF-8”); //Solve the problem of garbled characters in the java interface, and send the json data directly curl_setopt($ch,…

There is an array problem in PHP, I urgently ask God to solve it, kneel down and ask for a solution, I hope God will help you solve it when I get up in the morning, thank you

There is an existing array like this $arr = array( ‘0’ => array( ‘0’=>array( ‘price’ => ‘118080814c7565909’, ‘count’ => ‘100’, ‘money’ => ‘200’, ), ‘1’=>array( ‘price’ => ‘118080814c7eca590’, ‘count’ => ’10’, ‘money’ => ’27’, ), ‘2’ =>array( ‘price’ => ‘118080814c7eca5901’, ‘count’ => ’19’, ‘money’ => ‘200’, ), ), ‘1’=>array( ‘0’=>array( ‘price’ => ‘118080814c7565979’, ‘count’ => ‘100’, ‘money’ => ‘200’, ), ‘1’=>array( ‘price’ => ‘118080814c7eca888’, ‘count’ => ‘101’, ‘money’ => ’27’, ), ‘2’ =>array( ‘price’ => ‘118080814c7eca59000’, ‘count’ => ‘160’, ‘money’ => ‘200’, ), ), ‘2’=>array( ‘0’=>array( ‘price’ => ‘118080814c7565009’, ‘count’ => ‘190’, ‘money’ => ‘230’, ), ‘1’=>array( ‘price’ => ‘118080814c7eca670’, ‘count’ => ‘120’, ‘money’ => ‘217’, ), ‘2’ =>array( ‘price’ => ‘118080814c7eca5098’, ‘count’ => ‘120’, ‘money’ => ‘205’, ), ) ); What I need is to calculate the sum of the counts in the small arrays in this three-dimensional array. There are three small arrays in this three-dimensional array, and there are three other arrays in the small array. What I want is the three in the second dimension. For the sum of the array count, I foreach out and then += is to add all the counts in this three-dimensional array. I don’t need to find all the sums…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索