parse error on pc server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jd57
Forum Newbie
Posts: 13
Joined: Tue Apr 21, 2009 8:04 am

parse error on pc server

Post 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>
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: parse error on pc server

Post 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 <?
dhenick
Forum Newbie
Posts: 19
Joined: Tue Oct 20, 2009 10:46 am
Location: Yogyakarta, Indonesia
Contact:

Re: parse error on pc server

Post 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.
Post Reply