| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Comments:
<0> If you're a masochist. ;) <1> is it that hard? <0> No <0> Hence the wink <1> but the theory behind it.... hmm <0> Some people do have a hard time with regex, and to those people, I honestly recommend they go out and get a vetted, well-known solution, such as formmail.pl <0> knoppix: Maybe pick a more unique username? <0> Mosselmaniac: If you're particularly attached to PHP-over-perl for this, there are also PHP solutions out there. Google should be able to direct you to a few. <2> TML, why not just direct him to a manual page for preg_match <2> there's an example there for validating an email address <2> and after that it's 5mins of scripting <1> or just hard code the $headers to make thinks easier <0> tempest1: Because I don't believe it appropriate for everyone to roll their own form mail solution. <0> tempest1: And because he's already been directed there. <0> Mosselmaniac: I do suggest you review the code of any PHP solutions, though, and make sure you're fairly comfortable with what it does, as they're of varying degrees of quality. <2> TML, why isn't it good for people to write their own mail code?
<3> Please HELP!! Call to undefined function: mysql_connect(), I'm running Ubuntu, and php4-mysql is already installed <2> it's not that difficult, and it makes you less dependant on getting code from others <0> tempest1: There are some wheel which just don't need to be reinvented by every single person on earth. <0> s/wheel/wheels/ <2> TML, well, I understand that logic after you've learned how to program <1> i love that discussion <0> fromvega: A link to your phpinfo() page? <2> but for Mosselmaniac's purposes i'd suggest that he learn to write his own <1> the mambo vs. own coded cms people discussion <2> so even if he does use somebody else's later, he knows whats going on <0> tempest1: *shrug* We'll have to agree to disagree. I don't think it a good way to learn programming, to re-invent wheels. <0> tempest1: Better is to read well-established code, and spend more time writing your own. <1> wait, let me get 1 line of code <0> tempest1: But there are many theories of learning out there. :) <0> This one just happens to be mine. <4> Could anyone possibly help me with mailer application im writing. Its hanging up after about 1k emails sent. This is NOT for spam. <0> jedwards_: I suspect it's the MTA <4> MTA? <1> if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@' . '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email) <1> i use that to check if that thing is valid <5> uh? <1> not enough? <0> jedwards_: Yes...the Mail Transfer Agent. <0> Mosselmaniac: Don't use ereg, please. <1> but you would like to see such a thing, right? <0> Something akin to that, yes. <1> only with another function, for some kind of reason. <3> TML: thank you, I was editing the wrong php.ini blah :P <1> the thing is, i already got that line of code, in the same mailer, tml. <1> for the contact field, i set in the header <0> Mosselmaniac: The problem we were discussing was your use of $_POST fields without validating their contents first <1> i do validate them. <0> Do you? <0> That expression validates $email, not $_POST <1> i do $email = $_POST[email]; THEN validate it, then mail it. <1> but you are right, i only validate the email address, not the name. <0> Mosselmaniac: In the code you showed us, you were using $_POST['foo'] directly <0> That's the part we were suggesting was a problem <1> yeah, but i verified $_POST['foo'] before that <0> But we've not read your entire codebase, so it's up to you to decide whether or not we're right. <6> What does "Warning: Illegal offset type" mean (in reference to arrays)? <0> All we can do is put up signs, you have to follow them on your own. <1> TML $headers .= "From: ".$_POST['contact']."<".$_POST['email'].">\n"; <0> genelisp: It means you did $array[$idx] where $idx is neither an int nor a string. <1> oeps sorry for that colors, do you see colors? stupid irc client <4> TML: currently the way i'm sending the mail is I open a socket directly to port 25. then sending the mails via SMTP commands. sendmail is currently on the machine. <0> genelisp: More than likely, it's either an object or a resource. <1> that line of code, i do check $_POST['email'] but not $_POST['contact']; <0> jedwards_: Generally speaking, MTAs will begin to throttle you after a large number of messages. Make sure that it's not the MTA first. <1> because contact is just a NAME not some kind of email address that has to suit a specific pattern. <0> Mosselmaniac: Except for the fact that users can supply any value they like there. <7> I need a recommendation for a friend.... <8> anybody here has experiences with mojavi, please help me! <0> freaksw: mattmcc is a pretty nice guy <1> yeah true, so i misread that one <1> euh, miscode <4> TML: how would I test this? and when you say Mailing agent I'm ***uming you mean sendmail vs qmail for instance? <0> !tell raidman about g10 <7> Can anyone recommend a good php book that doesn't overly focus on the language, but on how to use it in dynamic sites with MySQL?
<1> but then i'm not looking for a preg_match for the email address, but just for a name? is there something like that? <0> jedwards_: Yes. Before writing mail software, you should familiarize yourself with the mail RFCs such as 2822 and their terminology. <0> jedwards_: As for how you'd check if sendmail throttled you, you'd have to ask #sendmail. It's been far too long since I did that. <0> Generally speaking, the answer is "log files" <9> hey, is there a way to remove the PHPSESID from appearing on the anchors ? like ..php?phpsessid=8g8g5f etc. when using session_start() ? <0> But I can't get into any more detail than that offhand. <4> TML: ok thanks <6> TML: thanks - I'll check <1> tml, i should check that the name does not contain any \r\n or something? <7> anybody anybody anybody? :) <0> freaksw: As a general rule, I don't find it wise to recommend *ANY* PHP book, as they're mostly rehash of php.net/manual <7> everyone says that about every language <0> freaksw: No, I mean they generally reprint the contents of php.net/manual verbatim <0> Word for word <7> I've never seen that <10> could someone help me figure out why my attempts at sending a process to the background aren't working? <7> and I've looked in a bunch of php books <0> freaksw: I've never seen anything but, and I've read a fair share as well. <11> i need to make a new tshirt "White Space is the Devil" <12> how do I put a link inside a $var for a <textarea>? <0> freaksw: That being said, try peeking at php.net/support, they have a "Books" section <11> BigTrucK : er come again <11> php books are worthless <0> BigTrucK: You can't make the contents of <textarea> clickable. <1> i should check that the name does not contain any \r\n or something? <0> BigTrucK: At least, not in any UA I've ever seen. <0> Mosselmaniac: Yes. <11> TML: sure u can onclick :) <11> oh <11> he meant the inside <0> That's what I'm ***uming <1> that will do? just check \r or \n <0> Mosselmaniac: Generally speaking, an appropriately forumalted regex does that inherently, using ^ and $ <11> biggahed: like this http://me.eae.net/stuff/litespellchecker/litedemo.html ? <1> thanks for the info sir <11> TML: check http://me.eae.net/stuff/litespellchecker/litedemo.html <11> its purty <12> TML: ya cuz <a href> tags are being displayed literally <11> BigTrucK: for all intent and purpose you cant <1> TML u should get paid lol. the whole channel depends on you for now. <12> winmutt: ok thx <11> biggahed: waht you want is html editing <11> er <11> BigTrucK: what u want is html editing not text editing <13> hi all, can't find the XML function in php to do something like the following Java method "HTTPSender.sendHTTPRequest()" <13> anyone knows how to post an XML to a URL? <14> Prescriptor: http://www.php.net/curl <14> PHP5 (maybe 5.1) can also do POST with stream contexts <11> anyone know of a HTTP POST util that will redirect a pipe or file and fits on one disk <15> $xml->{$c['name']} will get the variable of the $xml object, named the value of $c['name'], right? <13> i know how to get the returns.. don't know how to post an XML 1.0 <11> itrebal: yes <15> is there a better way to do it :/? <11> itrebal : no isnt that better enough? <15> winmutt: just doesn't suit me <11> i mean there are other wasy but thats the least intensive on your hand <11> "suit" ? <15> agree with me, doesn't feel like the correct method <16> Hello all, how i search duplicates records on a TXT file ? <10> could someone help me figure out why my attempts at sending a process to the background aren't working? <9> hello, is there a way to remove the ?PHPSESID from appearing on the links ? for example file.php?phpsessid=8g8g5f.. etc. when using session_start() ? maybe with some ini_set() setting or something ? <11> itrebal pastebiun some code to me <11> some "content" material <15> winmutt: its alright, no need <17> Is it possible to break/continue out of an if statement? <11> but more than liekely thats the best way to do it <6> TML: please could you have a look at my code - I can't seem to find the problem - I've also written what I'm trying to do, here: http://pastebin.com/638498 <15> hackel: inside a function you can 'return' <15> hackel: which terminates script execution <11> hackel: exit? i think rtfm <11> return does not terminate script exec <17> itrebal: Yeah I definitely don't want to return, and it would be silly to make one little test into a function. <15> winmutt: sorry, function execution :) <16> Hello all, how i search duplicates records on a TXT file ?
Return to
#php or Go to some related
logs:
netinstall invalid system disk hiddev0 example #math #kde #lgp gdb Program terminated with signal SIGTRAP +ubuntu +new password is too simple gnash fc5 x64 #lisp ubuntu xutils apt-get upgrade
|
|