i have a txt file of names [joe,jim,bob, ....] and i'm currently opening this file in my script then attempting to pass the names at the end of my url like below.
//myurl.com/......v1&n=joe,jim,bob
if i have
$filename = "/usr/local/names.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
how can i place the $contents variable within the url so the names are added to the end like i have in the url above?
thanks in advance