the return value for end-of-file condition: while (feof($fp))
the return value for end-of-file condition: while (feof($fp)) { $buffer = fread($fp, 1024); } Copying, Deleting, and Renaming Files PHP supports functions for copying, deleting, and renaming files. Though copying and renaming files can be implemented using the read, write, and delete APIs, it is almost always easier to use the specific PHP functions: int copy(string source, string destination) The copy() function copies the file source to destination. It returns true on success, false on failure: int rename(string oldname, string newname) This function changes the name of the file oldname to newname. It returns true on success, false on failure: int unlink(string filename) The unlink()function should be used to delete a file permanently. The function returns trueon success, falseon failure. No Ev te ery file in UN IX is act uall y a link to a dis k blo ck. As lon g as the re is at lea st on e link Page 241
Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Virtualwebstudio java web hosting provider