| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> tml, not to be a bitch, but i'm sure if you surveyed most webhosts on the internet they don't do that, so generally not =D <1> "Generally" need doesn't describe it very well. You need or you don't need. <1> In this case, you don't need. Most people "want," however. <0> sigh semantic discussion <2> mail isnt working on my box, im trying: mail("my@email.com","test","test","From: user@some.com"); <1> cisse: don't say I started it :P <2> and i keep getting this error: "Recipient names must be specified" <0> hehe <1> command_: where do you see that error? And what does mail() return? <2> when i run it from the commandline, # php mail.php <2> when i run it in a browser it doesnt show anything, but let me grab what it returns <2> it doesnt return anything <2> so false basically <3> so it's a 'false'? <3> hum <4> cisse: It's not a question of whether the "web host" supports it, as most people don't register the domain via the webhost, but via a registrar, and almost all registrars have a web-based tool that would allow you to do it.
<4> command_: Are you sure it's false? <4> command_: Check $? after running "php mail.php" <2> no its not false <2> i tried: if ($tmp === false) echo "false"; <3> command_: var_dump(0 <3> er... () <2> sec <2> bool(false) <3> linux or windows? <2> unix <2> bsd <3> odd <2> yeah whats funny is <1> command_, var_dump(ini_get("sendmail_path")); <2> httpd-error.log:/usr/sbin/sendmail: not found <2> but it does exist <1> Can your apache user access it? <1> Dump your sendmail_path and play around with that. <2> owner is root and group is wheel <1> Permissions? <2> -r-xr-xr-x 1 root wheel 603841 Feb 25 15:26 /usr/sbin/sendmail <1> Can you use it on the command-line as a non-root user? <2> nope <2> hm <2> Program mode requires special privileges, e.g., root or TrustedUser. <2> what should i change the mode to <3> command_: just run $/usr/sbin/sendmail <4> command_: What *is* /usr/sbin/sendmail? <2> i tried <2> can i paste <2> it's 3 lines <1> What is the paste limit? 2 lines? <1> command_, use www.pastebin.co <1> m <2> k <5> hey all, I want to make sure that there are no lines which are consecutively carriage returns, any suggestions how I'd go about it? <0> is each line an entry in an array ? <5> yes <2> http://pastebin.com/579279 <0> regress: look through it and compare $i to $i + 1 <5> I thought I might have to do that. <5> k, I'll work up a hack then <0> not a hack ? <5> eh....my whole script is a hack <0> lol <5> but it works so far, so I'm fine with it <3> hack of what? <2> Julian|Work: did you get it <1> command_, it looks like you know what to fix now, heh. <1> I'm no sendmail expert, but that error looks self-explanatory. <1> Google away. <4> command_: When you run it from the command line, does it put anything in the mail log(s)? <1> TML, it prints this: <2> http://pastebin.com/579279 <4> I saw it <4> That wasn't my question, though. <4> My question is whether that gets *LOGGED* <4> If so, you can check the maillogs after PHP tries to exec mail() and see if you're getting the same thing <4> Otherwise, it's difficult to prove that just because your CLI gets the error, Apache does as well <2> Mar 1 23:08:49 box1 sendmail[23288]: NOQUEUE: SYSERR(admin): can not chdir(/var/spool/clientmqueue/): Permission denied <2> is in maillog <3> *drum roll*
<2> yeah but i dont know what mode to set that dir to now <5> cisse: something like if (strpos($text[i], "\r") !== false) { if (strpos($text[i+1], "\r") !== false) { continue; } } ? <5> I'm pretty sure the carriage returns on this file are windows-style, so should be \r\n, but the script never finds any... <4> regress: Are you sure the \r's are still in the string? <4> regress: If you used something like file(), the \r's are not preserved <5> heh <5> ok <5> good to know <5> ok, I see, it says "with the newline attached" <5> I guess I ***umed that it meant "with the CR and newline attached" <6> i need the PHP DOM equivalent of omit-xml-declaration="yes" - anyone know what it would be? <7> See the options for saveXML. <6> thanks mattmcc , i hadn't seen them in the docs yet <6> aha! the statement that " Additional Options. Currently only LIBXML_NOEMPTYTAG is supported. " had stopped me. <6> Warning: DOMDocument::saveXML() expects at most 1 parameter, 2 given in - <6> any clue on that mattmcc? <8> Greetings <9> Are there any OOP design tools (for drawing out cl***es and interfaces) <10> Morning <8> I've got a question. If I'm querying an SQL database and there are no records... how can I find that out in PHP? <1> Let's say I unset a few elements of an array, and I'd like the numeric keys re-indexed as (0,1,2,3...); cheapest way to do this? <9> FenixRF: what library are you using. <9> Julian|Work: sort? <8> library? <6> FenixRF, well, it should be easy to find that count(*)=0 <1> I don't want to sort the values. <1> I want to re-index the elements. <1> And that's it. <9> Julian|Work: afaik theres no automated way to achieve that <8> brick, as in count($row) ? <11> I asked this earlier, and then lost connection for a while...so here goes again(sorry): If I like the global scope of Constants, and the ability of variables to be embedded in double quoted strings, and heredocs, is there any accepted compromise? such as using $GLOBALS or something? Or...is there a way to embed constants in strings without concatenation? <6> FenixRF, sorry, i don't know the PHP API well, what i wrote was SQL <12> evening all, does anyone know how to combine strpos with a RegEx? im trying to phrase a XML file looking for all the <tag> lines, problem is i need to look for <tag href="<<some random link>>"> instead. Does anyone know who to do it? <7> Oy, regex parsing of XML is never pretty. <12> mattmcc i know, but my code used to work until the style of the XML file changed. It used to just be <tag> so it was easy. <12> is there a way to do it now then without using RegEx? i had guessed they were my only option <13> sax for the win <13> Chase, php has built-in xml parsing ability... <12> Touqen i know ive just never got them to work before the strpos option was what i ended up with when i originally wrote the code <11> and if you need regex, look into matching <tag[^>]*>(.*)</tag> <14> regexes aren't sufficient for properly parsing something as complex as HTML <12> AaronCampbell thanks, i honistly hadnt thought of using the RexEx to get the tag content <14> Chase: I'd advise to continue not thinking of using them :-) <12> deltab i really should look into the XML functions of php then shouldn't i? <12> do you know of any good places for a 'beginners guide' as it were? I've already looked into them once and couldn't work out how to use it <12> i ended up with about 30 lines of code to do what i did with just one line of strpos <15> Chase: The manual <12> Jymmm ye ive tried there before :-) <15> Chase then try again <15> Chase then try again till you get it right. <12> :-) <15> what do you mena find?! You should already know where it is. <16> DUMB*** -----> Chase <----- DUMB*** <12> thanks Jymmm <17> if I have a variable that is a memeber of an object, is there a way to get a reference to that object? <17> using the variable I mean <7> Well, generally in order to access the variable, you have a reference to the object already. <18> hi, is there a way of enabling all debug by code, without changing the php.-ini? <17> yes, but say that the variable is an object that I'm instantiating from a function within that object, I'd like to be able to get the reference into it without having to p*** "$this" to the constructor. also, If I have a reference to a public member of an object, I wouldn't neccesarily have a reference to the object <14> Armorfist: error_reporting(E_ALL); if that's what you mean <18> lemme try <17> mattmcc: do you understant the difference? <19> Armorfist: and additionally maybe ini_set('display_errors', 1); <18> i just want to do the error reporting for one page <7> mrgenixus: You'll need to explicitly establish that reference. An object doesn't have any intrinsic way of knowing that it's being contained by another object. <17> ok <20> is there a possibilitiy to write colored text into a file with php like in bash with --> echo -e "\E[31m[PROBLEM]" <15> mattmcc: Have you ever put any thoguht into google's (gmail) 'labels' fur use in static content? <7> Howso? <14> coca__: yes, except in php you may have to use \x1b in place of \E
Return to
#php or Go to some related
logs:
#perl #ksh roboform + ubuntu #math #math how to play steam on ubuntu gentoo coldplug blocks udev
python gentoo bz2 module godling c++ jinzora error iconv Support Not Found!
|
|