note 57871 deleted from function.fopen by cmb

From: Date: Sun, 09 Feb 2020 08:10:53 +0000
Subject: note 57871 deleted from function.fopen by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214039@lists.php.net to get a copy of this message
Note Submitter: admin at sellchain dot com ---- TIP: If you are using fopen and fread to read HTTP or FTP or Remote Files, and experiencing some performance issues such as stalling, slowing down and otherwise, then it's time you learned a thing called cURL. Performance Comparison: 10 per minute for fopen/fread for 100 HTTP files 2000 per minute for cURL for 2000 HTTP files cURL should be used for opening HTTP and FTP files, it is EXTREMELY reliable, even when it comes to performance. I noticed when using too many scripts at the same time to download the data from the site I was harvesting from, fopen and fread would go into deadlock. When using cURL i can open 50 windows, running 10 URL's from each window, and getting the best performance possible. Just a Tip :)

« previous php.notes (#214039) next »