elite_prodigy Posted May 13, 2008 Share Posted May 13, 2008 What the hell does this mean? I have no idea, the line the error references is the final line of my code, the ?> line. Parse error: syntax error, unexpected $end in /home/expose/public_html/site/functions.php on line 154 The last 20 or so lines of the file: <?php //... //... //... case "sign":{ $area2 = '<div class="available"><h1>Congratulations!</h1>This domain is available for free registration.<a href="http://www.exposemyschool.com/sign_up.php">Sign Up Now!</a></div>'; break; } default:{ $area2 = '<div class="nav_error"><h1 class="title">Oops!</h1>The following error(s) occured while attempting to process your request: <ul> <li>The page you are looking for does not exist</li> <li>The page was moved</li> <li>The site you are searching for no longer exists</li> <li>The site you are attempting to access has been deleted due to a terms of service violation.</li> </ul> Possible Solutions: Contact technical-support [at] exposemyschool [dot] com . There may be a fatal systems error that needs attention. Try refreshing the page. Make sure you typed the address correctly. If you are the owner of this site and are unable to access it contact User Services at: user-service [at] exposemyschool [dot] com . If you recently registered this site then try waiting. It may take several minutes to register in our systems.</div>'; break; } } ?> //line 154 Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted May 13, 2008 Share Posted May 13, 2008 it means you're missing a } somewhere. Quote Link to comment Share on other sites More sharing options...
severndigital Posted May 14, 2008 Share Posted May 14, 2008 if you didn't fix it yet ... here is your code <?php //... //... //... case "sign":{ $area2 = '<div class="available"><h1>Congratulations!</h1>This domain is available for free registration.<a href="http://www.exposemyschool.com/sign_up.php">Sign Up Now!</a></div>'; break; } default:{ $area2 = '<div class="nav_error"><h1 class="title">Oops!</h1>The following error(s) occured while attempting to process your request: <ul> <li>The page you are looking for does not exist</li> <li>The page was moved</li> <li>The site you are searching for no longer exists</li> <li>The site you are attempting to access has been deleted due to a terms of service violation.</li> </ul> Possible Solutions: Contact technical-support [at] exposemyschool [dot] com . There may be a fatal systems error that needs attention. Try refreshing the page. Make sure you typed the address correctly. If you are the owner of this site and are unable to access it contact User Services at: user-service [at] exposemyschool [dot] com . If you recently registered this site then try waiting. It may take several minutes to register in our systems.</div>'; break; } } ?> //line 154 unless they changed the syntax for a switch it should look something like this <? switch ($varThatSwitches){ case "valofswitch" : echo 'some items of value'; break; case "val2ofswitch" : echo 'some items of value'; break; default: echo 'some default items of value'; break; } ?> unfortunately unexpected $end errors can be very ambiguous about what errors they reference and also what lines they refer to. here is a great tut on using switches http://www.devshed.com/c/a/PHP/PHP-The-Switch-Statement-and-Arrays/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.