@# 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> tax0n: Your for loop uses i= etc .. should be $i
<0> tax0n: for (i = 0; i = (sizeof($fileStack)); i++) { <-- there
<1> ah!
<1> doh!
<2> doesn't for use commas?
<3> ah
<2> also $
<0> RandomMan: Nope
<4> Commas if you want more than one argument inside the if;then;else
<2> oh
<0> RandomMan: list(NULL, $var1, $var2) .. no you can't ;)
<5> tax0n: you might want to do some indenting on your code as well...makes it easier to debug
<2> damn
<2> thanks, MarkL
<0> RandomMan: Just ***ign it to a var and never use the var :o
<2> I don't like wasting memory.



<2> that's why I don't use windows.
<0> or use list(, $var1, $var2)
<2> ah
<0> ^that works
<2> that works.
<2> :P thanks
<6> RandomMan,: I mean a cl*** wich the object can include files with HTML or other cl***/object codes
<6> What is the use of $_SERVER["QUERY_STRING"]?
<0> Nekusagi-sama: The object can't include files, but it can call one of it's methods which includes a file
<0> Nekusagi-sama: To get the ?foo=bar&this=that part of a url
<6> MarkL,: Mmm, so, this is the same of $_GET?
<0> Nekusagi-sama: Not really
<6> Well, has the same, non parsed, information
<0> Nekusagi-sama: Well yeah, they both hold the same info, just in different ways ;)
<6> ehehehe
<7> Anyone have a clue how I can pull the CPU temperature of the local machine into PHP? Running linux
<5> purely_in: only if you have some other daemon or SNMP utility which is pulling the data from some MB register
<0> purely_in: Run something like lm_sensors and have php shell out to a command that reads the /proc/whatever file that holds the temp *shrug*
<3> impossible..
<0> troop: It's not
<7> nothing is impossible with php! thanks MarkL I'll take a look
<7> Looks like this might work, ***uming my mb has the right sensor on it... http://www.gfxcafe.com/scripts/lm_sensors.phps
<0> Looks good to me .. the right idea anyway
<8> or just exec and parse the sensors command
<1> thanks for the hints folks
<2> get is a hash of the variables, and query string is the raw string.
<2> mmmm hash
<9> lol
<0> mmmm raw
<1> I've cleaned up those errors but there're still things to do
<3> http://pastebin.com/720554
<1> forgot to add the 'sanitise' checks for '.' and '..' dir listings which I had in yesterday's version
<8> troop: array keys need to be quoted
<1> plus initial if (if_dir($path)) checks before using opendir
<0> troop: Your while loop still uses the same name="" values so you'll still only get the last one in the loop, that's why my example uses arrays, like name="foo[]"
<1> and those beers are affecting my typing skills
<1> Q: as far as open source LAMP CMS applications go, how does Drupal compare with the rest of the competition?
<3> in where ?
<3> which line
<0> troop: It's almost like doing $var =1; $var =2; $var =3; and expecting $var to contain all 3 values .. it will only contain the last .. 3
<3> dont shoot me but really i dont understand which array and how key
<0> troop: He means $yaz[rota] should be $yaz['rota'] for example, as i mentioned an hour ago .. remember?
<10> MarkL: writing preference again...but it's indeed better to use quotes ;d
<10> so PHP won't see it as a constant >.>
<0> troop: And you havn't quoted all the form fields .. like type=text should be type="text"
<0> Fushuing: No, it's not preference
<11> is this possible somehow "if ($foo == ('gif' OR 'jpg' OR 'png'))"
<10> ....oops
<1> cheers for the tips, folks. Bye for now.
<10> if ($foo == 'gif' || $foo = 'etc1' || $foo == 'etc2') { action; }
<0> enquest: $allowed = array('gif', 'jpg', 'png'); if(in_array($foo, $allowed)){ .. }
<3> i will do now MarkL
<10> or what MarkL said
<0> enquest: Makes it easier to add/remove extensions as required
<11> thanxs
<3> yes i did
<3> update script runs.
<3> insert script too.
<3> actually insert script is normal
<12> Hi, what do you usually use do develop php scripts?



