| |
| |
| |
|
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
Comments:
<0> ok.... <1> you guys are right all this third party **** is annoying <2> php-bot: tell junix-other about g10 <3> romans5n1: do you have sendmail or the like installed? <4> hi, how do i upload a zip file, extract on server to read contents and add the files on the db one by one, then zip them back and give the user a link to download. (the zipping part can't figure out) can someone help? <2> romans5n1: efnet/#pear -- If you've got PEAR issues, that's where you should ask, cause we usually don't support PEAR. However, even if we did, that's the place you'd want to ask anyways, they're probably more helpful. <0> kuja: where do ask for support foir that then....cause its a php thing.... <2> junix-other: I don't know. Ask their forums or something. <5> Psykick: php's mail() works, so I would ***ume sendmail or similar is installed <4> can someone help me out with that zip problem? <6> can case statements have a function instead of checking against a value such case (is_dir($var)):? <2> rares000: Why would you want to do that? <2> Rethink your logic. <6> hmm <7> Stan: why not use the server's tar capabilities <8> case != if
<2> jiggster: In Python it is :) <2> And in Ruby, it's similar... :) <8> bleh <2> case 'foo'; when 'foo' then puts 'woot!'; end; is the same as if 'foo' === 'foo' then puts 'woot!' <2> :) <2> And in Python... you've got no switch/case construct :( <2> So it's a bunch of if/elif's <8> sounds like a party <3> romans5n1: have you checked your apache error log? <5> yep, no errors <9> kuja: to simulate the switch/case you can use lambda in python. <2> SEAwolfx_: I hear lambda's are a joke in Python <3> romans5n1: does file logging work? <2> Though of course, this came from the Ruby group, but hey =) <10> kuja: well, its doing what es awaited from it. <10> s/es/is/ <5> now, I currently only have the pear core, db and log extensions... i checked the dependencies for log and it doesn't appear to require anything else, as long as you're not using the db handler <5> but maybe I need some other extension? <5> yep... every other handler I've tried works... all but email <3> ok <10> kuja: you know the analouge lambda-statment in ruby? <3> romans5n1: do you have a subject specified <3> romans5n1: do you have who its from specified <2> SEAwolfx: No <11> is there a way to do something like this $var = "something " . $p***edvar; $p***edvar=2; echo $var; "something 2" <2> titosanta: Not like that, no. <11> how can i do it <11> something like it <3> romans5n1: some smtp servers refuse to send email if there is no subject specified and almost all smtp servers reject email that doesn't have a from address <10> kuja: np, so i have to join #ruby ;) <2> SEAwolfx: #ruby-lang <5> the conf argument is filled with a $email_log_conf variable... the contents of which is "array('from'=>'myemail@domain.com')" <10> kuja: thx <3> kuja: you can do $p***edvar = 2; $var = "something " . $p***edvar; echo $var; "something 2" <2> Psykick: No ****? <3> no **** <3> just change the order <5> I didn't specify a subject or message since I wanted to use the default for both <2> Psykick: Am I the one who asked the question? <3> romans5n1: try specifying a subject and see if that works <11> i want to be able to reuse var <5> nope, still no go... in fact, just to check, I included a call to mail() in the script, and I received that message, but not the ones the errors should have generated <10> btw, someone has experience in profiling with apd and xdebug? which of both would you recommend? <10> s/someone/anyone/ ;) <5> it doesn't really make sense... it *should* work... it just doesn't <3> romans5n1: check the method <2> Psykick: Tell me, did I ask the question? <3> kuja: sorry <3> titosanta:you can do $p***edvar = 2; $var = "something " . $p***edvar; echo $var; "something 2" <2> Thank you. <5> hmmm... it doesn't get much simpler than this (I took out all the variables and such): $email_log = &Log::singleton('mail','myemail@domain.com',''); and nada <3> romans5n1: what version of log are you using? <5> just dl'ed it tonight, so it's the latest... let's see <11> psykick i know i want to do something different <5> 1.93 <5> or 1.9.3 that is <3> romans5n1: hehe ... just checked the $LogMail->Log method .... nothing in there actually calls the mail function <5> hmmm... so how would one go about actually mailing the logged mails??? :) <3> romans5n1: let me just examine if it has a write method of some sort <3> romans5n1: which pattern are you using singleton or factory?
<5> singleton <5> oh!... haha... you have to flush it <5> i guess it does it that way so you don't recieve an email for each error <5> just one email with all the errors <12> Folks, quick question: I'm using setcookie() to create a cookie. Then, and inside an iframe, I'm calling subdirectory/index.php. It can't see that cookie, despite my cookie path being "/". What am I missing? <3> romans5n1: glad you found it ... I was just about to tell you that you needed to call $Log->close(); <13> how I avoid this error -> Warning: Cannot modify header information - headers already sent by <3> romans5n1: that is all flush does <14> hi <3> Sanhux: I'm ***uming your using sessions <13> yes <3> move your sessions information before any other type of outputted text or html <3> or move your outputted text or html after the session_start method calls <13> Psykick, but the session is in a include that comes on the bottom of page, comment system <3> eg (you probably have something like): echo "<html></html>"; session_start(); <3> Sanhux: include it in the header or something else <3> Sanhux: you need it to read: session_start(); echo "<html></html>"; <3> just place session_name(); session_start(); before any other echo or print statements <13> i'll try <15> kinda <15> oops <5> this is unbelievable... flush() and close() neither one are causing the email to send either... i've wasted enough of your time though Psykick, so I'll continue to investigate from here <5> thanks for all your help <3> in /usr/share/pear/Log/mail.php .... look at the close() method <3> that is what is causing you endless grief <3> romans5n1: do you have PHP 5? <5> i've got it on my test server here, but I'm actually using a remote server at the moment which uses 4.3 <3> if you do you could add into Log/mail.php a __destruct method to call close <3> if you do you could add into Log/mail.php a __destruct method to call close or for php4 use the __sleep method <16> I have a 2RU box atm, these days can you get low-end servers into 1RU? <3> romans5n1: last ditch effort .... extend Log_Mail cl*** and add a __sleep method to it to allow you to call the close method <5> ah... ok... i was calling close on the composite log... when called on the email log, it sends the mail... <5> i think i will add a call to close() inside the log() method though... <5> the file says the handle will reopen automatically with the next call to log() <3> romans5n1: do you want me to check? <3> I don't mind got nothing better to do <3> romans5n1: nope it doesn't make a call to open the next time you call log <5> i just tried it... works perfectly... you get a seperate email for each error, and you don't have to remember to call close()... works fine for me since I use gmail, and it all shows up like a single message anyways :) <3> romans5n1: ok ... <3> you could just call close after your loop <5> Psykick: read the comment in the flush() declaration <17> this channel is apparently called ##php <17> does that mean there are several php channels <17> and you get dumped into whichever? <3> romans5n1: I read that already .... just missed one of the lines in the log method <5> oh ok <17> (that seems to be the case) <3> noradio: don't think so ... <5> well, i'm happy now... thanks Psykick... couldn't have done it without ya <3> noradio: just think that other channel used to get flooded <17> ah, ok <17> thanks <18> is there a way to read a web page from another server that is only available after a post form is filled out? <3> romans5n1: well you found the answer yourself ... <3> romans5n1: my pleasure to provide some help though <19> hi <19> can somebody help me with some php? <19> :P <19> I have a script for a websites "contact us" section and it seems broken :\ <5> probably... we're all in the wrong channel otherwise :) <19> if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) -> does that mean that it searches for a @ and a . after the @? <5> what's broken about it? <5> !$visitormail == "" =====> $visitormail != "" <19> ? <19> i'm new to php, no clue whats going on :\ <3> playgue: well we've all been there before <3> playgue: ever used C or C++ <19> yeah btu I feel so helpless :\ <19> nope only html... no real programming experience yet <3> playgue: ok ... believe me its not that hard <5> change !$visitormail == "" to $visitormail != "" .... you have syntax problem <3> the main things that get introduced are control structures and other such technical terms <19> I want to learn oop <19> maybe delphi
Return to
#php or Go to some related
logs:
#math noganex #osdev limits.conf nofiles +move accounts +Debian #lisp nmap scan wireless subversion suse 9.3 install dav_svn vpopmail vconvert doesnt work jigajoule
|
|