Home >Backend Development >PHP Tutorial >10 recommended articles about php fpassthru() function
fpassthru - Output all remaining data file pointers fpassthru (PHP 4, PHP 5) fpassthru - prints all remaining data file pointers describe internationalfpassthru(resource$process) Reads the EOF analysis's specific file pointer from the current location and writes the results to the output buffer. You may need to rewind() the file pointer to the beginning of the file if you have written to the data file. If you just want to dump the file contents to the output buffer without first modifying or seeking a specific offset, you may want to use readfile(), thus saving you a call to the fopen() function. parameter handle The file pointer must be valid and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()). return value If an error occurs, fpassthru() returns FALSE. Otherwise, fpassthru() returns the number of characters read and processed and passed through the output
1. fpassthru - Outputs all remaining data to the file pointer_PHP Tutorial
Introduction: fpassthru - Output all remaining data file pointers. fpassthru - Output all remaining data to file pointers to fpassthru (PHP 4, PHP 5) fpassthru - Output all remaining data to file pointers described by international fpassthru (resource$process)
## Introduction: Asking for advice: Detailed explanation of using PHP function fpassthru() to display pictures New learning PHP, maybe I didn’t get the idea, but it probably means something like this: wamp environment, zend framework + smarty template 1. Then use fpassthru in the action Is it possible to pass an image to display? How to write it? 2.
3. fpassthru - Output all remaining data file pointers
Introduction: fpassthru - Output all remaining data file pointers. fpassthru - Output all remaining data to file pointers to fpassthru (PHP 4, PHP 5) fpassthru - Output all remaining data to file pointers described by international fpassthru (resource$process)
4. Need for advice: Detailed explanation of using PHP function fpassthru() to display pictures, how to deal with it
##Introduction: Request for advice: Detailed explanation of using PHP function fpassthru() to display pictures New learning PHP, maybe I didn’t get the idea, but it probably means something like this: wamp environment, zend framework + smarty template 1. Then use fpassthru in the action Is it feasible to pass a picture to display? How to write it? 2.5. Introduction :Commands that can be used: popen fpassthru shell_exec exec system 1.popen resource popen (string command, string mode) Open a pipe pointing to the process that is generated by the execution of the given command command. Returns a file pointer identical to that returned by fopen(), except that it is one-way
The above is the detailed content of 10 recommended articles about php fpassthru() function. For more information, please follow other related articles on the PHP Chinese website!