PHP output streams - processing large amounts of data
Have you ever needed to process a large amount of data or use a function that explicitly writes to a file pointer such as fputcsv ? You can go about creating a temporary file that you then need to remove later or you can let php handle this for you. There is a special stream you can open by the name of php://temp that will allow you open/create a file descriptor that you can write and read like it were a file. The php://temp stream will remain in memory until it reaches a threshold at which poin... read more!
Posted in php | Post Comment

RSS Feed