Jump to content

image through php curl problem


IntimateFriend

Recommended Posts

HTML/PHP question. Hi, I'm writing a project, where I must store some files on external cloud. To get files and show them to user I must send curl GET request. The respond from server (which lasts approximately 1-2 sec. for 1Mb file)  is file content (get_file_contents), which I echo out and place a link to the source attribute of img tag,

<img src="image.php?file=img.jpg">
<img src="image.php?file=img2.jpg">
<img src="image.php?file=img3.jpg"> etc.

The problem is when on one page there are many image files, requests to cloud are executed one by one (not asynchronously). How to resolve it in the most effective way?
 

Link to comment
https://forums.phpfreaks.com/topic/296410-image-through-php-curl-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.