<3> but update script runs onlyy onlyyy onlyyyyyyyyyyyyy last lineeeeeeeee
<10> troop: pastebin?
<3> http://pastebin.com/720554
<0> troop: Your while loop still uses the same name="" values so you'll still only get the last one in the loop, that's why my example uses arrays, like name="foo[]"
<0> troop: It's almost like doing $var =1; $var =2; $var =3; and expecting $var to contain all 3 values .. it will only contain the last .. 3
<3> hmmmm
<5> stormrider_may: I'll put in my vote for "vi" again
<3> $yaz[]=mysql_fetch_***oc($...)
<3> ?
<3> MarkL: dont angry :=(
<0> troop: I'm not angry just frustrated at repeating it over and over ;)
<3> maybe i am stuppid but i am human too
<3> hehehe
<0> troop: Take for example, <input type=text name="rota"
<10> you are stupid, that's a fact
<0> troop: Say the while loop outputs 10 rows .. they will all have a <input type=text name="rota" 'bit'
<0> troop: So each one overrides the previous one
<13> im trying to consume a .net with php, and when i get the response it is: soap_fault Object , what could cause this to be the response?
<3> haaaaaaaaaa
<3> wait wait
<0> troop: So when you post the form you will only ever get the value of the last one
<3> <input type="text" name="firma" value="'.$yaz['firma'][$i].'">
<3> ?
<3> example..
<9> pm_: do a var_dump($the_response) and see what it looks like
<0> troop: <input type=text name="rota[]" is where you want to be heading
<12> JAJMaster, i can't use vi, well, it just doesn't work for me. Is there a "cheat" to make it work? Like if press down key, it does not go down.
<13> Dangermouse http://www.independencia.com.br/sala_pecu.php
<14> stormrider_may: press i
<14> to insert text ..
<9> pm_: Fix your SQL..
<15> JAJMaster, yesterday I was MarkCyst; I found the problem, wanted to let you know the fix....
<13> Dangermouse i should get an xml as response
<4> troop, you fundementally don't understand the processes involved in the data being p***ed from the forms to the script - you are overwriting the "name" field which is suppposed to be unique when you use duplicate <input>'s with the same value
<13> Dangermouse sql from where? from the .net?
<9> pm_: It looks like you have one. It's an object.
<9> pm_: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1SELECT * FROM tb_nota WHERE tipo_geral_nt='NOTA_FILHA' AND tipo_espec_nt='strFAZENDA' AND idp_nt="
<4> You have the patience of a saint MarkL
<0> troop: Maybe i'm just not explaining it well enough, see if someone else can make it clearer for you ;)
<0> `Mace: It just ran out :o
<4> You can keep the halo ;)
<3> eheheheh yes i know, i will buy gift and post to MarkL really
<9> We accept Paypal :)
<0> troop: Going by your recent post's i probably won't receive it ;)
<9> lol!
<13> Dangermouse ah, sorry, see: http://hashphp.org/pastebin.php?pid=6711
<3> now wait, im trying something
<13> Dangermouse thats the var_dump
<9> pm_: Yup..thats your response
<9> An error. ?
<13> Dangermouse what that means? why do i get this soap_fault and not the xml?
<16> how can i use a variable inside anothers variable name ?
<15> ${'number_'.$i}
<3> http://pastebin.com/720582
<15> dude looks like a lady!
<0> troop: No no no no no
<0> MarkL> troop: <input type=text name="rota[]" is where you want to be heading
<0> troop: It's the name="" that's causing you problems .. they are all the same, they need to be different .. or use an array, like name="foo[]"
<9> pm_: I don't know. I've never used PEAR::SOAP. Looks like an error occurred. try if (pear::isError($your_response)) { die("error: " . $your_response->getmessage()); }
<3> i understood ok
<3> i will try now
<3> something too
<13> Dangermouse but do you know how can i consume a dataset with php?
<9> pm_: Nope
<13> ok thanks
<17> MarkL im getting this error message while trying to start apache2
<17> http://pastebin.com/720586
<13> any one knows how to get a dataset from a .net webservice with php?
<0> Meaw: Sounds like you have NameVirtualHost 1.2.3.4 and it's saying you need to use 1.2.3.4:80 or 1.2.3.4:443 .. i.e you can't mix a 1.2.3.4 NameVirtualHost with a 1.2.3.4:443 VirtualHost
<0> Meaw: Either specify ports everywhere or don't, you can't mix
<0> troop: Ok, i give in, i'll write it for you, gimme a few mintues
<0> troop: btw, what do 'guncelle' and 'sil' mean in English?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

atapi is disabled, device ignored
#lisp
ubuntu lib6
#suse
umbutu how to open terminal
base-config debootstrap etch
perl Range iterator outside integer range
Fatal: Module megaraid2 not found
+reduce php memory usage
python os.popen2 flush()



Home  |  disclaimer  |  contact  |  submit quotes