@# 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 31 32



Comments:

<0> \n is *nix, \r is Macintosh, \r\n is windows
<1> Specifcally, \r is old MacOS
<1> OSX uses \n now
<0> didn't know that, cool
<1> Yeah, it changed when they switched over to a BSD kernel
<2> Theres no way to run PEAR web install on php4 is there?
<3> well, either way, \r\n is somewhat strongly bedded in now, esp since things like MIME standards define a newline/linebreak as \r\n
<1> Yeah, it's pretty annoying too
<3> (which makes for writing MIME decoders extremely tormenting at times)
<1> Most TCP/IP-based protocols use \r\n
<1> SMTP, HTTP, etc.
<3> (because despite there being a RFC, not every email client/agent/tool sticks to it :-\
<4> Oh. We're supposed to use \r\n.
<3> a few years ago there was a nice spate of \r\r exploits in emails
<5> I will try the same sh script in pico and vim, the pico one works, the vim one gets errors
<3> what do you mean by vim getting errors?



<6> Okay, there we are.
<5> when I use vim to write the sh script, the sh script gets errors when I run it
<3> aaaah ok
<6> http://tirade.mywritespace.com/admin/fileman
<6> Tell me what you think of it.
<5> only difference from what I can tell with od is that it's the \r
<3> why don't you run a diff between the two with 'ignore whitespace' ?
<7> enygma: how much time a week would you say you spend working on phpdeveloper.org
<1> fleckz- it has to be some whacked setting in vim
<1> Though I can't imagine why a *nix version of vim would even have that option
<5> well its probably ghetto'd out because I installed it myself :p
<8> how is zend going to support Eclipse when they are still trying to sell their piece of **** IDE?
<9> hello all
<6> Wait, zend has an IDE?
<8> Its pretty good
<6> A minute ago, you described it as 'piece of ****'. :P
<9> can someone help me out? i'm looking for the php equivalent of python's "platform.machine()"
<8> It's a pretty good piece of ****
<4> It only appears as a brown spec, as opposed to the planitary m*** of eclipse...
<6> lol
<3> I've tried a lot of editors in the last 20 years, even purchased a few commercial ones. For some reason I end up with vim again and again
<7> codeman: you are really limiting the number of people who can help you ;)
<1> codeman- how about telling us what you're actually looking for?
<9> a function to get the system architecture of the system it's running on
<9> like x86_64 or x86 or ppc or whatever
<10> without shell?
<9> ideally
<9> my boss has kindof a motto of "never shell unless it's the only way"
<11> OK. WHY does CLI PHP keep ignoring my error display settings?
<10> well, AFAIK... the only other way is write the function to be included in PHP
<11> Even if I do ini_set('display_errors', 'off'); in the top of the script, it spits out tons of errors!
<12> oy if you got a form how do you run a php IF -> input is Checked(Ticked)
<7> 'off' is a s tring
<1> codeman- you can try poking at /proc to see if there's anything there you can read
<9> i guess that'll do
<10> KimmoA: try using error_reporting(E_STRICT);
<9> thanks guys
<12> anyone
<12> i have input right. when i submit the page, it reloads if anything is wrong right. I want to check if a box was ticked or not
<1> azuranz- if a checkbox is checked, it's value is p***ed just like a normal input field
<1> If a checkbox isn't checked, nothing is p***ed
<12> no i know but i want to run an If statement to identify if it was checked. ~
<1> In PHP, isset($_POST['checkbox']) is usually the easiest way to see if it was checked
<12> ah ok
<10> KimmoA: alternatively, use set_error_handler, and get it to talk to a dummy handler, that's pretty comprehensive
<11> Ah! FINALLY it shuts up!
<11> Now, why did it ignore my directions?
<11> I didn't even know of error_reporting() until now...
<10> because you can also use iniset
<11> I thought the "display_errors" directive was the "master".
<13> KimmoA would have if you had RTFM
<10> but you're not supposed to use a boolean
<7> display_errors and error_reporting are different
<7> oh nm, misread your meaning
<11> FYI, '0', 'off', etc. all are ignored for display_errors in CLI PHP.
<11> The Web PHP works like it should, though.
<11> So it must be something fancy about CLI PHP.
<12> see checkout my code
<11> But like I said, your function worked.
<7> hmm, this should be researched and documented



