Jump to content

hishamomran

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hishamomran's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://website.com/file.php?value=12345 This link is used to submit the value as a phone number and a SMS is sent to that number. What I'm trying to do here is automate the bulk sending of one SMS to multiple numbers. So I load the phone number from the text file and append each phone number to the end of the URL so that the URL is submitted, the SMS is send, and then moves on to the next URL.
  2. Yeah I know about the tabs part, but why is the loop parsing only my first result? How would I go about changing that?
  3. I seem to be having a problem with this code. It's supposed to parse the file info.txt and explode comma separated values into an array and then add each value from that file to the end of a URL and POST that url. What I'm getting now is just the first number in the array. Anyway, here's the code: <?php $FileName = "info.txt"; $FileHandle = fopen($FileName,"r"); $FileContent = fread ($FileHandle,filesize ($FileName)); fclose($FileHandle); // You can replace the \t with whichever delimiting character you are using $SplitContent = explode("\t", $FileContent); foreach($SplitContent as $CurrValue) { header('Location: http://website.com/file.php?value=' . $CurrValue); } ?>
×
×
  • 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.