echo "Hello world!";

Discussion in 'Introductions' started by Cifra, Jun 6, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Hi people,
    I'm a mediocre webmaster... I'm not really new to webdesign, I've got about 4 sites going now, but I joined DP forums, because I wish to learn more about SEO and site monetization.

    Cyah :)
     
    Cifra, Jun 6, 2007 IP
  2. littlebobek

    littlebobek Peon

    Messages:
    763
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Welcome here Cifra ;)
     
    littlebobek, Jun 6, 2007 IP
  3. champ_rock

    champ_rock Peon

    Messages:
    3,349
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if ($visitor == "newbie") {
    echo "Welcome to DP";
    } else {
    echo "old timers do not post here": }
    :)
     
    champ_rock, Jun 6, 2007 IP
  4. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #4
    
    <?php
    class DP
    {
    	function is_new($user,$join_date)
    	{
    		if ($join_date < strtotime("today - 1 week"))
    			$this->welcome($user);
    		else
    			$this->rep();
    	}
    
    	function welcome($user)
    	{
    		return "Welcome to DP ".$user."! hope you enjoy your stay as much as i have.";
    	}
    
    	function rep()
    	{
    		return "YOU LOSE!";
    	}
    }
    
    $user = new DP;
    echo $user->is_new("Cifra",1180742400);
    ?>
    
    PHP:
    welcome to DP Cifra. i had to reply because of the post title. loved it.
     
    ansi, Jun 6, 2007 IP
  5. champ_rock

    champ_rock Peon

    Messages:
    3,349
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #5
    heck u beat me to that PHP code. nice one :) :)

    but i am only learning it so i guess i could create that simple if statement only
     
    champ_rock, Jun 6, 2007 IP
  6. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #6
    hehe :) good luck on your venture.
     
    ansi, Jun 6, 2007 IP
  7. antum

    antum Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Welcome Cifra, you'll find your php experience comes in handy while you get started
     
    antum, Jun 6, 2007 IP
  8. awiekupo

    awiekupo Peon

    Messages:
    975
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #8
    echoing back.. welcomeeeee toooo DPPPPPP... :)

    Enjoy yr stay :)
     
    awiekupo, Jun 6, 2007 IP
  9. juanthedj

    juanthedj Well-Known Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #9
    Hi there! whaddup! i hope "we'll" enjoy our stay here Cifra!
    i mentioned "we".. to include myself cuz im new here too...
    Just showin some love! :)
     
    juanthedj, Jun 6, 2007 IP
  10. wanazrif

    wanazrif Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hiwelcome and enjoy for this DP Forum
     
    wanazrif, Jun 7, 2007 IP
Thread Status:
Not open for further replies.