Hi guys,

I have a problem with the script. There is a parse error in line 7 which it end of the line. I need your help to make them get correct, as I am not a programmer and know very little PHP.

Here it is the code:

<?php

try
{
    include_once('HideUrlConfig.php');
}
?>

Parse error: syntax error, unexpected $end, expecting T_CATCH in /home/username/public_html/mysite.com/myscript.php on line 6

What do I needs to change it with?

    you cant have a try without a catch

      dagon;10964312 wrote:

      you cant have a try without a catch

      I want to use the try with a catch. so could you post the source for the catch?

      Here it is what I have tried, but i get an parse error of unexpected T_ECHO and expecting T_CATCH.

      <?php
      
      try
      {
          include_once('HideUrlConfig.php');
      }
      
      // Continue execution
      echo 'the site is down';
      ?>

      Hope you can help!

        Write a Reply...