cURL running slow in WordPress

The timeout issue, in my case, was caused by the remote server not sending back any response. I had to fix configuration on the remote server to send back a response. That has resolved the issue.

Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media

You don’t need to use strpos() to figure out the extension because you’ve already parsed the URL above and stored the extension in $AllAtachmentURLextension, so all you need to do is //for Specific Extensions if( ‘docx’ == $AllAttachmentURLextension ) { // docx handling here } elseif ( ‘pdf’ == $AllAttachmentURLextension ) { // pdf handling … Read more