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



Comments:

<0> i'm trying to get proc_open() with stream_get_contents() to work but it hangs when reading the output... first I do a check with is_resource(), then I write to the input, close the input, and then I do if(!feof($pipes[1])) and next I try to do stream_get_contents($pipes[1]); however that hangs... what am I forgetting
<1> how do you make sure that a number has at least two digits (ie give a leading zero to single digits) without printing it out immediately?
<2> Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home2/angelsl/public_html/irchelp.php on line 2
<2> help
<3> keithalexander - REGEX
<3> er, regex
<2> help
<3> if(preg_match("/[0-9]{2}/",$var)){ }
<2> huh?
<3> Angel-SL - not you
<2> but i need hel[
<3> it's a parse error, look on the line it says
<2> http://pastebin.com/584917
<2> I don't know whats wrong
<2> the pg tut said that



<2> php*
<3> $1 ?
<2> dunno
<3> I don't think you can start a PHP var with a number
<1> you use round braces instead of curly braces after the argument?
<4> hello
<2> http://www.freewebmasterhelp.com/tutorials/php/3
<4> can someone here help me a little with phpnuke?
<3> keithalexander - ah, that he does
<5> ~tell relik about nuke
<2> i dont mean a variable
<2> i meant irchelp.php?index=true etc
<1> Angel-SL, write your if statement like: if(...){...}
<1> not if(...)(...)
<3> oh, then you're looking for $_GET['index'], not $1
<2> works like that 2.
<1> oh, cheers, for the response enygma
<1> (re: regex)
<3> np
<6> enygma: you here?
<3> yup
<6> i'm totally new to WS, i wonder if there's some auth/session mechanism to prevent unauthorized uses?
<6> and whether nusoap supports it.
<3> not that I've seen....we use the HTTP auth for a lot of our stuff, but most APIs I've seen use a user/p*** embedded in the message
<6> hm OK, thank you very much
<2> Parse error: parse error, unexpected T_ECHO in /home2/angelsl/public_html/irchelp.php on line 3
<3> you need to change the ( to {
<3> on the line above
<2> I did
<7> and escape the double quotes , use html..
<7> size=\"5pt\" <--
<2> k
<8> .. a question about the implode command .. how can i implode only a certain range of keys ?
<3> range? you'd just need to make a tmp array with only those values in it, then use that
<2> still same
<2> Parse error: parse error, unexpected T_ECHO in /home2/angelsl/public_html/irchelp.php on line 3
<3> Angel-SL - seriosuly, these are beginner mistakes that should have been covered when you read about working with PHP
<8> oky then ...
<8> thanks
<2> I give up
<2> or why not just discard it
<9> Harbinger: Turn your auto away off.
<10> Let's try this differently...
<10> !tell Harbinger about away
<9> =P
<10> better? :)
<9> It'd be nice if people would read the rules.
<10> kuja: That happend in on in 500 cases...
<9> ;p;
<9> lol? stupid keys :)
<11> How can I apply for a CVS account with karma ?
<12> hi
<12> I`m trying towrite an email form...but it's not sending any e-mail....can anyone check the code please
<13> be back later
<14> if I have a templated website, what the "right" way (a way that does not open me to cross site scripting attacks) to include my main body content?
<15> having some array or similar construct with allowed content names
<14> hmmm
<16> SuperID: why would any include open you to XSS?



<17> Hello, I'm looking for a script with wich someone can go to my website a subscribe for a monitoring (they enter their webadress and as soone it is not available, it send them an alert). Someone know such a script ?
<16> SuperID: site.php?page=insertpagehere is a bad way to do things.
<16> Leo18: we dont support packages here.
<17> packages ?
<14> myconid: It happened to me once, I used an oswd template that expected content references to be p***ed by a pageid= GET parameter, a malicious user p***ed in a full url to an external site containing a malicioius script and my server executed it
<16> Leo18: things you didnt program.
<14> myconid: exactly, thats what I want to avoid
<16> SuperID: thats why you dont do t hat.
<14> myconid: and thats exactly why I'm here looking for an alternative
<16> SuperID: make seperate pages..
<16> SuperID: aboutme.php, products.php, contact.php, etc.
<14> myconid: defeats the purpose of templates
<18> hm, what are the 'keylogger' commands?
<16> SuperID: not at all
<16> mikeX: slashdot, search, keylogger.
<18> I see myconid thanks
<16> SuperID: Templating does not mean you haev a single PHP file.
<16> SuperID: infact it might hurt your site.. sometimes searc hengines will not spider when that happens.
<15> SuperID: include header; ... body include footer; is as templatey as header include cotnent; footer
<14> Ok I'll agree with that, thx
<15> if you mod_rewrite things could turn again then
<12> I need some help with my form mail...I have wrote it..but it's not sending any email..
<12> http://pastebin.com/585010
<12> Here i have uploaded it
<16> Shujon: dont use mail();
<12> then what you want me to use?
<16> phpmailer(.sourceforge.net)
<16> its amzing how many mail() questions come here..
<19> mysql 4, i've 15 entries, i need to select 5 entries. 1st entry may contain 1, 2, and 3 entries sum('field'), 2nd entry may contain 4, 5, 6 entries sum ('field') and so on. This should work with dynamic count of fields. Any ideas?
<16> MaR_: /join #mysql
<20> Hello, channel.
<21> weirdness.
<22> how does one remove an index from an array?
<22> not unset..but..?
<23> array_pop?
<22> itrebal: that gives the last element no?
<23> thats true
<23> but it also removes it
<22> so first sort by existence of a value and then pop the empty one away, how to sort it though?
<23> whats wrong with unset?
<24> nothing
<22> itrebal: I do array_unique and then a for loop with $i<count($array)..
<22> with unset the loop's action is performed on the empty element as well
<22> ok, might as well do if(isset(arrayelement)) before..
<22> but still, is there a way of knowing how many elements there are in an array after it array_unique was done?
<22> *after array_unique was done..
<24> kombi: array_unique() returns an array ... pull the count of it
<25> well i got a form
<25> and when i submit the values and there are some errors
<22> sleek: but that count will include empty elements, no?
<25> the values from all the fields are being erased
<25> how can i leave the values in the fields so the user wont have to re-enter them ?
<24> menta: it will return the number of elements in the array regardless of their type
<24> menta: echo them into the value="" field of the html
<22> menta: echo them in the form elements
<24> bbiaf
<22> sleek: I understand that, what I was looking for was a way to get the number of non-empty elements like after an array_unique..
<23> kombi: get_empty_elements_after_array_unique
<22> kewl! thanks itrebal!
<23> kombi: sorry, not really
<22> ahm.. does that exist as a function?..
<23> no
<22> nice idea though..;)
<22> array_unique_reduced <- good name too
<23> geeaau() would be better :P
<23> (g.et e.mpty e.lements a.fter a.rray u.nique
<23> )
<26> hi - i'm just wondering if there is a popular solution for named arguments with PHP? is the best solution just to do it perl-style with an array?
<9> yeh
<9> foo(array('foo' => ))
<9> foo(array('foo' => 'bar', 'baz' => 'qux'))
<9> Heh
<26> i guess that's not so bad to bear
<9> Would be nice if you didn't need "array( ... )"


Name:

Comments:

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






Return to #php
or
Go to some related logs:

apt get sun-java 5-sdk
GnuBound
#linux
sentence interupter
gimp tutorial tree
perl XMLsimple val
suse increase file descriptors
Installing Scalix CentOS
mplayer dumpstream
#mysql



Home  |  disclaimer  |  contact  |  submit quotes