TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Write Text To Image use much CPU ? (http://www.talkphp.com/general/5229-write-text-image-use-much-cpu.html)

CΛSTΞX 01-17-2010 07:11 PM

Write Text To Image use much CPU ?
 
Hello mates,

I have a question. I am gonna write a script that writes text to image. It will like site.com?image=hello+talkphp

Everything is ok but, one of my friend told me that if it run with a lot of users in a short time, it may encourage some cpu reduce on server. He means it uses so much cpu or ram on server if it has been run by lots of visitors. So I decided to tell this to you. I am waiting your comments on this, thanks...

Parvus 01-17-2010 07:18 PM

And the question is ? the problem is ?
Offcourse it will use more and more, but so what ?

The chance for the computer to be unable to handle your users putting a text on an image is so incredibly small that I wouldn't worry a second about it.
*Unless you loop some code a few thousand times per user and whatever ...*

CΛSTΞX 01-17-2010 07:25 PM

The question is > Is it true that write text to image is a complex php function which reduces cpu when too many users are using that ?

The Problem is > Your angry comment.

Village Idiot 01-17-2010 09:00 PM

Quote:

Originally Posted by CΛSTΞX (Post 29801)
The question is > Is it true that write text to image is a complex php function which reduces cpu when too many users are using that ?

Doing anything like that with images will be processor intensive, especially with high level languages such as PHP. This won't be a problem though unless you get a lot of users.

Quote:

Originally Posted by CΛSTΞX (Post 29801)
The Problem is > Your angry comment.

You didn't explain your question in a clear way, I do not see how he made an "angry comment."

codefreek 01-18-2010 09:38 AM

just set your server to handle the traffic, for example at a point when there are a lot of request's on this script. Make a max-limit for the script to be run and redirect -> to offload page after the max-limit has been reached.

you can do a lot of Server/user/etc mangement To handle
this kind of scripts, You should google it.


-CF

PS: Most servers are already setup to give a offload,page
when the traffic is to high, But you could make a side,
script for extra(mangement)


All times are GMT. The time now is 05:39 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0