Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.