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 1 of 4 1234 LastLast
Results 1 to 10 of 36
  1. #1
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default learning php {read}

    Hey

    I'm trying to learn php and I need some ideas on what to make so I can practice to get better.

    Thanks
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  2. #2

    Default

    Learn the basics first, then make things like a basic status system?
    or maybe just a page of text using php.

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Playstation23 View Post
    Learn the basics first, then make things like a basic status system?
    or maybe just a page of text using php.
    Lol page of text in php is just an echo. How will that benefit him. Basic status would not be good for begginers.

    Start modifying scripts IMHO

  4. #4
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Tizag is your best friend.

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

    Latest Awards:

    Default

    A basic script that searches google via file_get_contents and displays it.

    Search tip when doing it 'php tutorials'

    Sorry I had to do that, good place is tizag.com for php.
    Hi, names James. I am a web developer.

  6. #6
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    A basic script that searches google via file_get_contents and displays it.

    Search tip when doing it 'php tutorials'

    Sorry I had to do that, good place is tizag.com for php.
    PHP Code:
    <?php
    // Define the $_GET as a shorter variable.. Personal preference.
    $url $_GET'search' ];

    // Check for a parameter, if none, show HTML form to get one.
    if( ! $url ) {
        
    // Simple HTML here.
        
    echo "Nothing to search.. Enter something below.<br /><br />
        
        <form action=\"\" method=\"get\">
        Search: <input type=\"text\" name=\"search\" /><br />
        <input type=\"submit\" name=\"submit\" value=\"submit\" />
        </form>"
    ;
    } else {
        
    // And if there is a parameter..
        
        // Redirect to Google.
        // is being held in the variable "url".
        
    header'Location: http://www.google.co.uk/search?hl=en&q=' $url );
    }
    ?>
    Lawl, sorry ruined that one. Tear apart my script, probably won't help much though.

    Excuse the terrible indenting and the brackets being everywhere, rushed it, need to go. Bye, hope the script I posted helps some how.
    Last edited by Calon; 10-01-2009 at 10:51 PM.

  7. #7
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    I'm not a complete beginner at PHP, forgot to add that. I'm just not "good" if you know what I mean.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  8. #8
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Flisker View Post
    I'm not a complete beginner at PHP, forgot to add that. I'm just not "good" if you know what I mean.
    What do you need to touch up on?

    Lawl, that sounded really wrong.

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

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    PHP Code:
    <?php
    // Define the $_GET as a shorter variable.. Personal preference.
    $url $_GET'search' ];

    // Check for a parameter, if none, show HTML form to get one.
    if( ! $url ) {
        
    // Simple HTML here.
        
    echo "Nothing to search.. Enter something below.<br /><br />
        
        <form action=\"\" method=\"get\">
        Search: <input type=\"text\" name=\"search\" /><br />
        <input type=\"submit\" name=\"submit\" value=\"submit\" />
        </form>"
    ;
    } else {
        
    // And if there is a parameter..
        
        // Redirect to Google.
        // is being held in the variable "url".
        
    header'Location: http://www.google.co.uk/search?hl=en&q=' $url );
    }
    ?>
    Lawl, sorry ruined that one. Tear apart my script, probably won't help much though.

    Excuse the terrible indenting and the brackets being everywhere, rushed it, need to go. Bye, hope the script I posted helps some how.


    PHP Code:
    <?php
    $searchWhat 
    $_GET'Search' ];

    if( 
    $searchWhat != '' )
    {
        
    $googleURL 'http://www.google.co.uk/search?hl=en&q=' $searchWhat;
        echo 
    file_get_contents$googleURL );
    }
    else
    {
        echo 
    'You are not searching anything you noob!';    
    }
    ?>
    Hi, names James. I am a web developer.

  10. #10
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Well I don't really know. I just need a little project to do to make me better.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

Page 1 of 4 1234 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
  •