I could use some help with almost something similar:


I am trying to get php to read the folder name that php is in and write it to a text file.

i.e. www.mydomain.com/john

I need the script to write john to a text file

although this will not work; something close:

<?php

$_SERVER["REQUEST_UR I"]
$your_data =($_SERVER);

...