Jump to content

need some help with reading file and assigning variables


BRADERY

Recommended Posts

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

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);

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.