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



Comments:

<0> should i replace a href="/stats?q= with '' or is there another way?
<1> dunno, ive got my own stuff to work on right now, sorry
<1> works in perl, thats all i know
<0> can you paste your preg_match_all function here?
<0> so u got only list of keywords, right?
<1> perl -le 'print $1 if "<td align=left>&nbsp;&nbsp;&nbsp;<a href=\"/stats?q=games\">games</td>" =~ /a href="\/stats\?q=(.+)">/;'
<1> thats what i know
<1> output: games
<0> i see..
<0> follower thank you very much for your time, i will try to replace href="/stats?q= part in some way..
<1> thats not the problem
<0> you helped me enormely already!
<0> i am near to solution
<1> not if you think thats the problem
<0> just wanna do it in some fast way
<0> i now have this: preg_match_all("/(?<=<a href=\"\/stats\?q=)(\w(?: |).+)(?=<\/td>)/", $RetrieveFile, $matches);



<0> output: games">games
<1> wtf
<1> no
<0> how i can tell here (?<=<a href=\"\/stats\?q=jolly character supported by reg.exp. in this case)
<0> make the func. ignore that part
<0> and output only games
<0> i tried (.+) but it gives error
<1> php -r '$string = "<td align=left>&nbsp;&nbsp;&nbsp;<a href=\"/stats?q=games\">games</td>"; preg_match_all("/<a href=\"\/stats\?q=(.+)\">/", $string, $matches); print_r($matches);'
<1> funny, works for me
<0> let me try carefully it
<0> same :(
<0> $GrabURL = "http://stat.go.mail.ru/stats?q=game";;
<0> $RetrieveFile = implode(" ",file($GrabURL));
<0> preg_match_all("/<a href=\"\/stats\?q=(.+)\">/", $RetrieveFile, $matches); print_r($matches);
<2> file_get_contents would probably be better than file + implode
<0> maybe PHP version or implode issue?
<0> spox is it supported in php4?
<2> no
<0> my hoster still has PHP Version 4.4.1
<2> what is an example string of what you are trying to match?
<0> this one:
<0> <td align=left>&nbsp;&nbsp;&nbsp;<a href="/stats?q=games">games</td>
<1> he wants whats after q=
<0> almost 2 days i'm trying to figure it out with no success :(
<0> yes or after q= or word inside of >games</td>
<1> @php '$string = "<td align=left>&nbsp;&nbsp;&nbsp;<a href=\"/stats?q=games\">games</td>"; preg_match_all("/<a href=\"\/stats\?q=(.+)\">/", $string, $matches); print_r($matches);'
<1> spox: give me the modspox!
<0> maybe issue is in explode or because there are multiple lines - not only 1 string
<0> file_get_contents
<0> (PHP 4 >= 4.3.0, PHP 5)
<0> so it should be supported by php 4.4.1?
<2> guess so
<2> preg_match_all('/<a href="\/stats\?q=(.+?)">/', $a, $matches)
<2> use that
<3> TITS
<1> HWERE?
<0> sorry i were away from keyb.
<0> now i will try it
<0> Parse error: parse error, unexpected T_STRING in /web/htdocs/www.istitutovitelli.it/home/3.php on line 16
<1> you did something wrong then
<4> hey all
<0> preg_match_all('/<a href="\/stats\?q=(.+?)">/', $RetrieveFile, $matches)
<1> preg_match_all("/<a href=\"\/stats\?q=(.+?)\">/", $RetrieveFile, $matches);
<1> basically the same thing
<1> you broke something, somewhere else
<2> the double quote enclosures make it harder to read
<2> and yeah, you messed something else up
<1> i like to make things hard to read
<2> :P
<0> preg_match_all('/<a href="\/stats\?q=(.+?)">/', $a, $matches)
<0> this gives parse error.. now i will double quote it with backslash
<0> preg_match_all("/<a href=\"\/stats\?q=(.+?)\">/", $a, $matches)
<0> same error :(
<1> that is effectively the same thing
<2> it's not that line
<1> because you broke somsething somewhere else!
<2> it's something probably befre
<2> before*
<0> please take a look at file: www.istitutovitelli.it/3.txt
<1> there is no ; on line 4
<0> oooops



<1> man, i spent way too much money yesterday
<0> i think now it works very well.. just another question.. why is there 2 arrays and first contains [0] => <a href="/stats?q=games"> and so on
<1> because thats what it does
<0> and second - [0] => games (right one)
<0> so to retrieve keywords i just need to echo $matches[1][0]; etc?
<1> @preg_match_all
<1> yup
<2> the first is the full match
<5> (PHP 3 >= 3.0.9, PHP 4, PHP 5)
<5> int preg_match_all ( string pattern, string subject, array &matches [, int flags [, int offset]] )
<5> Perform a global regular expression match
<2> the second is the actual () matches
<5> http://www.php.net/preg-match-all
<0> cool guys i can't believe
<0> is there a possibility to output just first 10 keywords without use 10 echos on 10 lines?
<0> arrays is my second and not last problem :/
<1> for ($i = 0; $i < 10; $i++;) { process your data; }
<0> ok, thank you very much follower and spox and php channel!
<0> you are the best!
<1> well, its poop time now
<6> hi, is there a way to resize a JPG?
<1> no, its impossible
<0> lol
<0> jpeg is dead
<7> it is?
<7> news to me.
<8> hi guys
<2> yeah
<0> just joke*
<2> didn't you hear
<2> email is dead too
<2> @slashdot 1
<1> shower time, then back to postgres
<5> 02/06 15:19: The Time Has Come to Ditch Email? -> http://slashdot.org/article.pl?sid=06/06/02/1421210
<2> death to email and jpgs!
<8> im trying to code a student management system, where teachers can post grades online and students can view it.. question is, how should I make the structure of the database table?
<1> that article ****s
<1> so does the originating article
<8> anyone?
<1> #db ?
<1> #mysql, #sql, #postgresql
<2> MessageCatcher: figure out all the data you want to store
<2> then normalize it
<8> spox, okay. Like creating tables for student info, grades, department, major.. etc.
<0> found this article about JPG -> http://blog.wired.com/monkeybites/index.blog?entry_id=1489144
<0> ok guys, have a nice day, thanks again for your help and see you later!
<4> hmm
<4> i'm building an o-o app in php5
<4> woo
<2> http://www.amazon.com/gp/product/B00000JBUI/102-7069528-2312959?v=glance&n=172282
<2> why did logitech quit making these things :/
<1> $377.11, lol
<2> i have one here at home and love it
<2> i hope it never breaks :/
<2> howdy babble
<9> what's up[
<9> was dal down all night for you guys?
<2> no
<1> nope
<1> maybe for an hour
<10> trackballs--
<2> you're crazy
<2> well, all the other trackballs i have ever used have been ****
<2> but this one i love
<2> also, it is used to steer the ship in farscape
<10> yes, trackballs being useful is science fiction
<2> i never could get into farscape, but seeing the mouse i use as the controls for a ship really killed it for me :/
<2> so what are you up to today pizza?
<10> hmm
<10> nothing interesting
<10> updating test plan, working on a utility
<2> what kind of utility?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#allnitecafe
#india
#linux
#india
#kl
#php
#chat-world
#sql
prosetute
chat voiec



Home  |  disclaimer  |  contact  |  submit quotes