| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> or <0> To: Some dude <foo@bar.com> <1> but then why do we need to put the email mail("here", ..., ..., ...); <0> uhm <0> because the mail system doesn't read headers? <2> bleh
<0> Headers are informative to the recipient, but have no bearing on how your local mailer handles mail. <0> thus you have to have proper from and to parameters for your mail() call, but also have proper headers in them. <0> @mail <3> (PHP 3, PHP 4, PHP 5) <3> bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] ) <3> Send mail <3> http://www.php.net/mail <0> er, not from <0> haha <0> subject and to <1> at the end of my headers, should I have \r\n\r\n or \n\n <0> \n\n <0> \n automatically produces the correct sequence <0> \r\n is incorrect <0> that's a windows-style line ending <4> hi every body ! <5> i'm going to kill this skinny little geek that ****ed with my 20 port rackmount kvm. <5> not good when a production server goes down and i cant get anything to come up on the kvm for any of the 8 servers in the rack. <6> yikes <5> so my $15k linux cluster is down and all i can do is wait. <5> alright, back up finally. <5> now to go restart the other machine in the cluster <7> fun.
<7> hurry and kill him while you're still temporarily insane <0> heh <0> I wonder if serius_chronic fixed his mail bug <0> How do you know he's skinny? He could be a big fat*** geek <8> later <9> what i want to do is use an if statement to see if the $var begins with http:// .. what am i looking for <10> @strpos <3> (PHP 3, PHP 4, PHP 5) <3> int strpos ( string haystack, mixed needle [, int offset] ) <3> Find position of first occurrence of a string <3> http://www.php.net/strpos <10> if(strpos($string, 'http://') === 0){ /* good */ } else { /* bad */ } <9> let me try that <9> hmmm <9> not quite spox <10> uh <10> @php $string = 'http://www.google.com'; echo strpos($string, 'http://') === 0 ? 'good' : 'bad'; <3> Result: good <6> @php $string = '****://www.google.com'; echo strpos($string, 'http://') === 0 ? 'good' : 'bad'; <3> Result: bad <9> hmm <10> hmm <6> works for us <9> weird <11> guys
Return to
#php or Go to some related
logs:
#kl #kl kaisa je pyaar hai unch mean? #kl ladki ka boor #allnitecafe baray pyar
lilillilili #worldchat
|
|