Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-14-2010, 02:08 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 17,452
BMR777 is on a distinguished road
Default RE: Site Suspended - ways to put less strain on the server..?

It's not bandwidth that is the issue, it's the processing power required to load the images from the siggy.php file that is the issue.

Try using the following code in siggy.php instead of the current code:

PHP Code:
<?php

// Lightweight siggy.php file for laggy server...

// Include our Includes...

include("inc/functions.php");
include(
"inc/config.php");

// Get the ID of the adoptable image we want to load...

$id $_GET["id"];
$id preg_replace("/[^a-zA-Z0-9s]/"""$id);
$id secure($id);

if(
is_numeric($id)){

// Run a query to make sure that the adoptable does in fact exist...

$num 0;

$query "SELECT * FROM ".$prefix."owned_adoptables WHERE aid='$id'";
$result mysql_query($query);
$num mysql_numrows($result);

    if(
$num 0){

    
// We've got a valid adoptable here, now get the image to use...

    
$image getcurrentimage($id);

    
// Redirect to the image...

    
$location "Location: ".$image;

    
header($location);

    }
    else{

    die(
"The adoptable does not exist or is not valid.");
    
    }



}

?>
It's a special lightweight siggy.php that I use on MyAdopts, which has thousands of requests for signature images. It also doesn't use GD image text, which can eat up processing power very quickly.

Please try this out and let me know if it works better for you. :)
Reply With Quote
 


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with overloading server Skaiya Questions and Supports 2 09-10-2014 02:41 AM
500 Internal Server Error Empress_Swanbottom Questions and Supports 13 02-10-2013 12:01 PM
server owners powerchaos Webmasters Area 8 12-22-2012 07:51 AM
Other ways of growing? Rozel Suggestions and Feature Requests 1 07-03-2010 08:41 AM
Internal server Error livingingc Questions and Supports 7 06-17-2009 11:19 AM


All times are GMT -5. The time now is 02:58 AM.

Currently Active Users: 3565 (0 members and 3565 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636