Hello, Just Joined!
Results 1 to 6 of 6

Thread: Hello, Just Joined!

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1

    Hello, Just Joined!

    Hello, all!
    I've been interested in learning PHP for awhile now and I'm hoping I can pick up lots of tips and trix here at the forum. I must admit, most of php seems so foreign to me, but I'm really wanting to learn!
    Take Care!!

  2. #2
    Senior Member
    Join Date
    Aug 2002
    Location
    Guildford, UK
    Posts
    4,156
    Word

  3. #3
    black sheep with red wool Merve's Avatar
    Join Date
    Jul 2003
    Location
    North of the 49th parallel
    Posts
    2,193
    Welcome, and have a great time!
    "A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrtien

    The Three C's

  4. #4
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,674
    So, your first script should be:
    PHP Code:
    <?php
       
    echo "Hello, World!";
    ?>
    Here's one from me:
    PHP Code:
    <?php

       
    // a list of international greetings...

       
    $greetz=array("Mir se vini!","Marhaban","Xosh glmsn",
            
    "Om swastyastu","Shagatom","Foon ying","Velkommen","Welkom",
            
    "Welcome","Tervetuloa","Bienvenue","Willkommen",
            
    "Kalos orisate","Tapeguahepora","Baruch haba('a)",
            
    "Swaagatam","Koj tuaj los","Isten hozott","Velkominn",
            
    "Filte","Irashaimasu","De zaanem","Khosh keldiniz",
            
    "Kumpriapsua","Ukenereri","Hwangyong-hamnida",
            
    "Hun bi xer hatin","Yin dee torn lap","Sveiki",
            
    "Selamat datang","Huan ying","Haere mai","Aya aya",
            
    "Sain irsenee","Yah aninh","Velkomen","Witaj",
            
    "Bem-vindo","Benvenguda","Sushri akal","Bun venit",
            
    "Dobro pozhalovat'","Maliu mai","Fair faa ye","Laase",
            
    "Benvinutu","Vitajte","Bienvenidos","Mabuhay","Yin dee",
            
    "Hos geldiniz","Hush kelibsiz","Cho mung","Croeso",
            
    "Siya namkela nonke","Zayt vilkum","E kaabo","Gashlee",
            
    "Isibingelelo"  );

       if (
    $user=="Southpaw41") {
          
    $key=9;                     // from the good ol'e U.S.A. ...
       
    } elseif ($user=="OwenTheSamoan") {
          
    $key=42;                  //Samoan greeting is 42nd in array
       
    } elseif ($user=="Weedpacket") {
          
    $key=31;                  // Heh ....
       
    } else {             /* D@m$##!  Forgot that we didn't
                            bother to find out who we were greeting!
                            Hrmmm... what to do!!  Heck, just pick one
                            at random...  */

          
    $greetcount=count($greetz);   // get the # of greetings
          
    $key=rand(0,$greetcount);    // pick one at random
       
    }
    echo 
    $greetz[$key]." to PHPBuilder!";
    ?>
    Last edited by dalecosp; 02-11-2006 at 01:55 PM. Reason: optimization, heh...
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  5. #5
    addicted thorpe's Avatar
    Join Date
    Aug 2004
    Location
    sydney
    Posts
    3,457
    Welcome aboard. You should find lots of helpfull people here. If your just getting started, theres a nice free book avaliable here that should really help to get you on your way.

  6. #6
    Has a PhD in Horribleness Elizabeth's Avatar
    Join Date
    Nov 2002
    Location
    In a meeting with the Bobs
    Posts
    2,294
    Hi Southpaw- glad to have you here!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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