MSK7 Posted March 3, 2009 Share Posted March 3, 2009 Hello all, As i am beginner in php programming I just want to know that what is the functioning of all these followings,which are generally used in php :- (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. Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/ Share on other sites More sharing options...
WolfRage Posted March 3, 2009 Share Posted March 3, 2009 This link can tell you all about $_SERVER http://us3.php.net/manual/en/reserved.variables.server.php Everything else looks like variables where is the rest of the script that it came from then we can tell you what those lines are doing. Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/#findComment-775317 Share on other sites More sharing options...
MSK7 Posted March 3, 2009 Author Share Posted March 3, 2009 Hello all, As i am beginner in php programming I just want to know that what is the functioning of all these followings,which are generally used in php :- (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. Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/#findComment-775355 Share on other sites More sharing options...
waynew Posted March 3, 2009 Share Posted March 3, 2009 Hi, the variable $uself could be anything? Depends on what the programmer assigned to it before. Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/#findComment-775356 Share on other sites More sharing options...
HuggieBear Posted March 3, 2009 Share Posted March 3, 2009 This looks like homework, or an assignment. What do you think each one means? Check out the link that WolfRage posted and don't just re-post your question because the answer you got wasn't what you wanted! Also, check the manual for info on language variables Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/#findComment-775359 Share on other sites More sharing options...
phant0m Posted March 3, 2009 Share Posted March 3, 2009 $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; As for this, have a look here: http://ch.php.net/manual/sv/language.operators.comparison.php#language.operators.comparison.ternary Quote Link to comment https://forums.phpfreaks.com/topic/147705-php-basics/#findComment-775360 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.