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



Comments:

<0> mick_linux yes, read the guidelines
<1> is that new?
<0> nope
<1> a few years ago I was never kicked for /away msges
<2> it has been around for quite a long time
<0> a few years ago not as much abuse was occuring
<1> then again, it was #php and it was on OpenProjects
<1> Jymmm, ah i see
<2> mick_linux: you weren't around when everyone got booted from #php?
<2> it was rather recently.. and we all know who was guilty of it, I wont make rain on any maker of that goof
<1> i stopped coming to the channel for a while
<1> i'm trying to become a regiular again :)
<1> as time permits really
<1> i was under as another mick_* before
<1> ok, google comes up w/ nothing for "php quiz" and/or "php test" - i only see "use this cool script to create your own quiz" and "test file for php"



<1> only one website so far has some type of online quiz: http://nextcode.org/scripts/php/test/test_php_skill.html
<1> (from what i see)
<1> any other suggested google searches?
<2> you want a php script that does a quiz like thing?
<1> no
<1> i want a site that can quiz me on my php knowledge
<1> i may just subscribe to php-users and start answering questions if i don't find something soon
<3> mick_linux: w3schools.com might bave a quiz for you
<2> mick_linux: are you zend certified?
<1> zircu, no, i want to take the test though
<4> mick_linux: here, how do I count the size of an iterator object?
<2> you can take a quiz and get a certificate for p***ing it
<1> so i want some practice before doing it
<5> hey guys, i upgraded my OS today and i want to install a new version of PHP... anything i should do first? like make clean, make distclean?
<1> NoBeard, i'm not looking to be asked questions via irc :-P
<2> kerplunk_: this is from source?
<5> yes
<3> ##php is a great all day long quiz
<2> mick_linux: you could delve into the php-general list, a nice method to get your feet wet
<1> mikere, :)
<4> or start on irc by answering how I get the size of an iterator object
<1> zircu, thats what i meant (not php-users)
<2> mick_linux: it is the best way i belive, it give you time to think your answer out, see what people say.. etc..
<5> zircu: yes, it is from source
<2> kerplunk_: and by saying you upgraded your OS, you need to re-install php
<6> has anybody here used HTTP_Request pear module?
<4> mick_linux: umm, do you actually know anything?
<6> I'm having trouble setting post data
<4> compu73rg33k: after raw post data?
<2> kerplunk_: if you want the same setting that you used last time, and you have the original source directory you can do a ./config.nice and reconfig exactly
<5> zircu: i went from fedora core 3 to fedora core 4... i wouldn't normally do anything special usually, but i found out i had to remove apache and reinstall it to get it to work right with db4 or something
<1> NoBeard, sorry - i was in a different desktop - whats up?
<6> nobeard, what's the difference between raw post data and regular post data?
<1> oh, the iterator question....
<4> compu73rg33k: what are you trying to do?
<6> I just need to send a field and value of post data into a page
<1> count($var->getIterator()) ???
<6> I'm setting up a link checker for megaupload
<4> CommandPrompt: ahh, look in $_POST['fieldname']
<4> mick_linux: nope
<1> :-(
<6> and megaupload has it's site set up really queer, but I know how to get around it. I have the post value I just need to p*** it to the page
<4> I am iterating over a pdo result set
<2> NoBeard: you want the size of the iterated object?
<7> mabe im going about this the wrong way... i have a table in mysql (simple table, just 2 columns) I would like to access... i know the first value (the variable name)... but i dont know the second value (the value of the variable). Is there any way to "dump" the contents of the table in mysql to php vars? as it is im doing it one by one by doing select... where...variablename, but im sure there must be a more efficient way to go about this?
<4> zircu: yessir
<6> nobeard could you explain to me what raw post data is?
<8> samuel: have you considered getting all the rows?
<2> NoBeard: from a pdo result handle?
<4> zircu: correct
<2> NoBeard: what pdo driver?
<4> pdo-sqlite
<2> and by size how do you mean size, like how many records?
<4> yep
<6> so does anybody know how to send post data using HTTP_Request pear package?
<2> NoBeard: well you can use the $resultHandle->rowCount() but that is specific to the driver, i'm not sure how sqlite handles it
<4> zircu: nossir
<2> no?
<4> $resultHandle->rowCount() cannot be used
<9> BUNGEE!



<6> anybody?
<2> then i would suggest the method described in php.net/manual/en/function.pdostatement-rowcount.php
<1> NoBeard, http://us3.php.net/manual/en/function.iterator-count.php ?
<10> is there a way to keep a script up and running (say its dependent on time)
<9> Nope.
<9> Your doomed.
<10> too bad..
<7> CryWolf, i can get all the rows and then what? i do one by one? is there any way to put them into a matrix?
<4> mick_linux: not available on iteratorIterator
<1> yeft, well kind of
<1> yeft, if it is a cmd line script...
<10> like i want something to happen at 11:30 every day
<1> -NOHUP
<1> yeft, crontab -e
<2> yeft: cron
<1> man cron
<2> man 5 crontab
<8> samuel: what format do you want the results to be in?
<1> well ya
<10> haha i guess i should cron
<10> word.. i get it now.. i was thinking i should program it into the script
<10> instead the script will run whenever cron tells it to...
<10> thankss!
<4> zircu: you mean using fetchAll()?
<2> yeft: you could but that would mean a lot of work when a crontab edit is much easier
<10> haha thanks guys
<10> seeya
<7> CryWolf, it doesnt matter, what do you suggest? i really dont know how to do that
<2> NoBeard: no, more like getting a count(*) based on the criteria first
<7> *array
<7> ?
<8> samuel: what do you want to do with the results once you have them?
<11> hi, how to say if ( $a > 0 and $b <= $c ) (echo 'hi';) ??
<2> the rock use && instead of 'and'
<2> therock: ^^
<12> zircu: why?
<11> if ( $a > 0 && $b <= $c ) ?
<4> zircu: hmm, I am using offset/limit in my query... maybe use the limit var, but it kinda ghetto not to be able to use $stmt->numRows() which only tells you the number of _affected_ rows, and returns zero for a select
<4> zero because no rows are altered in a select
<2> [RainMkr]: precedence, a better habbit to get into
<7> CryWolf, echo them out at appropiate times in a page... its just static values that change from time to time... but i dont want them in the code of the page, just garbage like "welcome to site.com"
<13> How do i quit from while () {}
<8> samuel: so you just need some kind of array. like array[$field1] = $field2 ?
<4> Ox41464b: break
<7> CryWolf, like that would be good, something like a 2-dimensional array to get the values nice and easy
<2> NoBeard: i'm not sure how sqlite works but the problem is that the query is executed asynchronously so to avoid the overhead of waiting for the server to collect all the data, so php can't know the num of results before it is finished and that is when you finish fetching the data
<12> heya kittyanya
<14> [RainMkr]: there's a warrior named Rainmaker on my world of warcraft server. I thought it was you first time I saw him :P
<4> zircu: yes, but after $stmt->excecute it has the data
<12> kittyanya: Nope, but I've been confused with him a few times.
<14> ahh, okies
<12> kittyanya: But I use RainMkr on the MMRPG I do play. :)
<2> NoBeard: are you sure? i know exactly how mysql works, i'm not sure of sqlite driver though
<4> $stmt = $dsn->prepare($sql); $stmt->execute(); $stmt->setFetchMode(PDO::FETCH_***OC); $it = new IteratorIterator($stmt);
<14> Figured it wasn't you when he invaded Undercity and killed me in 3 hits, since my name is Kittyanya on the game
<4> I can iterate over the $stmt object after $stmt->execute
<15> glad to know this old stick is good for something
<0> lig: Well, the 16" dong of yours!
<15> Shh - you said you would say anything about George... ;)
<0> lol
<2> NoBeard: correct, remember this is the idea behind mysql, but basically you execute a query as soon as a row is found out it will be available the $stmt's fetch, which happens to be the method to ->Iterate()
<2> NoBeard: basically the results are returned asap, instead of collecting the results and then send them to php
<16> I created a stored procedure in mysql and when I execute it via the mysql client (call generate('blah');) it works. However when I use php's mysql_query("call generate('blah')", $this->connection); nothing happens. Anyone know why this would occur?
<2> NoBeard: more basically, a buffered query vs a unubuffered query
<17> Hello!
<17> Is there a function to sanitize data p***ed into y our script with a GET variable?
<17> Like...$foo = sanitize($_GET["foo"]); or something like that?
<0> svm_invictvs you wish! =)
<17> hm
<0> hell, I wish =)
<18> i wrote my own sanitize function


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xenguest-install, operation not permitted
#math
java quartz daylight saving
#css
#css
#oe
cpanel undefined symbol: mm_dlog
Yast Onlie update rug
debian etch raidtools
toshiba satellite a75 xgl



Home  |  disclaimer  |  contact  |  submit quotes