This PHP check-in source, if I want to put two account fixed in the code, how to write it? @sibang Warrior Thank you!

Source: Internet
Author: User
Tags echo date file url
This post was last edited by tangdeli98 on 2013-12-17 15:08:00

Below this PHP check-in source, if I want to put two account fixed in the code, how to write it? (thank Sibang, yesterday to help me modify the code.)

I do not PHP, only do desktop software. I try to do the following, according to the logic of my desktop software should be possible, that is, the variable is constantly re-assigned value and then execute the command. But the revised PHP code is not successfully deployed, it should be wrong. How do I write it? I want to sign multiple accounts at once. Then hang cron task up, access the php file URL link (such as HTTP://CHECKUXIN.DUAPP.COM/INDEX.PHP?ID=&PW=&VI) all signed. Get too much trouble.
Ask the PHP predecessors to help look, the more specific the better. Thanks a lot!!
-----This is my own modification of the two account to be built into the modified part (the 97th line of the complete code to change, that is, more than one assignment, the rest is not moving):----
if ($id! = "and $do = = ' vi ') {$id = ' 1355114 '//-----------------------------account 1$pw= ' 653 ' $rang =rand (333,8888); $url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $id." &pwd= ". MD5 ($PW)." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $id." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999).        Rand (10000,99999);        $cont =httpreq ($url, 1); if (Strstr ($cont, ' uid ')) {echo ' login succeeded
"; }else{echo "Login failed
"; } $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';d ie (); $id = ' 151175 '//-----------------------------account 2$pw= ' 053 ' $rang =rand (333,8888); $url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $id." &pwd= ". MD5 ($PW)." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $id." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999). Rand (10000,99999); $cont =httpreq ($url, 1); if (Strstr ($cont, ' uid ')) {echo ' login succeeded
"; }else{echo "Login failed
"; } $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';d ie ();

-------The following is the code that is available when a built-in account is not fixed:--------------------------------
         
 
  
         
 
  
 <title>Sign</title>                
 "; }else{echo "Login failed
"; } $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';d ie ();}? >
Time:
Website Home
Copyrightvi1.c.all Rights Reserved


Reply to discussion (solution)

$users =array (Array (' username1 ', ' Password1 '), Array (' username2 ', ' Password2 '), Array (' Username3 ', ' password3 '),// ....);/ Each??? of array? And then follow? Line foreach ($users as $k = = $v) {$rang =rand (333,8888); $url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $v [0]." &pwd= ". MD5 ($v [1])." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $v [0]." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999). Rand (10000,99999), $cont =httpreq ($url, 1), if (Strstr ($cont, ' uid ')) {echo ' login successful
";} Else{echo "Login failed
";} $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';} Unset ($users);d ie ();

$users =array (Die ();
Thank you very much!! I'll go to the test. Thanks a lot!!


Just testing I don't know if it's my space. There is a temporary problem with the deployment error. My space does not indicate what is wrong. I'll test it later.
Ask the code to simply replace 97-111 lines of the original code, right?
Here is my simple replacement of 97-111 lines after the complete code: Please look, from the code, the complete code is so OK? (If my three accounts were an array (' 138999 ', ' PD1 '),
Array (' 137999 ', ' pd2 '),
Array (' 136987 ', ' pd3 '))

         
 
  
         <title>To</title>                
 $v) {$rang =rand (333,8888); $url = "http://im.uxin.com:8887/login?sn=". $rang. " &account= ". $v [0]." &pwd= ". MD5 ($v [1])." &pv=android&v=2.8.4&sign= ". MD5 ($rang. $v [0]." K1oet&yh7@eqnp2xdtp1o/vo= "). &netmode=1&brand=xiaomi&model=mi+2sc&osv=4.1.1&imei= ". Rand (10000,99999). Rand (10000,99999). Rand (10000,99999), $cont =httpreq ($url, 1), if (Strstr ($cont, ' uid ')) {echo ' login successful
";} Else{echo "Login failed
";} $url = "http://im.uxin.com:8887/signin?sn=". $rang. " &sign= ". MD5 ($rang." K1oet&yh7@eqnp2xdtp1o/vo= "); $content =json_decode (Httpreq ($url), true); echo $content [' content '];echo '
', Var_dump ($content), '
';} Unset ($users);d ie ();}? >


Deployment succeeded, but run test error line 22nd:
"Fatal error:call to undefined function curl_init () in/home/vcap/app/www/index.php on line 22"
This is the line:

        $ch = Curl_init ();

Is it right to say that it is wrong or not?


Deployment succeeded, but run test error line 22nd:
"Fatal error:call to undefined function curl_init () in/home/vcap/app/www/index.php on line 22"
This is the line:

        $ch = Curl_init ();

It is not right to say that there are mistakes. Your PHP's curl mode?

?? Your PHP's curl mode? The problem is that the same curl function that precedes this code will work, which means that my Space Curl module is open.
Replace with this built-in account code has been reported this error ... The test has been reported this wrong yesterday.

View phpinfo.php
See if the Curl extension is enabled

php generation?? There's??,???,??. Is your PHP?

php generation?? There's??,???,??. Is your PHP?
It's supposed to be my space problem. But strangely enough, the code before the replacement is fully operational.
Thanks a lot!! I'll take a look at it another day. Thank you!

OK, or are you xampp in Ben Ann? Integrated PHP can also be??

  • Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.