error messages

brett's picture

If it cannot save the thumbnail then $phpThumb->RenderToFile($thumb) is failing. I assume it is to do with your mkdir not creating the full path. Perhaps it is just creating 1 folder per run. So if you have an image 3 folders deep it would take 3 refreshes to generate. Would you be able to confirm this?

To remove the second error (Warning mkdir), just put an @ in front of mkdir. I have now done this in the demo code above.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <b> <br> <p> <a> <strong> <cite> <em> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You may use [img:xx] tags to display uploaded files or images inline.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <css>, <diff>, <drupal5>, <html>, <javascript>, <php>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options