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



Comments:

<0> Where would I begin to make a scrip that would go from http://******/download/id/1 up to http://******/download/id/5000
<0> ?
<0> And dowload them.
<1> Renich: that's pretty stupid proof, you know what they need to be right? just change them to that
<0> down*
<0> join #bash
<0> Whoops
<1> root404: apache mod_rewrite
<2> dools: lol... well, i really, really..... REALLY want to know the perms... haha
<1> Renich: then change them, you'll know what they are for sure!!!
<0> dools: I mean I want to download all of the files for ids 1 through 5000
<0> Its not my site.
<1> root404: use a shell script and wget
<2> dools: hahaha... well, I need a command to get perms
<2> dools: nope... don't have a shell... cheap webhosting
<1> Renich: that was a message for root404



<1> Renich: do you have shell_exec()? ie are they running safe mode?
<2> and $chmod = `ls -l` doesn't work
<2> well, shell_exec() and `` are the same... right?
<1> Renich: no idea
<3> Renich, yes
<2> well, that's it.. hehe
<2> hey, wait... it worked! `ls -l` worked!
<2> hehe
<1> Renich: http://php.planetmirror.com/manual/en/function.filegroup.php
<2> any alternative?
<1> Renich: http://php.planetmirror.com/manual/en/function.fileperms.php
<2> great!, thanks dools
<1> hehe RTFM!!
<2> RTFM = ???
<4> is rtfm(); still implemented?
<5> no
<1> !tell Renich rtfm
<1> hmmm doesn't work :-)
<2> haha
<4> jiggster: why not?
<1> how does !tell work?
<6> rtfm = read the ****ing manual
<2> dools: did!... only that "file permissions" on function list doesnt work
<1> Renich: really? fileperms doesn't worked?
<5> ****ed if i know AngelusMori
<2> no, it didn't appear on the search query
<1> Renich: oh right :-) well i did www.php.net/chmod and then looked down the left hand side
<1> alright, i'll see you clowns in the funny pages
<2> ooohhh! nice technique!
<2> hehe
<7> heya... I;m having a bit of an oddity - I'm making a script that displays images in sequence every refresh. I'm usin a session variable to store the image number and increasing it by one each refresh. Well, thats what the script says ;)
<7> it seems to want to increase in twos
<7> Any ideas? the line for increasing the number is $_SESSION['img'] = $_SESSION['img'] + 1;
<7> I'll just add 0.5 for now (seems to work), weird how that happens though o0
<6> Riggzy: where's your pastebin?
<7> D'og.. hold on
<7> D'oh too
<8> how to get list of directories with wget?
<5> uhm?
<7> deadroot - http://pastebin.com/562595
<5> in ##php **** knows man
<6> Riggzy: does your client send a HEAD HTTP request?
<6> s/client/UA/
<7> deadroot - client?
<6> like firefox or internet explorer
<6> if whatever UA you use sends a HEAD before a GET, then it would double your counter
<7> oh right... I'm using firefox
<6> hmm... probably not that then
<7> Could be? it works in Safari (just tried it)
<6> Riggzy: check your server logs
<7> What would be the way to sort that out
<7> So there wasnt an inconsistency between clients?\
<6> i'm still not sure what is the cause of your problem
<6> try checking if the HEAD then GET is the cause
<7> Well, I know this is going to be used in IE, so I'll get it working there... I'm using a server package (MAMP) that doesnt seem to keep logs =S
<7> wait it does
<6> if the log file is humongous, you could either truncate it or empty it
<6> or tail it
<7> Hmm, theres error logs... but not general access logs
<7> oh hang on..



<7> nevermind
<9> dont keep us in suspense like that riggzy
<9> i just held my breath for 16 seconds
<7> lol
<7> Well, I guess I'll just get it working in IE for now, thanks for the help anyways
<9> no prob
<9> i say you make a browser sniffer that reroutes the user to goatse if they hit your ****
<7> hmm
<10> :)
<11> What the heck?
<12> wath teh fekc??/
<5> net split?
<5> or..?
<12> not that I know of
<5> i'm not paying much attention
<5> what are you all gawking at then
<13> hi, can someone tell me how PHP can accept this syntax in its virtual machine? break $a;
<14> hi
<14> if i've got a string containing "user@domain.com", and i just wanted to grab everything before the "@" symbol, is there a single function i can use to do the string processing?
<15> hi everyone
<14> hi
<15> $user = substr($mail, 0, strcspn($mail, '@')); would do it, but strpos() may be faster
<15> I take that back, strpos() is definitely faster
<14> thanks
<14> speed isn't terribly important here, it's for an RSS feed, so it's going to used to process 10 strings every few minutes
<15> if you use strpos() test whether a warning is raised if there is no @ char in the mail
<16> list($user, $domain) = explode('@', $email); if you care for readability more than for speed ;)
<6> CerealVore: some people have the experience that most of their bandwidth are taken by RSS feeds
<14> deadroot: there's only going to be 2 people watching it
<15> et: $user = strtok($mail, '@'); :D
<16> strtok is evil voodoo
<14> HubertRoksor: will that cause problems if there is no @?
<15> gotta love black magic
<15> CerealVore: probably not, but you should test it
<14> i'm processing the output of a radius, some of the rows have a realm (user@realm.com) others don't
<14> (ie, just "user")
<15> anyway, your program should probably test for the validity of the email address
<15> if it is indeed an email addy
<15> btw, I came here because I had a question about performance of an average filesystem (no specific platform, probably whatever Linux uses as default): does anyone know what the limit of the number of files you can put in a dir before the performance degrades too much?
<17> That's a good question ...
<17> nfc
<15> ie. I have a dir filled with 1000 to 5000 files, would splitting it into several subdir really improve the access time to a file
<6> fwiw, in windows, 1000+ files makes things noticeably slower when browsing
<6> access time? no, i don't think access time is affected much by the number of files in a directory
<15> I don't really plan to browse it, the dir holds some cache files so I'll mainly use file_exists()
<15> that's what I thought too, thanks for the input
<18> HubertRoksor: no it wouldn't
<15> cool, thx
<19> what is the good book for php5
<18> xerophyte: php.net
<18> there is no better book than the manual
<15> heh :) php.net is the god book
<19> oh okay
<18> xerophyte: if you want , you can try http://en.wikibooks.org/wiki/Programming:PHP << i contributed there ;)
<6> no, www.php.net rules! :p
<19> anyways does anybody use python and php
<19> i know little python, and going to learn php because my work is use too much php .. but just wondering does anybody code on both and how hard to learn both in parellel
<18> xerophyte: what you just said is very strange...
<18> you cannot combine php with python without big problems..
<18> "too much php" << so you use something else with php too?
<19> Drakas, i am system admin
<19> most of the time i work with hosting servers
<18> yes.
<19> which has many php applications
<18> python is very different from php
<19> like oscommercec cms, and many other
<18> yes
<19> and i am python lover but seems like python web stuff kind of lacking and so many php programs out there so i can resuse them if i work with php ..
<19> so just wondering anybody do both
<19> how hard to code with both in parellel
<20> xerophyte: not so hard :)
<19> gremlin, do you use python
<20> no as much as I wanted to


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ryugi death note
Use of uninitialized value in pattern match (m//) utf8_heavy.pl
#bash
#postfix
#math
nzbget howto
#gaim
hairulfr
#linux
configure pam/nss in FC5



Home  |  disclaimer  |  contact  |  submit quotes