+ Reply to Thread
Results 1 to 3 of 3

Thread: Declaration errors

  1. #1
    Wizet's Avatar
    Wizet is offline x10 Elder Wizet is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Brooklyn, New York.
    Posts
    644

    Declaration errors

    So on my index.php page I get a declaration error:
    PHP Code:
    Fatal errorCannot redeclare sha512() (previously declared in /home/flownyx/public_html/lacydic/config.php:8in /home/flownyx/public_html/lacydic/config.php on line 11 
    And on my config.php file it only contains the following from lines 1-12:
    PHP Code:
    <?php
    $mysqluser 
    "censored";
    $mysqlpass "censored";
    $mysqldb "censored";
    $mysqlserver "localhost";


    function 
    sha512($input){
    $sha512 hash('SHA512'$input);
    return 
    $sha512;
    }

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: Declaration errors

    Quote Originally Posted by Wizet View Post
    So on my index.php page I get a declaration error:
    PHP Code:
    Fatal errorCannot redeclare sha512() (previously declared in /home/flownyx/public_html/lacydic/config.php:8in /home/flownyx/public_html/lacydic/config.php on line 11 
    And on my config.php file it only contains the following from lines 1-12:
    PHP Code:
    <?php
    $mysqluser 
    "censored";
    $mysqlpass "censored";
    $mysqldb "censored";
    $mysqlserver "localhost";


    function 
    sha512($input){
    $sha512 hash('SHA512'$input);
    return 
    $sha512;
    }
    Out of curiosity, did you by chance include config.php twice by accident?

    Cause the error is freaking out that you're re-declaring function sha512 a second time, once it's already been declared, and it's saying it was declared in that same file. The only cause I can think of is that it might've gotten included twice, thus trying to re-declare it in the same file...


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    Wizet's Avatar
    Wizet is offline x10 Elder Wizet is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Brooklyn, New York.
    Posts
    644

    Re: Declaration errors

    That did help only once. Now I have more errors... I'll open a new thread for this....

+ Reply to Thread

Similar Threads

  1. sql errors please help
    By malcomhfc1875 in forum Free Hosting
    Replies: 5
    Last Post: 10-05-2008, 04:10 PM
  2. MySQL errors and Website Errors.
    By JuniorD in forum Free Hosting
    Replies: 0
    Last Post: 05-28-2008, 03:49 PM
  3. DNS Errors -
    By sathyabhat in forum Free Hosting
    Replies: 6
    Last Post: 04-16-2008, 11:09 PM
  4. A couple of errors might be user errors!
    By mvpatch in forum Free Hosting
    Replies: 4
    Last Post: 03-18-2008, 01:12 PM
  5. 404 Errors
    By Jacob, Kid Mania Creator in forum Free Hosting
    Replies: 2
    Last Post: 11-24-2007, 02:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers