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



Comments:

<0> then you can LIMIT 10,10, 20,10, 30,10, blah...
<1> am3n1ty: think deep do you *really* need to setuid root
<1> it's a potential security hole
<1> what command are you trying to execute?
<2> Jakarta, is the first digit the offset?
<2> i thought it was "LIMIT {start}, {finish}"
<0> let me check... i'm sleepy
<2> or is it "LIMIT {offset}, {count}"?
<0> give me a sec...
<2> sure
<3> mareks: Yep but say database was some big complex list of joins and things. Would the result of that join be cached for the next time I do the select?
<2> caching is not going to be handled by mysql
<3> it's LIMIT START, FINISH or LIMIT Start OFFSET Offset
<2> you have to develop your own caching.
<2> stefanpa_, were figuring it out, one minute
<4> Is there a list of PHP error codes anywhere? I'm getting 126 from exec()



<0> mareks ofset
<0> *offset
<5> any way to say give me row 2 and column 5 in pdo?
<2> thanks Jakarta
<2> narada, yea but mysql_query always returns a result pointer
<6> shouldn't a nl2br() also removes the \n ?
<5> mareks: i'm not talking about mysql_query(); i mean pdo
<0> robert_, no
<0> sorry...
<0> errr, robin__: no
<0> str_replace("\n", "", $string);
<5> jesus does no one use pdo yet heh
<2> $result_***oc = mysql_fetch_***oc( mysql_query( "SELECT `field` FROM `table` WHERE `field2` =
<1> ok, let's try once more:
<2> 'match' ) );
<5> another five years before people begin to hear about it
<2> Narada, pdo? what is pdo?
<1> how can I make php ignore all exit() and die() calls in an includd/required script?
<5> mareks: you'll have to find out for yourself; php.net/pdo
<4> Nobody know how to find out what error code 126 is?
<2> haha dataobjects... they actually have something out there for that?
<2> i wrote my own code to handle data objects... haha
<5> mareks: this is written in C and is native and bundled
<2> yea, didnt rly know that
<5> rapha: if you are using exec then codes you get will be from the external program i'd imagine
<2> its not like its really going to catch on tho
<2> Narada, http://www.rubyonrails.org/
<5> mareks: i think it already has; it really does rock
<5> mareks: wrong language both for me and this channel but nice thought
<2> ... dont think i dont know that. im just telling you there is significantly greater solutions compared to pdo
<4> Narada: the external program only ever returns 1 or 0. So I'm guessing it maybe can't get access to the external program or something, but I'd have to know what exactly
<5> mareks: i could point you to propel, symphony and wasp for php
<2> when i started developing my own handlers for it, i thought it outrageous...
<1> ok, gtg
<1> cu all
<2> i got it to work, but its not really that practica
<2> l
<7> rnnnnnnn: i am not sure
<3> Ok so if I have a huge query which I'm going to be calling over and over again, should I create a temporary table and use that?
<5> rapha: php doesn't have error codes only error constants and there aren't that many of them; if you are using a db that will have codes
<4> Narada: constants map to integers or strings, don't they?
<3> And the next question is if I still a db connection into the $_SESSION variable will it survive because I've heard people having problems with resource's I was wondering if it happens to the connections too
<4> Narada: anyway, can you think of some way to find out what's going wrong here?
<6> ok I still have some newlines in there, could it be something else than \n ?
<4> Narada: http://pastebin.com/548144
<3> \r
<3> robin: \r
<6> stefanpa_: ok, will try to remove that aswell
<8> hi
<8> is there a builtin php function
<8> to test whether a value is a valid date ?
<6> stefanpa_: thx, it was the \r
<3> robin__: Are you using a Mac?
<3> or a Windows machine?
<6> stefanpa_: Windows, I used FCKeditor, and some paste from Word added the \r I think..
<3> windows I think uses \r for new lines *nix uses \n and Mac's use \r\n (or the other way around)
<6> I love standards ;)
<9> stefanpa_ - got it mixed up
<9> windows: \r\n mac: \r unix: \n
<9> windows = max + unix
<9> :)



