Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites
date("H:i:s F d, Y", $statInfo[10])); } else { // print UNIX version print("Device: $statInfo[0] \n"); print("INode: $statInfo[1 ...
11 Block Size Suggested block size for I/O to file, -1 under Windows. 12 Number of Blocks Number of blocks used by file, -1 unde ...
?> boolean touch(string filename, integer time) The touch function attempts to set the time the file was last modified to the ...
Compressed File Functions The functions in this section use the zlib library to work with files compressed with GNU compression ...
The gzgetc function returns a single character from a compressed file. It expects a file handle as returned by gzopen. <? // ...
<? // open compressed file and print each line if($myFile = gzopen("data.gz", "r")) { while(!gzeof($myFile)) { $myLine = gzge ...
// send the entire file to browser gzpassthru($myFile); ?> boolean gzputs(int file_handle, string output, integer length) The ...
/* * print a file, then print the first line again / // open a local file if(!($myFile = gzopen("data.gz", "r"))) { print("file ...
Given a valid file handle, gztell returns the offset of PHP's internal file pointer. <? // open a file if(!($myFile = gzopen( ...
file through the Web server would have arbitrary control over the system. Keep in mind, however, that PHP can be compiled as a s ...
<? $group = posix_getgrgid(posix_getgid()); print("Group: {$group['name']}\n"); ?> array posix_getgrnam(string group) The ...
The posix_getpwuid function returns an array describing an entry in the user database based on a given user ID. The elements of ...
The posix_getsid function returns the process group ID of the session leader. integer posix_getuid() The posix_getuid function r ...
print("$key: $value\n"); } ?> string posix_ttyname(integer descriptor) The posix_ttyname function returns the name of the ter ...
to you inside your script. Others communicate with either a system log or a remote debugger. Practical approaches to debugging a ...
Flag Description ASSERT_ACTIVE (^) Asserts are ignored unless activated with this option. ASSERT_BAIL (^) Exits the script if as ...
integer connection_status() The connection_status function returns an integer describing the status of the connection to the bro ...
You can use set_time_limit to adjust the time a script is allowed to run. Alternatively, you may wish to use connection_status. ...
boolean error_log(string message, integer type, string destination, string extra_headers) The error_log function sends an error ...
matching the type of the argument being fetched. The func_num_args function returns the number of arguments available. Chapter 4 ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf