Page 1 of 1

parse error on pc server

Posted: Tue Oct 20, 2009 11:40 am
by jd57
Hi
I have this script install on a host server and it doesn't give me any error, however when I try it on my pc server, I get the following parse error
Line 555 is at the end of the script, a blank space. can someone help

Parse error: syntax error, unexpected $end in C:\wamp\www\RegPending1.php on line 555

Code: Select all

"&offset=".($offset+$limit); ?>';" name="button2">
                  <?} ?> <!-- END RECORD DETAIL -->&nbsp; 
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr> 
                                <? } // FOREACH RESULT?> 
                            </table>
                        </td>
                    </tr> 
                </table>
                <table width="100%" border="0" cellspacing="2" cellpadding="2" align="center"> 
                    <tr> 
                        <td height="5"> 
                            <div align="center"><!-- Begin Sparklit Counter Code --> 
                                <script language="JavaScript">
                                jsurl = "http://counter.sparklit.com/counter_js.spark";
                                document.write("<SCRIPT LANGUAGE=\"JavaScript\" ");
                                document.write(" src=\""+ jsurl + "?ID=240881");
                                document.writeln("&c=" + Math.random()*10000 + "\">\n<\/SCRIPT>");
                                </script>
                                <!-- End Sparklit Counter Code --> 
                            </div>
                        </td>
                    </tr> 
                </table>
            </div>
        </form>
        <div ALIGN="center"> </div>
    </div>
</BODY>
</HTML>

Re: parse error on pc server

Posted: Tue Oct 20, 2009 11:50 am
by Mark Baker
Generally that error means you have mismatched opening { and closing } braces.... and have forgotten a }

If this works on one server and not another, then your short php tags may be the cause of the problem. use <?php instead of <?

Re: parse error on pc server

Posted: Tue Oct 20, 2009 11:52 am
by dhenick
what code on line 555??
But i think you forget to close { or php close tag is comment // FOREACH RESULT?> you should do

Code: Select all

 
}
// FOREACH RESULT
?>
 
Hope this help.