Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

string get_current_user()


The get_current_user function returns the name of the user who owns the script being
executed. This function isn't guaranteed to have any meaning under Windows 98.


<?
print(get_current_user());
?>


string getcwd()


The getcwd function returns the name of the current working directory, including the full
path.


<?
print(getcwd());
?>


array get_extension_funcs(string extension)


Use get_extension_funcs to get an array of the names of functions created by an
extension.


array get_loaded_extensions()


The get_loaded_extensions function returns an array of the names of the extensions
available. This includes extensions compiled into PHP or loaded with dl. Another way to
see this list is with phpinfo.


array get_object_vars(object data)


The get_object_vars function returns an array describing the properties of an object and
their values. See get_class_vars for an example of use.


boolean highlight_file(string filename)


The highlight_file function prints a PHP script directly to the browser using syntax
highlighting. HTML is used to emphasize parts of the PHP language in order to aid
readability.


<?
//highlight this file

Free download pdf