I'm trying to take a rather long piece of JavaScript from another file and convert it into a string/array. Up until yesterday, the following worked perfectly:
$hitbox_string = join('', file($bases.'/templates/hitbox_code.txt'));
Now the server guy's decided to turn off functions like file() and fopen() for security reasons, citing curl and fsockopen as alternatives. I've tried examples of both, plus half a dozen other functions but can't get them to work. I don't even think the curl library is installed on our server. Sacrificing chickens doesn't help much either. Sacrificing the server guy may have unexpected consequences.
Also willing to just paste the JavaScript code into the page calling it, but then I'm still at a bit of a loss with the syntax.
Help me programming gurus! 😕