I need help with my Directory

Discussion in 'PHP' started by casachucky, Aug 1, 2014.

  1. #1
    Im getting this error message at home page, anyone can help with simple steps to fix?

    Fatal error: Cannot redeclare date_add() in /home/suggest/public_html/include/functions.php on line 1092
     
    casachucky, Aug 1, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    It means date_add() has already been declared - do you maybe include functions.php more than once? If you're using include 'functions.php' somewhere, I suggest changing this to include_once('functions.php'), or require_once('functions.php'); - note that the last one (require_once) willl render the page unusable if there's an error somewhere (if the included file doesn't exist, for instance - it will basically stop parsing the script if the function doesn't work).
     
    PoPSiCLe, Aug 1, 2014 IP