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



Comments:

<0> Dark-Fear: Or Net_SMTP from PEAR
<1> hey all - does mysql_query ALWAYS return a row? I'm querying an empty table and mysql_num_rows returns 1?!?!
<2> Well.. at least my solution works temporarily... while I now work the proper way out... :)
<3> just don't want to have to modify any php programs to make it work
<3> right now the person I am helping is trying to get this all working for mantis
<4> Greetings. I'm having a problem getting GD JPEG functionality working. I've compiled PHP using the included GD library, and compiled in libpng and libjpeg. Both of these are detected at compile time...
<5> Dark-Fear: Neither phpmailer nor Net_SMTP require modifications to PHP.
<4> However, my jpeg functions still do not work.
<5> Dark-Fear: They're both software packages built with PHP.
<6> turtlexiv, what error?
<3> ahh
<4> [or: Call to undefined function imagecreatefromjpeg()
<5> bugzElMagnifico: You could just archive your existing data and then find some way to incorporate an aggregation scheme into your current setup, though.
<6> turtlexiv, are other GD functions working?
<4> [or: yes. or at least, they don't come up as undefined.
<2> Elazar, that's the basic idea of the zipped array... but I think I'll work on the log processing... seems more logical



<6> turtlexiv, weird. what platform is this?
<4> [or: Debian
<0> turtlexiv: Check your phpinfo()
<0> turtlexiv: It'll tell you which formats your gd library supports
<4> TML: already have.. GD enabled, doesn't list JPEG
<7> Ox41464b: you there?
<6> compile errors?
<4> what I can't figure out is why JPEG is not included.
<7> Ox41464b: if you're still having that regex problem, try: '/<a (.*?)href="(.*?)"(.*?)>(.*?)<\/a>/mis'
<5> bugzElMagnifico: If you've got some sort of archival rotation scheme for your logs, I believe analog can handle that.
<1> Hey all, I'm trying to understand mysql_query... does it always return a row as a response?
<4> [or: nope. In fact, it specifically mentions finding libjpeg: checking for the location of libjpeg... /usr/lib
<8> does it find it?
<2> Elazar, I dont think analog does what I need... I need to separate this in a way that my clients can view what's going on in idiot-proof graphs and data... analog is just *too* complex for the likes of them
<9> I am having a problem with amd64 bit cpu and php. If I do if (ereg($sns,$sn)){ } it always says they don't match. I can print the variables and they do match. I have the same program on a non-64bit machine and it works fine. Is there a problem with ereg and 64bit machines. How can I get around this?
<5> bugzElMagnifico: Analog can be used to return data to PHP, was my point.
<5> bugzElMagnifico: If you wanted to be able to manipulate that data directly.
<2> Elazar, AHHHH..... I'm googling now... cool tnks
<0> turtlexiv: Because you didn't have the right jpeg libraries in the right place when you installed GD
<0> turtlexiv: s/installed/compiled/
<5> bugzElMagnifico: NP. Very flexible in terms of allowing you to manipulate what it processes from the logs (i.e. via regex and whatnot).
<0> turtlexiv: You'd be better off installing stuff like that from a package.
<4> TML: how is that so, when the compile process verifies that it's there?
<5> bugzElMagnifico: http://analog.cx ... Also, there's a program out there called Chart Director that might be useful if pretty pictures if what you want.
<0> turtlexiv: Which compile process are you referring to?
<4> TML: PHP compile.
<2> Elazar, great, btw... you do realize that you have just stolen me, at least another night of sleep right?
<0> turtlexiv: PHP compile has nothing to do with what your libgd supports
<5> bugzElMagnifico: http://www.advsofteng.com/download.html ... there you go, has a PHP version.
<0> turtlexiv: Unless you're using PHP's bundled libgd.
<4> TML: I am
<9> so has anyone had an issue with egreg on 64bit CPU
<4> using the bundled, that is
<5> bugzElMagnifico: *lol* Yeah, sorry about that. :P You've got me reminiscing about stuff from the last job I quit, so we can call it even. ;)
<0> turtlexiv: Any particular reason you don't install it from apt?
<4> TML: yes, me and packages don't get along.
<4> :P
<0> *blink*
<2> Elazar, last job you quit? - that makes me feel much better
<0> turtlexiv: How did you install libjpeg?
<4> TML: package.
<0> ...
<0> turtlexiv: Did you install the -dev package?
<4> yep
<2> Elazar, specially since I can't quit this job since I am my own employer!
<0> turtlexiv: Which libjpeg version and -dev did you install?
<10> you talk to mark yet?
<4> libjpeg62 and *-dev
<5> bugzElMagnifico: *lol* I just learned about this stuff there. "Management issues" prompted my departure.
<11> what is a content engine?
<1> Please somebody help me - does mysql_query() always return a row even if the SELECT doesn't? mysql_num_rows() returns 1, even when querying an empty table...
<0> turtlexiv: grep JPEG_LIB_VERSION /usr/include/jpeglib.h | grep define
<4> TML: #define JPEG_LIB_VERSION 62 /* Version 6b */
<0> turtlexiv: Pastebin your config.log from php
<4> heh k
<0> turtlexiv: Although you'd be done by now if you just did apt-get install libgd2
<4> TML: already tried that too. if I change the PHP config to --with-gd=/usr/bin, PHP refuses to compile
<11> what is a content engine?
<0> turtlexiv: Of course it does. --with-gd=/usr/bin is dead wrong.
<4> err I meant /usr/lib
<0> turtlexiv: Of course it does. --with-gd=/usr/lib is dead wrong.



<4> TML: hehe well then enlighten me :P I was unable to locate gd.h anywhere on the system
<4> other than the PHP directory of course
<11> what is a content engine? :(((((
<1> Keal: Not sure what a content "engine" is... but a content management tool/system, usually allows for pages to be easily managed (create, modify, search, archive)
<11> ok
<0> turtlexiv: Debian packages put their libs under /usr/lib and their include files under, stunningly enough, /usr/include.
<11> i cant make one :(
<1> Keal: Well, it's that much harder if you can't describe one, either!
<11> rawsweets i need one :'(
<1> Keal: Can't make what you don't know! :-)
<5> rawsweets: It will return a single row if you're only dong a count, even if the table is empty.
<1> thank you Elazar - you are a kindly God, indeed
<4> TML: kk. configure fails with it set to /usr/include as well
<0> turtlexiv: To get gd.h, you'd need the -dev package to match your libgd, because base packages don't contain headers under debian.
<0> turtlexiv: .........
<11> rawsweets i need one :'(
<5> rawsweets: NP. :) Was that what was going on in your case?
<1> Can't help you Keal - you don't even know what it is you need...!
<12> What PHP-MySQL-based bug trackers are available? I'm familiar with Mantis. Any others?
<1> I'm just trying to have my PHP do something when rows are present
<11> i want my online magazine to work
<0> turtlexiv: You know, random guessing isn't likely to get you very far.
<0> turtlexiv: --with-foo=bar looks for bar/include and bar/lib
<1> But how else can I check to see if a result was returned... isn't num_rows the only way to find out what a SELECT query returned?
<13> my process form file stops dead and doesn't output anything at all
<0> turtlexiv: So, for example, --with-gd=/usr, to find /usr/include/gd.h and /usr/include/libgd.a
<5> Keal: Your issue is that you need a content management system?
<9> preg_match() doesn't seem to work correctly with a string like this: 224fffec59828
<11> num_cols
<1> Keal - you probably want a CMS tool/framework
<0> turtlexiv: But you're not going to have /usr/include/gd.h unless you installed the proper -dev package for your libgd
<11> yes Elazar :(
<9> if I compare that string to its self it fails to match correctly
<0> !tell Keal about cms
<1> I'd look into Seagull - my friend swears by it
<9> anyone know why ore how to fix it
<0> IOscanner: What do you mean?
<4> TML: I've got it now. I f'ed up and forgot libgd2-dev, I thought I had installed it.
<1> Is there any other way to see if a query returned a result, *besides* mysql_num_rows??
<5> Keal: There are a lot of existing third party systems available. It's mostly about what you want/need.
<0> rawsweets: Sure. fetch the results.
<5> Keal: Generally, you want to avoid any *Nuke systems/clones.
<1> row_fetch?
<9> I do if (preg_match("/$sns/","sn")){}
<0> rawsweets: In fact, in your case, I challenge you to do so, because if it's returning a row, the table most ***uredly is NOT empty.
<1> so if mysql_fetch_rows == null???? (Sorry, JavaScript background here)
<9> it doesn't seem to match sns to sn when they are the same
<9> it works fine on a 32 bit cpu
<1> Well, Elazar said num_rows ALWAYS returns 1 or more
<0> IOscanner: $sns and sn are NOT the same.
<9> but now I am on an amd64 bit CPU
<4> TML: thanks for the help
<9> when I print them they are
<0> IOscanner: Don't use print. Try var_dump()
<9> doh
<0> IOscanner: Print won't show things like, say, \n
<0> Or " "
<9> white space at the end of one
<0> Right.
<5> rawsweets: I didn't say ALWAYS, just in the case where a COUNT is used on an empty table.
<5> rawsweets: Or where the result set size is actually 1, if it isn't using COUNT. :P
<1> Ah - the query is normal, no functions, etc
<9> I don't get that on a 32bit cpu
<9> strang
<9> strange
<0> rawsweets: mysql_num_rows() returns precisely the number of rows that are in the result set. No more, no less.
<5> rawsweets: If that's the case and the table is empty, I have no idea.
<5> rawsweets: What TML says is accurate, though I'm not sure it'll help to clarify the answer to your question.
<0> IOscanner: I would lay good money down that the CPU has absolutely NOTHING to do with that.
<0> I already told you how to clear up your problem. Just fetch the results and var_dump() them. The table isn't empty.
<1> Well, the table IS empty, then try and do some conditionals based off num_rows result... my debug shows that num_rows is returning "1"
<0> rawsweets: The table ISN'T empty.
<1> okay okay - I'll check the dang table
<0> Don't check the table, check the result set PHP is getting back


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#mysql
#perl
imp quota display
apache won't start no listening sockets available redhat
christhemonkey
opera that wouldnt restart page
CoderCR
no sound in youtube
wish: not found fedora
Compiz pluggins



Home  |  disclaimer  |  contact  |  submit quotes