| Printable Document Generation with PHP |
|
|
|
| Written by Chetankumar Akarte | |||||||||||||||||||||||||
| Tuesday, 13 March 2007 | |||||||||||||||||||||||||
Page 4 of 7 Open the template document in PHPNow the Template document has been generated. The next process is simply a matter of opening the template from within a PHP script and making the necessary modifications. To open our file using php we are using primary file-access function the fopen() function. The formal syntax of the fopen() function is as follows: fopen(string $filename, string $mode [, boolean $use_include_path ]) $filename represents the filename to open, $mode represents the "mode" under which the fopen() function is opening the file (see Table 1), and $use_include_path is a Boolean value that indicates whether the file should be looked for in the PHP include path. The fopen() function then returns a "reference" to the opened file, which is used when working with other file system functions, or returns false if the fopen() call fails.
|
|||||||||||||||||||||||||
| Last Updated ( Tuesday, 04 September 2007 ) | |||||||||||||||||||||||||