<12> http://pastebin.com/660903
<13> philip dont let us stop you
<7> KimmoA: research this, test, then post a doc bug :)
<12> line 121. I'm trying to run an if statement to check if the box was Ticked...
<11> philip: My research already spans several fresh installations with the exact same problem.
<11> Now I have found an ugly hack solution thanks to Olipro...
<7> Jymmm: i don't feel energetic enough to do it right now :)
<13> philip no excuse
<12> anyone
<14> i have problem including files from ../ directory with default php installation, any clue ?
<7> heh
<10> there's nothing like them KimmoA :)
<11> Olipro: :S
<11> gUoX: Is this in a cronjob? Because then it won't work to do that. :/
<7> so you are saying cli ignores ini_set('display_errors', true); ?
<15> can unlink() work with masks? like unlink("/*.txt");
<10> I was writing a SpecialPage for MediaWiki earlier... sometimes, you just can't be bothered to spend the time :P
<13> azuranz: Take the time to read when ppl respond: <1> azuranz- if a checkbox is checked, it's value is p***ed just like a normal input field
<13> [20:31:37] <1> If a checkbox isn't checked, nothing is p***ed
<14> KimmoA: nope, it's a normal php code, it keep saying permission denied, file not found, bla bla bla
<12> yeah i Did.
<11> philip: Yes. Even that.
<14> i have checked the permission, it's correct and the file is there
<13> azuranz: <1> If a checkbox isn't checked, nothing is p***ed
<12> yeah i know
<7> KimmoA: i meant false of course :)
<13> azuranz then why are you being stupid?
<12> Because I ticked a box. When the page reloads though that box isn't ticked again
<16> then tick it?
<11> philip: Puh. Yeah. Even that. :)
<13> azuranz because you didn't tell it to remained checked
<12> how do you do that
<13> azuranz learn basic html
<14> any specific article detailing about including files in php code ?
<12> where do i go for that
<13> azuranz w3schools, #web, google html tutorials
<12> and learning what exactly.
<13> azuranz w3schools.com , #web, google html tutorials
<11> azuranz: It's "on" and not '1' or "true" for HTML checkboxes, BTW.
<13> azuranz ALL of it
<12> ah ok
<6> Stop yelling at people because they aren't experts at HTML like you are, peopple.
<6> people*
<11> I remember almost going crazy about that the first time I had a problem with it.
<12> yeah i've tried on actually
<12> lol.
<12> thats sad
<13> Zarel ##php is NOT for learning/discussing html, that's what #web is for. And +q evasion is cause for perm ban
<7> KimmoA: i just tested, it works fine in cli
<11> philip: That can't be...
<7> oh it is
<6> ...
<6> You really could've given me some way to reply.
<6> So, now that I can talk, what's +q evasion?
<17> i'm having problems getting php5 to run on win32, its not loading extensions
<13> Zarel you that stupid, or wre you joining/leaving for the hell of it?
<17> its using the right php.ini file though
<17> the extensions just dont show up on phpinfo() though
<7> KimmoA: http://hashphp.org/pastebin.php?pid=6522
<12> http://pastebin.com/660916
<12> there you go.
<6> Ehh, in terms of IRC, I am pretty stupid.
<12> Does that look right? Check if Days[] $i = on
<6> I left/joined because I was wondering how I was able to stay in the channel but not talk.
<13> bull****
<17> extensions_dir is right too
<12> i'm pretty sure my mistake is line 5 but I dont know how else to check if an input with that name & value $i is on
<17> Jymmm: could you help me? :/
<13> hax out the door
<6> Probably something to do with the ban, but I couldn't ask you because I got an automated message when I tried to talk to you.
<17> Jymmm: heh
<7> hax: you might want $_POST['DAYS'] instead of $DAYS
<17> philip: totally wrong nick
<7> heh


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#oe
gaim msnp13
#osdev
dd /dev/urandom Segmentation fault
bash trim
python __import__ equivalent from import *
tcltls ubuntu
scaling_governor fedora
#css
#centos



Home  |  disclaimer  |  contact  |  submit quotes