1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

starting of php

Discussion in 'PHP' started by harry1, Dec 28, 2009.

  1. #1
    hello all

    how can i get profession in logic while using php
    actual i know all basic functions of php but i am unable to implementions so please guide me the proper way to use php in real programming
     
    harry1, Dec 28, 2009 IP
  2. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    if ($brandon_r)
    {
    	//Code here will run if $brandon_r contains a value ie true
    }
    
    if (!$brandon_r)
    {
    	//Code here will run if $brandon_r contains nothing or false
    }
    
    if (1 > 0)
    {
    
    	//Code here will run if the value if the first argument is greater than the second
    }
    
    if (1 < 0)
    {
    
    	//Code here will run if the value if the first argument is smaller than the second
    }
    
    Code (php):
    etc etc

    More info http://theopensourcery.com/phplogic.htm
     
    Brandon_R, Dec 28, 2009 IP
  3. robbin.joe

    robbin.joe Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sorry, need more information.
     
    robbin.joe, Dec 29, 2009 IP
  4. Izonedig

    Izonedig Member

    Messages:
    150
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Knowing the name of functions will not help you if you don't know the basics of programming and how developing is done.
    I suggest to you to read more php basic tutorials, and try to make some little script by yourself, such as making a form and a php script that shows the data posted in the form.

    <?php echo $_POST['fieldnameinthehtmlform']; ?>

    Then make more advenced script, like replacing one word with another in the submitted form data with str_replace(),
    Then go and use all the functions you learnt :)

    If you want, you can check my PHP Tutorials website :D
    Forms, str_replace ...
     
    Izonedig, Dec 29, 2009 IP