Less Taxing capture code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cloggin55
Forum Newbie
Posts: 3
Joined: Thu Apr 08, 2010 5:57 am

Less Taxing capture code

Post by cloggin55 »

So my web host said the code below is too taxing on their servers. Does anyone know one that would work better?

The code simply transfers a query string.

<?php echo str_replace('-', ' ', $_GET['ad'])?>

Any help would be appreciated.

Thanks!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Less Taxing capture code

Post by requinix »

There is no way that code is "taxing" anything.

If anything, it's probably code earlier in the file.
cloggin55
Forum Newbie
Posts: 3
Joined: Thu Apr 08, 2010 5:57 am

Re: Less Taxing capture code

Post by cloggin55 »

Could it be the query string at the end of the URL?

It would be: .com/id=tag

Than the "tag" is transfers to where the code is placed.

Here's the message they sent:

I forced to take immediate action for the health of the server. Unfortunately I do not have any specific recommendations for this script, however, in general, adding some sort of caching mechanism, where the script does not need to generate a new page with every request, helps to lower the over load that a script will cause. Likely the original author or support group of the software that you are using will be able to help you to understand how to add something of this nature.

Any ideas?
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Less Taxing capture code

Post by Jade »

Can you post the entire script so we can see what its actually doing?
Post Reply