Jump to content

rendsonn

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by rendsonn

  1. use

    ('/^http://'.@$_SERVER['HTTP_HOST'].'(.+)/',

     

    because you started your regexp with ^ it expect it to end the pattern with ^

    that's why people mostly use / pattern / or  ~ pattern ~

     

    I get this:

    Warning: preg_match() [function.preg-match]: Unknown modifier '/' in

     

    I'll read the manual and see if I can find another way to insert this script, anything I post here again

  2. I'm having trouble with a role in a wordpress site that I made

    I think the script was that I installed another version, so I

    some adjustments in it, among those changes have modified this function

     

    if (@$_GET['src'] && !@$PHPTHUMB_CONFIG['allow_local_http_src'] && eregi('^http://'.@$_SERVER['HTTP_HOST'].'(.+)', @$_GET['src'], $matches)) {

    $phpThumb->ErrorImage('It is MUCH better to specify the "src" parameter as "'.$matches[1].'" instead of "'.$matches[0].'".'."\n\n".'If you really must do it this way, enable "allow_local_http_src" in phpThumb.config.php');

    }

    for this:

    (@$_GET['src'] && !@$PHPTHUMB_CONFIG['allow_local_http_src'] && preg_match('^http://'.@$_SERVER['HTTP_HOST'].'(.+)', @$_GET['src'], $matches)) {

    $phpThumb->ErrorImage('It is MUCH better to specify the "src" parameter as "'.$matches[1].'" instead of "'.$matches[0].'".'."\n\n".'If you really must do it this way, enable "allow_local_http_src" in phpThumb.config.php');

    }

     

     

    It was supposed to make some images appear as thumbnails on the home page

    my site, but they do not appear and I got the following error:

    Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /home/pontocom/public_html/wp-content/themes/Comfy/scripts/phpThumb/phpThumb.php on line 160

     

    Is there some way that I can take to fix this error?

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.