Jump to content

aires

New Members
  • Posts

    3
  • Joined

  • Last visited

aires's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The full document is http://timthumb.googlecode.com/svn/trunk/timthumb.php
  2. protected function calcDocRoot(){ $docRoot = @$_SERVER['DOCUMENT_ROOT']; if (defined('LOCAL_FILE_BASE_DIRECTORY')) { $docRoot = LOCAL_FILE_BASE_DIRECTORY; } if(!isset($docRoot)){ $this->debug(3, "DOCUMENT_ROOT is not set. This is probably windows. Starting search 1."); if(isset($_SERVER['SCRIPT_FILENAME'])){ $this->debug(3, "Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot"); } } if(!isset($docRoot)){ $this->debug(3, "DOCUMENT_ROOT still is not set. Starting search 2."); if(isset($_SERVER['PATH_TRANSLATED'])){ $docRoot = str_replace( '\', '/', substr(str_replace('\\', '\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); $this->debug(3, "Generated docRoot using PATH_TRANSLATED and PHP_SELF as: $docRoot"); }
  3. Hello, I need help. Parse error: syntax error, unexpected 'SCRIPT_FILENAME' (T_STRING) in xxxxxxxxwp-content/themes/satish/thumb/timthumb.php on line 841 Line 841 has this: $this->debug(3, "Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot"); How can i resolve 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.