I'm trying to write a setup script which creates a php file with all the settings in it.
It writes "<?php" at the beginning with no problem but when I use
echo "?>";
it doesn't get written
Write and provide the smallest and simplest script that demonstrates the problem.
Here's mine, which shows that it does get written:
<?php echo "<?php"; echo "\necho 'Hello World!';\n"; echo "?>"; ?>
I'd added the echo "?>"; after I'd written the contents to the file............
Got confused by the syntax highlighting in my php editor
D'oh 😃