I hope someone can help me out,
I'm trying to make an sort of CRUD system.
When I am creating a new item I want it to make a new .php file with the given title.
So I tried it myself first, with some help of w3school.
This is the code I have right now:
Code: Select all
$myfile = fopen("<?php echo $pagetitle;?>.php", "w") or die("Unable to open file!"); $txt = "test\n"; fwrite($myfile, $txt); $txt = "test\n"; fwrite($myfile, $txt); fclose($myfile);
I've checked some of my other codes and there I am able to put php inside the double quotes.
So, does anyone know how I can fix this?