/    Sign up×
Community /Pin to ProfileBookmark

What does $uself = 0; in php email forms do?

Hi, I looked it up in some searches with no luck. Wondering what this
function in my forms email php, its job is? Thank you!

$uself = 0;

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@JDM71488Oct 04.2006 — it looks just like a user-defined variable that is later checked in an if statement. where did you see this?
Copy linkTweet thisAlerts:
@RiannaauthorOct 04.2006 — Thanks, its in this, but don't know what it means.

$headersep = (!isset( $uself ) || ($uself == 0)) ? "rn" : "n" ;
Copy linkTweet thisAlerts:
@NogDogOct 05.2006 — To the best of my (imperfect) knowledge, the header separator should always be "rn". That will be the default setting from that expression unless $uself is set somewhere earlier in the code with a value that is not 0, empty, nor FALSE.
Copy linkTweet thisAlerts:
@RiannaauthorOct 05.2006 — Thanks Nog, if anyone knows what setting it to empty or false does, please let me know.
Copy linkTweet thisAlerts:
@JDM71488Oct 05.2006 — [code=php]$headersep = (!isset($uself) || ($uself == 0)) ? "rn" : "n" ;[/code]
i believe is the same thing as
[code=php]if( (isset($useIf) == false) || ($useIf == 0) )
{
$headersep = "rn";
}
else
{
$headersep = "n";
}[/code]
Copy linkTweet thisAlerts:
@felgallOct 05.2006 — Depending on which email program is running on your server the headers need to be separated either by rn or just n. If you have the wrong separator between headers then the email will not send properly. That parameter in the code is obviously there to allow those using Qmail and other programs that require n instead of rn to be able to pass a value to the page to get it to change the header separator.
Copy linkTweet thisAlerts:
@NogDogOct 05.2006 — Depending on which email program is running on your server the headers need to be separated either by rn or just n. If you have the wrong separator between headers then the email will not send properly. That parameter in the code is obviously there to allow those using Qmail and other programs that require n instead of rn to be able to pass a value to the page to get it to change the header separator.[/QUOTE]
Just curious: is this a case where the program (e.g.: Qmail) is automatically (and perhpas sloppily?) converting "n" to "rn" regardless as to whether it already has a "r" preceding it, so you'd end up with "rrn"?
×

Success!

Help @Rianna spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...