PHP syntax
What is wrong with this? This has wrecked every brain cell I have which is capable of processing PHP syntax.
$src = file_get_contents("SRC\' . $_POST["diglet"] . '.mew");
Expected output:
$src = the contents of: "SRC\" + (an integer) + ".mew" |
Never mind, the answer is:
$src = file_get_contents("SRC\\" . $_POST["diglet"] . ".mew");
I needed a double slash and double quotes around each constant.
Topic archived. No new replies allowed.