Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-03-2009, 08:38 AM   PM User | #1
MSK7
New Coder

 
Join Date: Feb 2009
Location: Gurgaon (INDIA)
Posts: 35
Thanks: 3
Thanked 0 Times in 0 Posts
MSK7 is an unknown quantity at this point
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..
MSK7 is offline   Reply With Quote
Old 03-03-2009, 09:24 AM   PM User | #2
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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
oesxyl is offline   Reply With Quote
Old 03-03-2009, 03:18 PM   PM User | #3
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,687
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
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
__________________
Fumigator is offline   Reply With Quote
Old 03-03-2009, 04:00 PM   PM User | #4
rafiki
Senior Coder

 
rafiki's Avatar
 
Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 2,034
Thanks: 18
Thanked 42 Times in 42 Posts
rafiki will become famous soon enough
To add to Fumigator's post I think you were looking for the mail() function.
__________________
Get Firefox Now
rafiki is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:42 AM.


Advertisement
Log in to turn off these ads.