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