<?PHP/* * * PHP options and information that affect PHP behavior * assert_options-set/Get various flags for assertions assert-Check if an assertion is Falsecli_get_process_title-returns t The He current process titlecli_set_process_title-sets the process titledl-runtime loads a PHP extension extension_loaded-checks if an extension has already loaded the GC _collect_cycles-forces the collection of all existing garbage cycles gc_disable-deactivate circular reference Collectors gc_enable-Activate circular reference collectors gc_enabled-return the status of circular reference counters get_cfg_var-get PHP The value of the configuration option get_current_user-gets the current PHP script owner name get_defined_constants-returns an associative array of all constants, the key is the constant name, and the value is a constant value get_extension_funcs- Returns an array of module function names get_include_path-gets the current include_path configuration option get_included_files-returns the Arrayget_loaded_exte of the include and require file names nsions-returns all arrayget_magic_quotes_gpc-that compile and load the module name to get the current MAGIC_QUOTES_GPC configuration option settings get_magic_quotes_runtime-get current Magic_ Quotes_runtime The activation status of the configuration option get_required_files-alias get_included_filesgetenv-Gets the value of an environment variable getlastmod-gets the last modified time of the page getmygid- Gets the gidgetmyinode-of the current PHP script owner gets the index node (inode) of the current script getmypid-gets the PHP process idgetmyuid-gets the php script owners ' uidgetopt-from the command-line argument list Option getrusage-Gets the current resource usage ini_alter-alias Ini_setini_get_all-get all configuration options ini_get-get the value of a configuration option ini_restore-Restore the value of the configuration option ini_set-set the value for a configuration option magic_quotes_runtime-alias Set_magi c_quotes_runtimemain-virtual mainmemory_get_peak_usage-Returns the peak value assigned to PHP memory memory_get_usage-returns the amount of memory allocated to PHP Php_ini_loaded_ file-get the path to the loaded php.ini file php_ini_scanned_files-return the list of. ini files parsed from the additional INI directory php_logo_guid-get the logo guidphp_sapi_name- Returns the interface type between the Web server and PHP php_uname-returns information about the system running PHP phpcredits-print PHP contributor list phpinfo-output about PHP configuration phpversion-get current ph P version putenv-Set the value of the environment variable restore_include_path-restore Include_path The value of the configuration option set_include_path-settings include_path configuration options set_magic_quotes _runtime-Setting the activation state of the current magic_quotes_runtime configuration option set_time_limit-setting script maximum execution time sys_get_temp_dir-returns the directory used for temporary files Version_compare -Compare two "php normalized" version number string zend_logo_guid-get Zend guidzend_thread_id-returns the unique identifier of the current thread zend_version-get the version of the current Zend engine * * * Please strict Careful not to use the above functions easily, it is easy to cause problems in the running environment, the following code is all commented this is why **///Ini_set ();//echo ini_get ("post_max_size");//if (' curl ') {//echo ' OK ';/}/* * * PHP Network function * *1.checkdnsrr-to the specified host (domain name) or IP address to do DNS traffic check 2.closelog-close connection to system logger shut down the system connection log 3.define_s yslog_variables-initializes all syslog related variables4.dns_check_record-alias checkdnsrr5.dns_get_mx-alias Getmxrr6.dns _get_record-gets the DNS record for the specified host 7.fsockopen-open a network connection or a UNIX socket connection 8.gethostbyaddr-get the hostname that corresponds to the specified IP address 9.gethostbyname-get the IPV4 address corresponding to a given Internet host name10.gethostbynamel-get a list of IPv4 addresses corresponding to A given Internet host name11.gethostname-gets the host Name12.getmxrr-get MX records corresponding to a given internet Host name gets MX record 13.getprotobyname-get protocol number associated with protocol Name14.getprotobynumber-get protocol n Ame associated with protocol Number15.getservbyname-get port number associated with an Internet service and PROTOCOL16.G Etservbyport-get Internet service which corresponds to port and protocol17.header_register_callback-call a header func Tion18.header_remove-remOve previously set headers19.header-sends a custom HTTP message 20.headers_list-returns A list of response headers sent (or ready to Send) 21.headers_sent-checks If or where headers have been sent22.http_response_code-get or Set the HTTP response code 23.inet_ntop-converts a packed Internet address to a human readable representation24.inet_pton-converts a human readab Le IP address to it packed in_addr representation25.ip2long-converts a string containing an (IPV4) Internet Protocol do Tted address into a proper address26.long2ip-converts an (IPV4) Internet network address to a string in Internet stand ARD dotted Format27.openlog-open connection to system logger28.pfsockopen-open a persistent network connection or a UNIX socket connection. 29.setcookie-send a cookie30.setrawcookie-send a cookie without urlencoding the cookie value31.socket_get_status-alias stream_get_meta_data32.socket_set_blocking-alias stream_set_blocking33.socket_set_timeout-alias Stream_set_ Timeout34.syslog-generate a System Log message **/Echo Getmygid();//gets the GID of the current PHP script ownerEcho' <br><br><br> ';Echo Getmyuid() ;//get the UID of the PHP script ownerEcho' <br><br><br> ';Echo Get_current_user();//gets the current PHP script owner nameEcho' <br><br><br> ';Echo Getmyinode();//Gets the index node (inode) of the current scriptEcho' <br><br><br> ';Echo Getlastmod();//gets the last time the page was modifiedEcho' <br><br><br> ';$r= Dns_get_record ("web.gz.1251229535.clb.myqcloud.com");//DNS traffic check for the specified host (domain name) or IP addressVar_dump($r);Echo' <br><br><br> ';EchoCHECKDNSRR ("web.gz.1251229535.clb.myqcloud.com");//get the DNS records for the specified host note! If there is a router or exchange map, it will cause the query to the IP address and the actual wrongEcho' <br><br><br> ';Echo gethostbyname("web.gz.1251229535.clb.myqcloud.com");//get the Internet host name for the IPv4 addressEcho' <br><br><br> ';$ee=Gethostbynamel("web.gz.1251229535.clb.myqcloud.com");//gets the IPv4 address of the list corresponding to a given Internet host nameVar_dump($ee);Echo' <br><br><br> ';//Echo gethostbyaddr ("web.gz.1251229535.clb.myqcloud.com");//Gets the host name of the specified IP address//echo ' <br><br><br > ';
Extensions and network functions that affect PHP behavior