This is a discussion on File Handling in PHP within the PHP Programming forums, part of the Web Development category; $fh = fopen("myfile", "rb"); $data = fread($fh, filesize("myfile")); fclose($fh); Assuming that the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| $fh = fopen("myfile", "rb"); $data = fread($fh, filesize("myfile")); fclose($fh); Assuming that the file is no bigger than 8 KB, the code below should read the entire file into a string. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ruby File handling | shaalini | Ruby | 3 | 03-29-2008 12:19 AM |
| File extension of the code file & object repository file in QTP | vigneshgets | Testing Tools | 1 | 01-16-2008 11:43 PM |
| Image handling in php | varghese | PHP Programming | 75 | 11-12-2007 09:58 PM |
| How can I do error handling in php? | itbarota | PHP Programming | 1 | 09-12-2007 03:56 AM |
| Error Handling | vigneshgets | Software Testing | 0 | 05-18-2007 03:36 AM |