...

View Full Version : php basics



MSK7
03-03-2009, 09:38 AM
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.

oesxyl
03-03-2009, 10:24 AM
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

Fumigator
03-03-2009, 04:18 PM
You will benefit from searching the manual, available at http://php.net.

The $_SESSION superglobal is explained here:

http://us2.php.net/manual/en/language.variables.superglobals.php

rafiki
03-03-2009, 05:00 PM
To add to Fumigator's post I think you were looking for the mail() function.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum