Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
77 views
in Plugins by

Parse error: syntax error, unexpected 'else' (T_ELSE) in /home/satechh/public_html/qa-base.php on line 7

Code 

<?php

function qa_retrieve_url($url)
{
    if (substr($url, 0, 8)=='https://')
        // specialized code for retrieving secure pages
    else
        return qa_retrieve_url_base($url);
}
Q2A version: 1.8.3

1 Answer

0 votes
by

It just a syntax error and Q2A have nothing to do with it, add "{" and "}" will solve the problem. 

<?php function 

qa_retrieve_url($url) { 

if (substr($url, 0, 8)=='https://') {

// specialized code for retrieving secure pages 

} else {

return qa_retrieve_url_base($url); 

}

}

...