I'm struggling to use a php function, fopen with multiple variables.
I have two variables: $language
is the extension ( E.G. .php ) and $url
is a random number generated at the start of the script.
Here is my code but it always throws the die statement and doesn't work
$filename = "tools/scripts/tool".$language."?id=".$url;
$fh = fopen($filename, "w") or die("There Was An Error With The Script.");
Thanks