@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> !tell kanzie about guidelines
<1> TML: Ahhh gotcha... working on php4 code where var is used profusely :(
<2> I am trying to write a mailer that uses a form on my webpage, takes the content (message) and mails it to the list of subscribers. But I have problems with encoding. I want to give the ability to use " ' \ and so on... but it just turns into jibberish, how do you accomplish a reliable mailer without making it complicated ?
<3> Hm, now TML, I hate beating a dead horse - but how come everything BEFORE the seek is nulled when you write to the file? (I tried opening it with "r+"?
<4> kanzie
<4> HTML email?
<2> preferrably not...
<2> to achive maximum compatibility...but if that is the best solution to use, then HTML-mails it'll be!
<4> Just make a loop
<4> loop it until you have read every row in the database
<4> and send an email to each member of each row
<2> oh... all that is already in place and working like a charm
<2> but the mails get a \ in front of all " and ' and it bugs me... so I would like to add a format-function to the actual message so that it always looks nice to the receipents
<5> TML: got the TNS variable set, but it's still not resolving it... so it's possible that the configuration file is just b0rked, you say?
<2> I set the header to "Content-type: text/plain; charset=iso-8859-1\n";"
<6> kanzie: you don't find all the \ everywhere.. ***y?



<7> anyone familiar with the sleep() problems in execution
<7> ?
<1> TML: http://pastebin.com/629644 -- $this->testVar holds nothing :(
<8> kanzie: I use stripslashes
<8> kanzie: to remove the slashes;)
<2> philip: hehe...nah...only at first ;-)
<2> ill try that
<6> so ***y that it's almost magical
<4> How do i upgrade my php?
<6> kanzie: yes, what was said will work, also figure out where they come from... odds are magic_quotes_gpc
<9> BigTrucK: lol
<8> kanzie: actually what I did was write a small function that runs htmlentities, mysql_escape_string, and stripslashes...
<2> Im just afraid Ill write unsecure code that will be exploited by mistake (i trust my users, but not their skills)
<10> how do i insert a variable into an array while pushing all other array values back?
<11> TML: yoe were right... i found php is not able to handle files the way i told...
<12> hi!
<11> TML: but its no OS-problem.. our operating systems are able to do so...
<2> sequethin: Thats what I have been working on with not much of success...do you mind pastebin it to me?
<9> BigTrucK: I'm suspecting nobody else "got it" =)
<11> TML: i will show it to you tomorrow.. my girlfriend is screaming...
<6> nater: consider array_merge
<1> Jymmm: I suspect your right
<10> philip: would array slice work as well?
<8> kanzie: /msg ? i can email the file to you if you like
<2> msg works great for me
<2> please
<9> BigTrucK: Ok, NOW to grab the fluke =)
<13> array_shift I think?
<1> Jymmm: haha
<9> 11.1v & 5.4v
<9> ify
<6> array_unshift()
<9> oh, no load.
<13> yeah, unshift
<9> BigTrucK : http://www.torontosurplus.com/tes/DATA1395.JPG
<1> Jymmm: much better than fingers
<9> BigTrucK: Fingers? You *****... use your tounge! =)
<14> WTF...
<14> Uh news flash
<14> don't listen to Jymmm
<14> heh
<1> ...
<9> ShortWave: wth you doin here slummin?
<9> ShortWave crawl back under your rock!
<14> Jymmm: heh, fighting with Sugar
<1> hmmm TML must have went out for lunch...
<9> ShortWave: who's Sugar, and does your wife know about her?
<1> anyone know why my $this->testVar is still null? http://pastebin.com/629644
<14> Jymmm: http://www.sugarcrm.com
<14> Jymmm: and yes, the wife uses Sugar on a daily basis.
<14> Jymmm: She works here with me ya know.
<9> ShortWave: Oh, we dont support pkgs here.
<9> ShortWave: Yeah, she has to keep her eye on you =)
<14> Jymmm: I'm aware of that. That's what #sugarcrm is for
<9> ShortWave wth do you need a crm for? you aint tech support
<14> Jymmm: We be an engineering firm, and it does work well for what we do. We're using it not only for crm, but project management.
<5> anyone else ever used the OCI8 (Oracle) features of PHP?
<9> ShortWave: Eh for Q&D, I guess that would work
<14> Jymmm: works great actually. I wrote a timesheet system around it.



