Jump to content

Image host and PHP


Welling

Recommended Posts

Currently I have a small image host on my web, and the images are showed by giving the real link to the images.

But now, I'm thinking about count the times the images are viewed and don't give the real link so I think put a .php receiving all requests and this file will show the images getting them with file_get_contents().

I doubt if this will generate a high CPU usage. What do you think?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/140549-image-host-and-php/
Share on other sites

But you wouln't need to use file_get_contents(); unless you want to hide the image URL from the source code.

 

No, the images aren't for my site, it is a image host (like imageshack) people uploads the images to my web and I give them a link to use on other sites. This is why I think the load will be high

Link to comment
https://forums.phpfreaks.com/topic/140549-image-host-and-php/#findComment-735525
Share on other sites

It should be ok, but if you want to turn your site into an image hosting company like imageshack(which is the impression i am getting) then eventually you will need to get a dedicated server due to high load.

 

But all depends on how much traffic you are planning on getting.

Link to comment
https://forums.phpfreaks.com/topic/140549-image-host-and-php/#findComment-735531
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.