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



Comments:

<0> uhm, $height = $height * (cfg_imgmax_x / $width) ; is useless
<0> if cfg_... == $width
<1> Where is the cfg_imgmax_x constant defined?
<0> cgf_imgmax_x has to be > than $width if you want to get a smaller pic
<2> is it in a file which is included at the beginning of php
<0> ops, I mean <
<3> Hi
<2> that's true but it alway output the same height and a different width
<2> cfg max = 250
<3> I'm looking for help with an issue in my IRC bot. http://alive.dienub.org/ircBot.phps
<1> ace_me: Well, as maver just pointed out, line 25 of your pastebin says "$height = $heigth;"
<2> cgf_imgmax_x=250
<1> Just in a very roundabout way
<3> Problem is, some IRC servers (My own, in particular) send a PING after NICK and USER, which contains a random string.
<3> And expects the client to send a PONG with that string.
<2> TML how to change it please ?



<3> I've been trying all the methods I can think of, but nothing helps.
<4> Something fishy is going on here.
<1> ace_me: What are you wanting to do there?
<4> What's the limit in chars that you get send as POST data?
<2> to obtain a height proportionaly with the rescale parameter
<4> It keeps failing when I reach > 512.
<4> Which makes no sense.
<2> but I always get the same height
<4> Is this a cURL limit?
<5> hi there, please i need to add an entry in ldap... with the attribute member ? what is the right syntax for this ?
<1> KimmoA: It's much, much, MUCH larger than 512
<5> $add['member'] = 'my DN';
<4> TML: Yeah. It makes no sense.
<5> is this will add an entry in the 'array' ?
<6> hmm
<1> krystoff: ***uming nothing currently exists at key 'member', yes.
<5> no something exists
<1> krystoff: Then it will overwrite the existing value with the string 'my DN'
<5> it s like the memberOf attribute it may have many entries
<5> can i use something like ['member'][] ?
<1> krystoff: ***uming that the value at key 'member' is an array, and you're ok with letting it get the next numerical index available, yes
<5> ok thnaks TML gonna try this way
<3> ... =/
<1> ace_me: $width = cfg_imgmax_x;, and on the next line you say: cfg_imgmax_x / $width
<1> ace_me: any number / the same number == 1
<1> ace_me: That's like, 3rd year math
<1> ace_me: So "$height = $height * (an expression that is always 1)"
<1> In other words, "$height = $height;"
<7> good morning =]
<3> Thanks anyway
<8> >:)
<9> how would I go about correcting this query
<9> SELECT id, category WHERE subcategory is not null ORDER BY category ASC, id ASC
<10> prior to pulling my ear off, perhaps someone can throw a nugget of knowledge my way: regarding entity references & PHP's DOMDocument...
<9> subcategory is null is where I am getting an error, I remoevd the not
<10> a.xsl includes b and c.xsl; what's proper way to define entity reference in such a way that all 3 xsl sheets can use it, but that I don't have to define it in all 3 sheets???
<11> Brian_S, whas the error?
<12> echo "<input type=\"hidden\" name=\"$key[]\" value=\"$send\"\n>"; is there a specific way I need to escape that $key[] line
<9> #1064 - 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 'WHERE subcategory is null ORDER BY category ASC, id ASC' at lin
<12> , should be AND
<12> i think
<12> maybe not..
<12> hell i dunno.
<11> FROM table
<11> ?
<9> I did forget the from
<9> thanks
<11> lol
<9> let me try that
<11> took way too long for me to spot that
<9> I've been on this a good hour
<12> i have no idea why this simple echo isnt working
<12> $key and $send are both set.
<12> its gotta be something to do with the damn []



<13> when i include a page and this page also includes a page, the second include must be relative to the primary page, not to the second one. is there a good practice to avoid that problem?
<13> e.g.:
<11> DogWater,are you trying to append the [] to the value of $key?
<13> i have a index.php which includes tools/html.php
<13> tools/html.php needs access to model/user.php
<8> DogWater: of course.. [] returns the next index number of $key.. which of course is unused
<14> Skinkie: there?
<9> NULL means empty correct?
<15> fumanchi, i am
<11> Brian_S, no, it means NULL
<14> Skinkie: so.. what happens?
<9> cause my query with null brings no records up and there are 3 entrys are empty
<13> from the perspective of tools/html.php it must inlude ../model/user.php
<9> ahhh, what can I do to write empty tables
<14> Skinkie: lets query
<15> basically it doesn't do anything :)
<16> Brian_S: "" != NULL.
<11> if you have an empty varchar thats not the same as null
<13> but when i use it in index.php, this is not working
<12> niraj: well, i'm just trying to print []
<12> niraj: the actual characters
<8> oh right... stupid me
<8> disregard
<8> :P
<15> fumanchi, $inhoud = unserialize_binary(file_get_contents('tab-file'));
<14> Skinkie: yes.. what does this line of code say?
<9> still notta
<0> MicW: pastebin your code at pastebin.com
<12> InterLNK: no i'm just trying to print the value of $key and then []
<0> MicW: just include() lines and file names and path
<15> fumanchi, just the php function 'read the entire file to a string' and make unserialize_binary process it
<14> Skinkie: no.. does it work or not...
<12> before I think I had to do ".$key[]." but i dont remember
<12> its been awhile since i've done this
<12> or maybe it was ".$key."[]
<14> Skinkie: and it it doesnt... what error occours?
<15> fumanchi, it doesn't now, it did for unserialize()
<15> fumanchi, no error occurs, but $inhoud stays empty
<14> hmmm...
<14> but it should work
<13> maver: i try to build an example
<14> no errormessage no notive.. nothing
<14> ?
<8> DogWater: echo '<input type="hidden" name="'.$key.'[]" value="$send"'."\n>";
<15> fumanchi, nothing
<14> errors set to E_ALL ?
<15> fumanchi, i guess for CLI that is true, but let me check
<17> hello
<14> i run this module here :)
<8> DogWater: oops.. you'll have to do '.$send.' too
<14> it _must_ work
<14> i even use this extension as default session-handler
<15> i'm going to test this on a different file
<9> what would be the easiest way to say "subcatergory is empty" in a mysql query
<15> fumanchi, it seems to work from inside php... now trying to write to a file
<0> Brian_S: ... WHERE [field] IS NULL ...
<13> http://pastebin.com/625278
<9> where feild is null does not work
<13> is it possible that i can call s.php AND sub1/s1.php without errors?
<15> fumanchi, this is great... because it does work...
<15> fumanchi, but it doesn't for my situation :S
<0> MicW: that code should work
<0> try to use is_readable('file_to_include')
<9> MicW, when I do not null it shows up
<0> before include()ing it
<9> but it don't work
<14> Skinkie: its even more komplex
<11> Brian_S, its not null.. you should adjust the table so as to make subcategory default to NULL
<14> Skinkie: but.. culd you check if it returns NULL ?
<9> oh ok
<11> and then update your existing records to store a NULL value instead of an empty string
<15> fumanchi, not null
<14> Skinkie: but?
<14> Skinkie: it return nothing?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

mindeq
#python
clisp debugger
ppf patch ubuntu
#php
#physics
#gentoo
#lisp
qkemu layer
cache:ejvhgBsePNYJ:www.quotesdb.info/freenode/postfix/16Feb2006/1.html postfix w



Home  |  disclaimer  |  contact  |  submit quotes