<3> AnarkiNet: Thanks
<6> the best of both worls ;)
<6> *worlds
<9> no
<6> a joke of course doh
<6> :P
<9> oh
<9> bleh...its 03:22, cut me some slack here :/
<6> GNOME or KDE (let's flame)
<9> WinXP!
<3> robin__: There should be something which will handle it for you. A regexp should work I think.
<9> i always use \n
<9> even though my server is Windows Server 2003
<5> rapha: sorry have got quite busy at work; perhaps someone else can contribubte
<9> and my main OS is WinXP
<9> :P
<6> I'm a Linux fan therefor I use Windows, so I know what can be improved.
<3> Every one should use \n now as even the mac doesn't(shouldn't) use \r anymore as it's all *nix.
<10> morning
<9> yeah
<10> How i return one array for a soap client?
<9> plus theres no reason to have an extra byte for every line
<10> for($i=0;$i<$this->nrows;$i++)
<10> {
<10> $this->row = $this->result->fetchRow(DB_FETCHMODE_***OC);
<10> $rv[$i] = $this->row;
<10> }
<10> return $rv;
<10> it not work. I need use SoapValue?
<11> fmarostica: please use pastebin
<10> My Soap Server execute a query (SELECT) in database an retrieve data, this data are p***ed to my soap client
<10> if i use the above code, i get strange errors (SoapFault)
<10> if i return first record it works fine
<10> return $this->row = $this->result->fetchRow(DB_FETCHMODE_***OC);
<4> Narada: np, thx
<10> it work
<10> but, if i return it how array i get error :/
<12> What could possibly stop me from pinging msn.com but I can still goto it via a browser, and could it be linked to my MSN not working O_O
<10> :(
<12> Wrong channel...
<3> Bye the way MySQL will cache querys apparently if you set it up to.
<3> by I mean
<13> Just got a quick question about navigation on my website. I am always struggling with how to organise things.
<13> http://www.garyhooks.co.uk/index.php?page=projects
<13> that is the page in particular. The page is projects, and the word is highlighted to show that is the active page
<13> I want a user to be able to click on a project, and for it to display a big written report with screenshots and images of the project. But not sure how best to organise it.
<13> Should I create a new .php page for each project, and just do: index.php?page=projects&project=SOMETHING and just include the project php page?
<13> Or should I link it to a completely new page: i.e. index.php?page=some-project but how would i highlight the word PROJECT to show it is the active subject. A lot of fiddling around really.
<13> thanks.
<14> anyone up, is there a way to extend the execution of a php script other than set_time_limit? After a while of executing a posted request the script crashes
<15> if i call a in a static way a function of an object, is there some trick to find an instance of the object from inside that function?
<16> That doesn't make sense, Getty. Rephrase for me
<15> kuja: i call Debug::WriteLog()
<15> kuja: and i want inside that function a way to find some instance of that object if its there
<15> but i guess i must find that other way
<16> Oh, you're talking about singletons.
<15> thats a static call :)
<16> Well, it's simple. cl*** Debug { static $inst; }
<16> Store a single instance in Debug::$inst and refer to it all the time.
<16> It's called a singleton.
<17> Hi! Does anyone know how to make a category based function with unlimited children categories? I want to use it for a webshop...
<9> CopyNinja - read up on Cl***es
<17> LIke if you have a web shop with categories: BMW, MB, VW... And if you click MB for example, there should be more categories visible if available in database... And if you click that category, then new categories will be visible in a tree-view (if any categories exists for that mother category)... Any help is appreciated!
<17> I know how to do limited category based system... But I am stuck on the unlimited thingie...
<9> its called recursion
<9> and you need to do what i told you: read up on cl***es
<9> nobody is going to code this for you
<17> AnarkiNet: So I wont be able to do it using some kind of code like this: http://pastebin.com/548239 ?
<4> Sorry, does ANYbody here know how to use the exec() function?
<17> I was thinking about making it in someway using loops...
<16> rapha: No
<16> Nobody here knows how
<4> kuja: Thanks, that's helpful :-)
<16> You're welcome


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
equery l output
iptables v1.3.3: can't initialize iptables table `filter': iptables who? (do you
best php compiler
wine MCI_LoadMciDriver
kanarip
linux tolvans
deb unix2dos ubuntu
Index of/pic/pic
hda_intel send_cmd timeout



Home  |  disclaimer  |  contact  |  submit quotes