<9> timecards?!
<9> for an eng firm?
<9> you got some lousy workers or what
<14> well we have to charge our time to whatever project we happen to be working on.
<15> so, am I crazy, or does count($array) return 1 if the array is empty?
<14> And we need to track B&P time too.
<9> oh for billing, ok.
<6> mad_phoenix: what thes the manual say?
<14> yes
<14> we do our own billing
<6> oh it doesn't say doh :)
<9> ShortWave: Just put me down for 200 hours
<6> mad_phoenix: btw, yes you are crazy
<15> well the manual says count() returns 1 if the variable is not an array
<6> try var_dump() on your variabe to see what it actually is
<15> so how do you distinguish between a non-array and an array with 1 element?
<6> you know your data
<16> I have a scope question. Any varable declared outside of a function can be viwed inside a function but a varable declared inside a function is not viewable outside the function right?
<8> how about is_array
<6> kadigibox: wrong
<6> kadigibox: php.net/variables.scope
<6> change your 'can' to 'can not'
<15> you know your data? thats an excuse for a function with ambiguous return results? why wouldn't it return -1?
<14> Jymmm: Pfft. You better show some results.
<6> mad_phoenix: count() is not specific for arrays
<15> its specific to arrays and objects with a countable interface
<15> im aware, i rtfm
<8> mad_phoenix: is_array will certainly tell you... if... it's....
<9> ShortWave: NP there
<6> mad_phoenix: you know the rules of the function, now, deal with them... that's all one can say i suppose
<9> ShortWave:But... I dont' play well with politics or bull****.
<15> thats fair, it just seemed illogical
<15> but thanks for the help all
<6> it is odd, i'll agree :)
<2> sequethin: Where did you go man?
<8> kanzie: I tried to /msg you?
<9> ShortWave: Check this... called mfg to get some sample switches. Got a call back to day and their whining becasue of the cost.
<17> http://www.oconus.com/photocontest/..%5CuploadPhotos%5COCari_19May2005_113949.JPG does it seem like that comes up often in websites?
<2> And I got that... I replied and chattet on like mad, with no reply! =(
<8> interesting. looks like the wonders of the intarweb ;)
<9> itrebal what, tulips?
<17> Jymmm: that sort of image though, with bunches of flowers and one of them a different color
<9> itrebal: it's symbolism
<17> Jymmm: right, i'm just asking if you've seen it too much (whether i should use it, or do something else..)
<9> itrebal "Standing apart from the crowd" sorta thing
<8> kanzie: I pasted the function I use into the msg, since you said you can read it
<2> sequethin: Thanks man, looks great, I got it!
<9> itrebal as long as you dont do a three column website, you'll be fine.
<8> it's worked so far...
<17> Jymmm: heh, i'm not a fan of 3 columns usually.... they *can* be effectivly used though
<8> kanzie: if you want to send text and html mail you might want to look into the phpmailer cl***... works like a charm for me
<9> itrebal: they're like ***holes... everybodys got em... they are used and abused
<17> Jymmm: hehe, very true
<9> and full of ****
<17> :P
<2> phpmailer...
<2> Ill google it and see what I find
<18> I have no problem printing regular text to my printer using php_printer. However, if I try and print a buffer created by pdflib, it, obviously, prints out the raw contents of the pdf....how can i convert it to where the printer prints out the PDF as if printing from acrobat?
<8> kanzie: I find it's very useful. there are many tutorials for it as well
<9> ShortWave you guys still work on Smith?
<9> chaoscon get a PS printer
<9> chasep_work Get a PostScript printer
<18> Jymmm: not an option....any other ideas?
<9> chasep_work Use PCL instead of PDF
<8> kanzie: between phpmailer, tinymce, and some quality time with vim I came up with a solution that the client really enjoyed. I can never let him find out just how simple it all is ;)
<9> chasep_work try googling for 'pdf to pcl'
<2> sequethin: Mohaha... lovely!
<2> sequethin: Thats how its supposed to be you know
<2> sequethin: we should not charge for pain, but for knowledge! ;-)
<19> anyone know how to turn off php notices with an htaccess file?
<8> kanzie: of course :)
<0> MACscr: php.net/error-reporting
<19> unfortunatley i didnt find anything to do with htaccess there


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#css
#bash
Partition Bunta
#osdev
#math
#gentoo
livna Metadata file does not match checksum
#centos
linux sum filesizes
#perl



Home  |  disclaimer  |  contact  |  submit quotes