Question: I want to store just 1 PHP variable, with only 2 options, Yes or No. 
But im was thinking, whats the best way to do this?
Is the best way to use a MySQL Database? A file? What? 

A TXT file was recommanded [here](https://stackoverflow.com/questions/5628583/best-way-to-store-serverside-data), but how can i use that properly? What CHMod? Is it safe?

Answer: 
Since "Yes or No" can be converted to "1 or 0" or "has or not has", you could simply add a file. If it exists, it means "YES". If not, it means "NO".

Random link: <http://en.wikipedia.org/wiki/File_locking#Lock_files>
Since it is server side better to use Sessions

```
<?php
session_start();
//for yes
if(yes){
$_SESSION['flag']=1;
}
.
.
.
.
//While using that sessions
if(isset($_SESSIONS,'flag')){
  //t
}
else{
}

```