if i want a variable to = the name of the folder the script is placed in, how would i write that?
script is in : /var/www/html/userz/joe/
and i want the username to be 'joe'
any help offered is appreciated.
i thought the code below would work but it didnt
PHP Code:
$username = '/var/www/html/userz/ . dirname';