Forum Moderators: coopster

Message Too Old, No Replies

T String error

         

ploppy

9:52 pm on Aug 12, 2007 (gmt 0)

10+ Year Member



hello i am getting this error and need to know where to start looking for solution. am new to php so any help appreciated.

Parse error: syntax error, unexpected T_STRING in /home/domain/public_html/admin/checkurl.php on line 165

here is line 165:

HttpMultiRequest($url_to_process, false, 'ProcessResult', $link_id_to_process);

thanks for your help.

jatar_k

10:07 pm on Aug 12, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



can you post a couple lines before that as well, a lot of times those errors are produced from lines above it

ploppy

10:17 pm on Aug 12, 2007 (gmt 0)

10+ Year Member



hello. here is the whole script:

if ($broken_only) {
$url_to_process[] = $site_url . '/admin/geturl.php?url=' . urlencode($url[$k]) . '&header_only=1';
}
else {
$url_to_process[] = $site_url . '/admin/geturl.php?url=' . urlencode($reciprocal_url[$k]) . ';
}
if ($i >= 10) {
break;
}
}
if (@count($link_id_to_process)) {
HttpMultiRequest($url_to_process, false, 'ProcessResult', $link_id_to_process);
}
else {
break;
}
}
}

$running_time = RunningTime($start_time);
echo "\n\nExecution time: $running_time";

RunPostFilter(__FILE__);

[edited by: jatar_k at 10:59 pm (utc) on Aug. 12, 2007]
[edit reason] reduced code [/edit]

jatar_k

11:00 pm on Aug 12, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



remove the lone single quote at the end of this line

$url_to_process[] = $site_url . '/admin/geturl.php?url=' . urlencode($reciprocal_url[$k]) . ';

ploppy

11:39 pm on Aug 12, 2007 (gmt 0)

10+ Year Member



thanks jatar. now i get this:

Parse error: syntax error, unexpected ';' in /home/domain/public_html/admin/checkurl.php on line 158

line 158

$url_to_process[] = $site_url . '/admin/geturl.php?url=' . urlencode($reciprocal_url[$k]) . ;

which where i removed the ' from. thanks.

jatar_k

12:01 am on Aug 13, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you can remove the . before the semicolon as well

Habtom

4:50 am on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



here is the whole script

If that is the whole script, you seem to have at least two extra two closing curly brackets "}".

ploppy

9:28 am on Aug 13, 2007 (gmt 0)

10+ Year Member



thanks jatar. removing the . did the trick. sorry, Habtom, where are the curlies? thanks for reply.

Habtom

9:55 am on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it is working fine, ignore my last comment.

ploppy

9:56 am on Aug 13, 2007 (gmt 0)

10+ Year Member



you are ignored habtom :-) thanks for your help.

Habtom

10:06 am on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ploppy, you are welcome.

jatar_k

12:57 pm on Aug 13, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Habtom, you missed my edit on that post, I seriously reduced the amount of posted code