Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: php basics

  1. #1
    New Coder
    Join Date
    Feb 2009
    Location
    Indore (INDIA)
    Posts
    37
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question php basics

    Hello all,

    As i am beginner in php programming

    I just want to know that what is the functioning of all the followings, which are generally used in php with Email() :-


    (1) $_SERVER['REMOTE_ADDR'];



    (2) what is : - $uself


    & what it means:-

    $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;



    (3) $_SERVER['HTTP_REFERER'];


    please tell me some basic information about all these contents , used in php.



    Thanks & Regards.
    Last edited by MSK7; 03-03-2009 at 08:52 AM.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by MSK7 View Post
    Hello all,

    As i am beginner in php programming

    I just want to know that what is the functioning of all the followings, which are generally used in php with Email() :-


    (1) $_SERVER['REMOTE_ADDR'];



    (2) what is : - $uself


    & what it means:-

    $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;



    (3) $_SERVER['HTTP_REFERER'];


    please tell me some basic information about all these contents , used in php.



    Thanks & Regards.
    1,3 - same as REMOTE_ADDR and HTTP_REFERER is nothing specific for php
    2. $uself is a variable and that line means if $uself exists or is equal to 0 the variable $headersep is "\r\n" else is "\n".

    best regards

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You will benefit from searching the manual, available at http://php.net.

    The $_SESSION superglobal is explained here:

    http://us2.php.net/manual/en/languag...perglobals.php

  • #4
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    To add to Fumigator's post I think you were looking for the mail() function.


  •  

    Posting Permissions

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