i use PHP variables in one of my projects and i have a file named variables.php which stores all the variables value.
<?php
$txt="Hello World!";
$x=16;
?>
I want to create an interface to edit that file’s variables instead of directly editing it in a text editor
By interface, i mean simple text and logical fields….a form. I searched for it but i have no clue from where to start
Can someone give me a clue of what i should be doing to create the mentioned thing.
note: i don’t want to use a database
I find it’s easier to use array variables for this purpose and use
var_exportto store its value inside another .php file.Then to fetch the array again:
Saving into a .php file has the benefit of speed.