Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    You're redeclaring it again somewhere else.. what part of that don't you get?

    You can only declare clean() one time.. in the entire program.

  2. #12
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    What do you mean only one time? You mean I can only do function clean() {} once? not clean($abc) once right?
    Vouches
    [x][x]

  3. #13
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Yes, you can only declare the function (function clean() {) once.

  4. #14
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    I only declared it once... Should I post all of config.php?
    Vouches
    [x][x]

  5. #15
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    #1, why are you declaring your functions in config.php, and #2: it wouldn't say that if you haven't declared it elsewhere.

  6. #16
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Declaring as in setting it (function name() { blah blah blah }) right? Well why not?
    Vouches
    [x][x]

  7. #17
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Declaring as in setting it (function name() { blah blah blah }) right? Well why not?
    Because the configuration file is not the spot for declaring functions.

  8. #18
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    And this causes the error how...
    Vouches
    [x][x]

  9. #19
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    It doesn't, and I never once said you did, I was just asking why the hell you were declaring them there.

    And then I said that the error wouldn't be caused, unless you were declaring the functions somewhere else.. so somewhere you're re-declaring the clean() function.

  10. #20
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    BASICALLY
    HES SAYING THIS

    In config you got

    function Clean( $str )
    {

    }

    and in another location you got a function called clean

    and its like having a fight and php doesnt like that.
    Hi, names James. I am a web developer.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •