FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Hard To Explain.





cr3ativ3
Topic Resolved since the source code may need to be privated I have taken it out.
hexkid
cr3ativ3 wrote:
Code:
// ...
/* NO NO NO ...

foreach($matches[1] as $value) {
//Change the number up or down to display more matches.
if($i == 2) {
      break;
   }
 if(strlen($value) > 100) {
      $title = substr($value, 0, 100).'...';
   }else{
      $title = $value;
   }
   //Put the text on the image. second is font size third is x coordinates fourth is y coordinates fifth is the text variable fifth is the text colour.
imagestring($image, 3, 55, 38, $title, $textcolor);
$i++;
}

... NO NO NO */

if (strlen($matches[8] > 100)) {
  $title = substr($matches[8], 0, 100) . '...';
} else {
  $title = $matches[8];
}
imagestring($image, 3, 55, 38, $title, $textcolor);
// ...
cr3ativ3
Nvm, I just figured out the problem.
Related topics
Hard disk having problems
Maximum Hard Disk Capacity
Hard drive inside a hard drive?
Third Wheel : (
Explain what the Holy Spirit is???
Have you ever overloaded your hard drive?
Can games grow beyond the hard-core set?
jocks are us
What computer languages you know?
Tutorials
visit counting *php*
Spam warnings...
Subforums
question about hard disk
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.