Category: Php Study
How to show all files in a document?
$dirname=”E:/zhanzhongjie/chengbiao-com/chengbiao-com”; $dir_handle=opendir($dirname); while($file=readdir($dir_handle))
How to insert PHP code into HTML?
To be able to use php code on a page with an extension other than .php, you need a server which supports .htaccess files. To add an extension to be parsed for php, create or edit a file called .htaccess (with the dot first) containing the following line:
fwrite() example
Description int fwrite ( resource $handle , string $string [, int $length ] ) fwrite() writes the contents of string to the file stream pointed to by handle .
chr — Return a specific character
Description string chr ( int $ascii ) Returns a one-character string containing the character specified by ascii .