GET_CURRENT_USER(3) 1 GET_CURRENT_USER(3)get_current_user - Gets the name of the owner of the current PHP scriptSYNOPSIS
string get_current_user (void )
DESCRIPTION
Returns the name of the owner of the current PHP script.
RETURN VALUES
Returns the username as a string.
EXAMPLES
Example #1
get_current_user(3) example
<?php
echo 'Current script owner: ' . get_current_user();
?>
The above example will output something similar to:
Current script owner: SYSTEM
SEE ALSO getmyuid(3), getmygid(3), getmypid(3), getmyinode(3), getlastmod(3).
PHP Documentation Group GET_CURRENT_USER(3)
Check Out this Related Man Page
RMDIR(3) 1 RMDIR(3)rmdir - Removes directorySYNOPSIS
bool rmdir (string $dirname, [resource $context])
DESCRIPTION
Attempts to remove the directory named by $dirname. The directory must be empty, and the relevant permissions must permit this. A E_WARN-
ING level error will be generated on failure.
PARAMETERS
o $dirname
- Path to the directory.
o $context
-
Note
Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams".
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.0.0 | |
| | |
| | As of PHP 5.0.0 rmdir(3) can also be used with |
| | some URL wrappers. Refer to "Supported Protocols |
| | and Wrappers" for a listing of which wrappers |
| | support rmdir(3). |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
rmdir(3) example
<?php
if (!is_dir('examples')) {
mkdir('examples');
}
rmdir('examples');
?>
NOTES
Note
When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script
that is being executed.
SEE ALSO is_dir(3), mkdir(3), unlink(3).
PHP Documentation Group RMDIR(3)