assing a value to DEfine

Category: PHP Questions    |    3 views
Dear folk ,

consider I define a constant value

<?php
  /*——–values.inc.php ————*/
  define("Data","MyValue")
?>

so right now I want to change the Value of Data from another page and I wold like that to be saved on Values.inc.php file , you know I’m thinking some kind of data Store ,instead of using data bases.I have seen smarty template ENgine has done this before , could some on help me !!
let me clear , next time when I open the values.. file I would like to see

<?php
  /*——–values.inc.php ————*/
  define("Data","AnotherValue")
?>

THanks

Share/Save/Bookmark

1 Star2 Stars
Loading ... Loading ...

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word