Jump to content

BRADERY

Members
  • Posts

    88
  • Joined

  • Last visited

    Never

Everything posted by BRADERY

  1. <?php $a = 2; $b = 3; $z = fopen("test.txt", 'a+'); if($a > $b) { echo "A is bigger than B"; } elseif fwrite($z, $b); fclose($z); ?> is there a way to get elseif to write to a file? so if b is bigger than a it writes $b to a file?
  2. I've been using php for about 2 years now, creating scripts to automate things such as creating myspace accounts, scripts to automate adding applications to a myspace profile, accepting myspace friend requests, automating things in applications on both facebook and myspace, PHP has treated me well, running all of the scripts I create in the CLI, I have not once used PHP for web design and I know that is its main purpose, I was just wondering if there was another language I should start to study that would be better in the long run for simple automation like the things mentioned above, also file manipulation on the computer but mostly for automating things online. Here are some videos of scripts similar to the ones I use http://www.youtube.com/watch?v=eU8Oix5Zcm0 http://www.youtube.com/watch?v=qGNt8ldkReE So tl;dr: Im just curious as to what other languages would be better for automation,. Thanks
  3. I wrote this script <?php $authKeysFile = "Authkeys.txt"; $keys = file($authKeysFile); foreach($keys as $aKeys) { $Keys = explode(' ', $aKeys); $AccountInfo = array($Keys[0], $Keys[1]); } for($cwb=1; $cwb!=count($AccountInfo); $cwb++) { $Renew = file_get_contents("http://mob-dynamic-lb".rand(1,5).".mobsters0".rand(1,9).".com/mob/sign_in_secured?user_id=".$AccountInfo[0]."&sign_in=true&auth_key=".$AccountInfo[1]); $NewAuth = explode("<auth_key>", $Renew); $NewAuth = explode("<", $NewAuth[1]); $NewKeys = $AccountInfo[0]." ".$NewAuth[0]; $z = fopen('NewAuthKeys.txt', 'a+'); fwrite($z, $NewKeys."\n"); fclose($z); } echo "Done updating keys...".sleep(10000); ?> Now.. the content that is in the "AuthKeys.txt" is 537168014 10d668a39b59ffb63c7621279ff1246f12159dba 530830355 c91a3675f64353a56091449672b4af12a256336d What the script does is loads the 9 Digit id and the auth key in the url and then writes to the file NewAuthKeys.txt.. the problem is that it is only writing the last id from the first text file after updating.. I could put 100 IDs and auth keys in the file and it would only update and write the last id to the text file.. what can I do to fix this
  4. something so simple I cannot figure out.. I didnt think of count(); thanks
  5. It echos that there are to many.. how would I do this Saying like if I had 100 $Variable[] it would echo that there are to many? $Variable[] = ""; $Variable[] = ""; $Variable[] = ""; $Variable[] = ""; $Variable[] = ""; $Variable[] = "";
  6. $id[] = 12345; $id[] = 12345; $id[] = 12345; $id[] = 12345; $id[] = 12345; how would I combine these into a string "12345,12345,12345,12345,12345"
  7. So say I have a script, it calls for a text file in the script. Instead of putting the name of the text file is there a way I can run the script then type the name of the file in the CLI?
  8. What is the best php to exe compiler that would compile a php script to exe then there can be a settings file like this Mod edit: Link Removed
  9. man I write PHP like a fuckin 3rd grader, but it works <?php $login = "fblogin.txt"; $target = ""; $key = file($login); foreach($key as $keys){ $info = explode(' ', $keys); $id = $info[0]; $auth = $info[1]; echo "$info[0] || $info[1]"; sleep(1);} echo "Sleeping 10 seconds".sleep(10);
  10. So I have a text file "name.txt" in the text file I have ids and auth keys set up like this 1234564 abcdfhu 3123900 sdkoao etc How could I make it to where the ids are $ids and the auth keys are $auth_keys? I've tried using foreach() but I cant get it
  11. Instructions for creating accounts and user logins?! Where do I find these simple instructions?!
  12. create accounts on sites such as facebook, myspace, twitter, youtube, etc and user logins for such sites as well?
  13. BRADERY

    wtf?

    Only way to avoid that is putting it in quotations correct? I love the video in your sig too, thats like my newbie ass haha
  14. BRADERY

    wtf?

    a number variable I had set was $variable = 100000219710948; I figured you could put any sized number as a variable without putting it in quotations I had it echo out without quotations and it turned out as 1.0000021971095E+14 It changes the number completely, any reason why it does this?
  15. I've tried $account = print_r($account_data[$i][0]); also.. didnt work lol
  16. Ok I need to write an array to a file here is the code if($place[2] < 10){ echo "Account Invalid"; $account = var_dump($account_data[$i][0]); echo $account; $fp3=fopen('invalid.txt', 'a+'); fwrite($fp3, $account); fclose($fp3);} when I try if($place[2] < 10){ echo "Account Invalid"; $account = var_dump($account_data[$i][0]); echo $account; $fp3=fopen('invalid.txt', 'a+'); fwrite($fp3, $account_data[$i][0]); fclose($fp3);} I just get "Array[1]" written to the file.. What can I do to write the array to the file? Thanks
  17. say I have a file, it has information in it in this format 123489 ABDFDS 232356 DSFKWE and so on, new number and letters on each line separated by a space, what do I have to do so that like 123489 and 232356 would be in the aray numbers[] and the ABDFDS and DSFKWE would be phrases[] any ideas? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.