Forum Moderators: coopster

Message Too Old, No Replies

Urgent Php Help Please

Please Help

         

Arsench

1:19 pm on May 5, 2006 (gmt 0)

10+ Year Member



I have a forum and when opening the forum it gives a error who can help me please.

[edited by: jatar_k at 4:24 pm (utc) on May 5, 2006]
[edit reason] no urls thanks [/edit]

omoutop

1:20 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



whats the code near the line with the error?

Jimmy215

1:24 pm on May 5, 2006 (gmt 0)

10+ Year Member



can you edit the file tools.php and see the line 3369?, it could be a syntax error.

Arsench

1:25 pm on May 5, 2006 (gmt 0)

10+ Year Member



Parse error: parse error, unexpected T_STRING in /home/russiaeu/public_html/forum/bitrix/modules/main/tools.php on line 3369

this is the error and this is the code and marked in yellow

if (strlen($arTmp[1])<=0 ¦¦ DoubleVal($arTmp[1])<mktime())

return true;

}

else

{

if(!@include($path))

return true;

if(DoubleVal($dateexpire)mktime())

return true;

}

return false;

}

}

class CPageCache

{

var $filename;

var $folder;

var $content;

var $TTL;

var $bStarted = false;

var $uniq_str = false;

var $init_dir = false;

function GetPath($uniq_str)

{

$un = md5($uniq_str);

return substr($un, 0, 2)."/".$un.".html";

}

function Clean($uniq_str, $initdir = false)

{

$cache_file = $_SERVER["DOCUMENT_ROOT"].BX_ROOT."/cache/".$initdir."/".CPageCache::GetPath($uniq_str);

$res = false;

if (file_exists($cache_file))

{

@chmod($cache_file, BX_FILE_PERMISSIONS);

if (@unlink($cache_file)) $res = true;

}

return $res;

}

function InitCache($TTL, $uniq_str, $initdir = false)

Arsench

1:28 pm on May 5, 2006 (gmt 0)

10+ Year Member



and this is the line 3369

if(DoubleVal($dateexpire)mktime())

Jimmy215

1:36 pm on May 5, 2006 (gmt 0)

10+ Year Member



if(DoubleVal($dateexpire)mktime())

I think there's an operator missing between ($dateexpire) and mktime() that could be a '<'

try this and see

if(DoubleVal($dateexpire) < mktime())

Arsench

1:53 pm on May 5, 2006 (gmt 0)

10+ Year Member



thank u friend its resolved the error but there are many like this and have to think how to correct.thank you very much

Arsench

2:08 pm on May 5, 2006 (gmt 0)

10+ Year Member



PLEASE WHO CAN FIND THE SYNTAX HERE I CAN NOT UNDERSTAND

<input class=\"".$button_class."\" type=\"button\" name=\"FindUser\" OnClick=\"window.open('".$search_page."lang=".LANGUAGE_ID."&FN=".$form_name."&FC=".$tag_name."', '', '','','','','scrollbars=yes,resizable=yes,width=760,height=500,top='+ Math.floor((screen.height - 560)/2-14)+ ',left='+ Math.floor((screen.width - 760)/2-5));\" value=\"".$button_value."\">

coopster

2:36 pm on May 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Arsench.

This appears to be a partial code structure echoing out an <input> element with JavaScript attributes.

<added>
Just noticed the thread has been continued here ... [webmasterworld.com]
</added>