Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:37:15+00:00 2026-05-27T07:37:15+00:00

Is it possible to redirect if the image specified at url src=nothere is not

  • 0

Is it possible to redirect if the image specified at url “src=nothere” is not an actual path I need to redierct to a no-existing image or something similar. I have a problem in deciding on the regex to be used here ? And how to know if its not existing.

https://www.temptemp.com/PhpThumb/phpThumb.php?src=nothere&w=140px&h=120px&q=100 

Thanks

Gayan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:37:16+00:00Added an answer on May 27, 2026 at 7:37 am

    Are you using phpThumb class?

    phpThumb.config.php

        // * Error message configuration
    $PHPTHUMB_CONFIG['error_image_width']           = 400;      // default width for error images
    $PHPTHUMB_CONFIG['error_image_height']          = 100;      // default height for error images
    $PHPTHUMB_CONFIG['error_message_image_default'] = '';       // Set this to the name of a generic error image (e.g. '/images/error.png') that you want displayed in place of any error message that may occur. This setting is overridden by the 'err' parameter, which does the same thing.
    $PHPTHUMB_CONFIG['error_bgcolor']               = 'CCCCFF'; // background color of error message images
    $PHPTHUMB_CONFIG['error_textcolor']             = 'FF0000'; // color of text in error messages
    $PHPTHUMB_CONFIG['error_fontsize']              = 1;        // size of text in error messages, from 1 (smallest) to 5 (largest)
    $PHPTHUMB_CONFIG['error_die_on_error']          = true;     // die with error message on any fatal error (recommended with standalone phpThumb.php)
    $PHPTHUMB_CONFIG['error_silent_die_on_error']   = false;    // simply die with no output of any kind on fatal errors (not recommended)
    $PHPTHUMB_CONFIG['error_die_on_source_failure'] = true;     // die with error message if source image cannot be processed by phpThumb() (usually because source image is corrupt in some way). If false the source image will be passed through unprocessed, if true (default) an error message will be displayed.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to attach a file using mailto: redirect in javascript? Something like
I need to write a rule to redirect any image file to a specific
Is it possible to redirect an image to a dynamically generated image(using PHP)? I
is it possible to redirect a static seo friendly url address to a controller/action
Is it possible to redirect all of the output of a Bourne shell script
Is it possible to redirect to a different view from a controller? For example,
I'd like to know if it is possible to redirect StreamWriter output to a
Is it possible to return a 307 Temporary Redirect from a controller in ASP.NET
Is it possible to do a redirect in the routes file of a Rails
Is it possible to catch a classical ASP Scripting Timeout and redirect to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.