Leaving off the if exists test... <?php $directory=array('sites','files','data','test'); $v=''; foreach($directory as $var) { $v.=$var;...
die() is used in a lot of scripts to prevent backdoor entries etc. The correct entry point defines a global constant then all other scripts...
Have all your remote sites include the file as you've shown. Then use ftp functions in code to upload the included file whenever you change it....
If you want the value to be assigned while in the same page you just need the form action on submit to reload the page. This can be done without...
I like Drupal. It handles most of the drudgery and is really easy to make php coded pages in. For example:...
Separate names with a comma.