Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: PHP

  1. #11
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Rofl, np.

  2. #12
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    No offense but.. You are making a forum but don't even know something simple like this...

  3. #13
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    PHP Code:
    <?PHP
    require('includes/config.php');

    for(
    $K 0$K<sizeof($query); $K++)


    $query mysql_query($query[$K]) or die('Error: 'mysql_error());

    chmod("install.php"0777);

    unlink("install.php");

    if(
    file_exists("install.php")) {
    echo(
    "Tables created! Now please delete this file.");
    }
    else {
    echo(
    "Tables created! This file has been deleted automatically for security reasons.");
    }

    ?>
    Just a nicer touch D:
    Sometimes I wounder...

    Why let PHP CHMOD the files to 777, if the CHMOD facility is to keep files 'safe'. lol
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #14
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    I was going to say that Tom but I realised that isn't going to help him or this thread in anyway.

    @Jaffa:

    You are allowed to CHMOD to 0777 because a file's pemissions have to be set to 0777 for you to write to it or change its properties [:
    Last edited by Invent; 20-04-2007 at 08:38 PM.

  5. #15
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    The purpose of me doing it is to learn Thanks for your concern though.
    James


    Connected to reality through a proxy server.

  6. #16
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Sometimes even the simplest thing, can be the hardest...
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  7. #17
    ScottDiamond Guest

    Default

    Quote Originally Posted by Tomm View Post
    No offense but.. You are making a forum but don't even know something simple like this...
    Exactly what came to my negative mind tbh.

    Quote Originally Posted by Jaffa Cakes! View Post
    Sometimes even the simplest thing, can be the hardest...
    You just said you're no expert, so why try to act smart about it?

  8. #18
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Its easier to learn if your enjoying what your doing.I enjoy doing big projects like this.Not little forms and echoing Hello World
    James


    Connected to reality through a proxy server.

  9. #19
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Hello worlds are the best things you can EVER make ^^.

  10. #20
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Lol
    James


    Connected to reality through a proxy server.

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
  •