What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Something in this PHP code is causing the webserver to be unresponsive

Something in this PHP code is causing the webserver to be unresponsive
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Something in this PHP code is causing the webserver to be unresponsive
$i++;
isn't executed when a smilie was found, only ("else") when no smilie was found.

code:
$i=0;
while ($i <= count($smileys_from)){
   $pos = strpos($strUsername, $smileys_from[$i]);
   if ($pos !== FALSE){
      $imgEmote = imagecreatefrompng('resources/emotes/' . $smileys_to[$i] . '.png');
      $emotepos = imagettfbboxext($nicksize, 'resources/font/'.$imgitem[$imgdata['nick_font']], substr($strUsername, 0, $pos));
      imagecopyresized($imgBack, $imgEmote, $emotepos[4] + $imgdata['nick_x'] + $emoteoffsetx, $emotepos[7] + $imgdata['nick_y'] + $emoteoffsety, 0, 0, $emotesize, $emotesize, imagesx($imgEmote), imagesy($imgEmote));
      $strUsername = str_replace_once($smileys_from[$i], $spacer, $strUsername);
      imagedestroy($imgEmote);
   }
   $i++;
}
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
11-27-2007 08:27 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Something in this PHP code is causing the webserver to be unresponsive - by MeEtc on 11-27-2007 at 03:29 AM
RE: Something in this PHP code is causing the webserver to be unresponsive - by hmaster on 11-27-2007 at 08:07 AM
RE: Something in this PHP code is causing the webserver to be unresponsive - by mynetx on 11-27-2007 at 08:27 AM
RE: Something in this PHP code is causing the webserver to be unresponsive - by WDZ on 11-27-2007 at 08:37 AM
RE: Something in this PHP code is causing the webserver to be unresponsive - by MeEtc on 11-27-2007 at 09:36 PM
RE: Something in this PHP code is causing the webserver to be unresponsive - by WDZ on 11-27-2007 at 10:04 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On