Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Optimizing a PHProxy Script
Old 11-26-2005, 08:48 AM Optimizing a PHProxy Script
ORiN's Avatar
Ultra Talker

Posts: 381
Name: Francis
Location: Singapore
Trades: 0
I am wondering if anyone here has the experience of optimizing the common anonymous proxy surfing script before. My webhost complained that my script is driving up CPU usage so I am wondering how to optimize it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ORiN is offline
Reply With Quote
View Public Profile Visit ORiN's homepage!
 
 
Register now for full access!
Old 11-26-2005, 09:42 AM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
I've got that script, and have heard of this problem before. In fact, I know of a host where proxy scripts are banned, unless only for personal use. Because of the nature these scripts work (grabbing data from a website, and then having the data downloaded from the client) they always will use up plenty of the ol' processer.

All I'd sugest would be either getting a VPS or dedicated server if you can afford one, or maybe trying expert-advice or getting a coder to do it.

Good luck
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 11-26-2005, 10:52 AM
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
hosts dont like these types of things because it has to fetch every page every time the user requests one.
I doubt there is any way of optimising it (beyond what the creater implimented) due to the nature of what it is and what it does.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 11-26-2005, 11:07 AM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Didn't I just say that?...

Maybe we posted at the same time
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 11-28-2005, 03:55 AM
Novice Talker

Posts: 6
Trades: 0
Why do not use script that just takes ready made lists from 2 - 3 web sites and launch it when you need proxies?
YuliyaP is offline
Reply With Quote
View Public Profile
 
Old 11-28-2005, 01:22 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
What about implementing your own caching? If a particular site is static, and is accessed via your proxy script a lot, save a copy in a file on the server and serve that up next time. (If you are acting as a proxy for dynamic pages this isn't sucha good idea!)
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to Optimizing a PHProxy Script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27028 seconds with 12 queries