TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-17-2010, 07:11 PM   #1 (permalink)
The Acquainted
 
Join Date: Feb 2008
Posts: 107
Thanks: 3
CΛSTΞX is on a distinguished road
Default 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...
__________________
Downloadic
infolizer
Send a message via MSN to CΛSTΞX
CΛSTΞX is offline  
Reply With Quote
Old 01-17-2010, 07:18 PM   #2 (permalink)
The Wanderer
Newcomer 
 
Parvus's Avatar
 
Join Date: Aug 2008
Posts: 21
Thanks: 1
Parvus is on a distinguished road
Default

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 ...*
Parvus is offline  
Reply With Quote
Old 01-17-2010, 07:25 PM   #3 (permalink)
The Acquainted
 
Join Date: Feb 2008
Posts: 107
Thanks: 3
CΛSTΞX is on a distinguished road
Default

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.
__________________
Downloadic
infolizer
Send a message via MSN to CΛSTΞX
CΛSTΞX is offline  
Reply With Quote
Old 01-17-2010, 09:00 PM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by CΛSTΞX View Post
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 View Post
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."
__________________

Village Idiot is offline  
Reply With Quote
Old 01-18-2010, 09:38 AM   #5 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

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)
codefreek is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Reflections in PHP Rendair Advanced PHP Programming 17 11-30-2011 08:41 AM
Using preg_replace to write image html with lightbox? SaintIsaiah General 2 12-23-2009 01:30 AM
Text to Image tego10122 General 5 12-18-2008 05:57 PM
Dynamicly place text on a background image ReSpawN Advanced PHP Programming 2 04-26-2008 09:37 PM
Simple GD Code For Text With A Background Image. Alex.Prisoner Advanced PHP Programming 1 01-05-2008 11:27 PM


All times are GMT. The time now is 01:01 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design