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



Comments:

<0> so PHP and Apache are installed..
<0> and ram is low, but when i execute something in php it
<0> goes up, but never goes back down
<1> stop giving it viagra then :P
<0> haha
<0> seriously..
<1> apache is a memory hog :\
<0> I know.. but it never goes back down
<2> i want to order an array of objects based on one of the object elements
<2> how can i do that?
<3> A sort function.
<2> FreeOne3000: yeah, but which one? :)
<3> Selection sort, bubble sort (not reccomended), quicksort... pick one, adapt it slightly for the cl***es, put it in another function, you're done.
<4> FreeOne3000: bubble sort?
<3> itrebal: Yeah...
<4> i've never heard of it... link?



<2> FreeOne3000: you have a qsort implementation for php?
<3> zamba: I can find one in C++, then change it a bit.
<0> ?
<2> FreeOne3000: don't bother :)
<2> FreeOne3000: i think i'll try usort()
<3> Meh, there 'change it a bit' meant 'add dollar signs'.
<2> :)
<5> itrebal, bubblesort link - http://www.unitedscripters.com/phps/bubblesort.html
<5> itrebal, btw, hows your server doing?
<5> itrebal, btw2. the site is wierd
<4> bugzElMagnifico: i ment to let you know, after a large struggle with a few getting all the libs and stuff together, and PGSQL mostly - its great :)
<5> itrebal, good
<4> bugzElMagnifico: by 'weird' you ment 'badly colored' or 'awfully designed' right?
<5> itrebal, yeah
<6> Julian|Work: hey, thanks for all your help, much appreciated!
<5> itrebal, very much the way I do these things
<4> bugzElMagnifico: "It is not that you do not like my layouts: it is that you have been educated to respect only layouts that are all identical to each other."
<7> bugzElMagnifico: Dont listen to itrebal, he's so dumb that he buys a stick of wood from some guy in the internet!
<7> s/in/on/
<4> Jymmm: http://www.unitedscripters.com/index.html?file=/phps/bubblesort.html this hurts your eyes.
<5> Jymmm, I've got another link for ya... I patched things up a bit here... when you've got nothing to do.... - http://200.206.189.167/doc_domail/system/devTools/creator/form.php
<7> bugzElMagnifico: No way! that's a kiddie porn site!
<5> he he he
<5> I harldy conceive two teddy bears lying on top of each other as kiddy porn
<4> bugzElMagnifico: that one burns.
<7> bugzElMagnifico s/bears/cats/ then it be kitty porn!
<5> Jymmm, ouch!
<8> has anyone played around with making https connections in php?
<0> Fatal error: Call to undefined function preg_match() ?
<8> i've compiled php4 against openssl
<0> oh i forgot the use flag
<8> is it possible to make an https connection?
<9> http://tainted-designs.com/ What do you think?
<10> hey. my page is on http://my.server.com/page/to/mypage.php. how do i retrieve /pages/to/ in the script?
<10> s/pages/page
<11> $PATH_INFO
<12> anyone good with regular expressions here?
<8> \join ##php
<13> hi
<8> anyone have experience with https connections?
<14> \/j #regex
<13> how i can do a redirection to a web page using php?
<15> header("Location: somepage.php");
<13> :) thanks
<16> You should include the full URL as well.
<16> http://example.com/somepage.php
<13> :)
<15> FC-tooki: also, it's good form to do exit; after the header redirect
<15> header("Location: www.blah.com");
<15> exit;
<17> I've written a PHP 4 port of http_build_query and I've run into an oddity testing it with the Windows binary of PHP 4.0.0. For some reason, urlencode('/') = '%2F' in the examples given in the PHP documentation, but when I run it on the 4.0.0 interpretter, urlencode('/') = '%1F'. I don't see anything in the docs for urlencode or in the PHP 4 changelog dealing with urlencode bugs. Thoughts?
<17> Gah... sorry, it's the other way around. Docs site %1F, PHP produces %2F.
<17> s/site/cite
<18> the terminology : object in php is the same as Object in C# ?
<19> yes
<17> Hey indolent, got a second?
<19> um.. sure....
<17> I've written a PHP 4 port of http_build_query and I've run into an oddity testing it with the Windows binary of PHP 4.0.0. For some reason, urlencode('/') = '%1F' in the examples given in the PHP documentation, but when I run it on the 4.0.0 interpretter, urlencode('/') = '%2F'. I don't see anything in the docs for urlencode or in the PHP 4 changelog dealing with urlencode bugs. Thoughts?
<17> I was thinking it might be a typo, but I wasn't sure, and I don't know who to report it to even if it is.
<16> It should be a typo. urlencode() is based on math.
<16> If it's a typo, report it to some docs people. They hang out here.



<19> the only difference i can think of is doc type
<19> but ive never seen it
<16> A forward-slash is a forward-slash.
<19> encoded as UTFXxxx might be different i dont know
<17> I've tried it in 4.0.0, 5.0.0, and 5.1.2... they all produce %2F for '/'.
<16> //echo -a $base($asc(/), 10, 16)
<16> 2F
<16> mIRC says %2F too. I'd go with %2F.
<19> yeah
<17> *nods* My tests p*** with %2F, so that's what I figured.
<20> is anyone good with regular expressions?
<17> I am.
<21> i need some big help. i need to take img path names that are stored in columns in a db (ex.. photo1,photo2,photo3, etc...) and put them in 5 columns in every row in a <table> their can be as little as 1 and as many as 25. how should i set up my for loops?
<20> i have quite the task of removing or converting commas in text fields of a .csv file
<7> Elazar: *nods*+My+tests+p***+with+%252F%2C+so+that%27s+what+I+figured.
<19> AfroTurf: you shouldnt have that kind of setup in your DB
<21> indolent: what kind do i need?
<17> AfroTurf: If you've got multiple photos, you should have a separate table for them per record in the table you're referencing.
<17> AfroTurf: Regardless, though, if you're asking about regular expressions, I think you're barking up the wrong tree.
<19> right.. so ID, Name in 1 table, then IMGID, ID, ImgName
<7> piera: QUICK! Complain about how you had a **** day -or- Tell us what Jason bought you!
<17> AfroTurf: Yup, what indolent said.
<19> hah
<19> it made sense to me
<4> javascript != strong suite
<21> ok elazar: so i should set up 25 tables.. and query each table?
<19> no
<19> 2 tables
<19> * for this example
<22> Jymmm: I had an excellent valentine's.. Jason and I had a nice dinner and that was our valentines
<19> table one is your primary thingy
<7> piera ah, cool
<19> table two is an image reffered to your primary thingy id
<19> with multiple unlimted records per image
<20> Elazar, i need to be able to get rid of all commas inside quotations without removing any commas that separate values, some of which are "text" in quotes and others are numbers 1234.56 ...for example: "1234","ABCD FOO,1X,QR,6 PDQ,ZZZ",4,77.35," "," "
<20> the second field has 4 commas in it that i need to drop or convert to a different character
<21> indolent: table one contains id, and table 2 contains imgnames
<19> refeered to table1's id
<19> -- you need to read up on normalizing..
<19> http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html
<21> indolent: ah i need to learn how to do that
<19> thats for mysql but normalizing is universal
<21> ah thats cool
<20> anyone know how i would write a regular expression to find the commas in that text field?
<21> indolent: ok i understand normalizing but how do i achieve this
<19> so say you want a user based photo page.. you have a user(s) and photo(s)
<19> user = UID, Name
<19> photos = PID, UID, PhotoUrl
<21> k
<19> so now you can 50 records in photos that reference the same UID
<1> this isn't #sql tho *cough*
<19> or 1
<19> -- yeah. im building up to accessing with php
<23> AfroTurf - is it possible to escape the quotation marks? ie: - "foo \" bar"
<23> um
<21> lol
<21> yes
<21> \"foo bar\"
<23> that was to joe4444, sorry
<19> blind leading blind... no offense
<21> continue indolent :) hehe none taken
<19> thats the basics
<19> you can build onto that with many to many as apposed to one to many (what we just did)
<1> i'm scared of normal :P
<21> indolent: soo i have in both tables the primary key set as UID.. and i auto_increment that?
<19> right
<19> you also --- lets do thisn in #sql
<21> k
<19> so we dont annoy purists
<20> i'm getting these as-is files... basically any field that is not a numeric gets quotes e.g. "abc" ... "ab24cd" ... "13235" ... "total $1,432,999.00" ... "blah blah blah, blah blah, blah blah" ...and so on
<20> "13235" is taken as a string
<20> so these are different: "abc",13235,"13235","foo",44.55,"bar" ....


Name:

Comments:

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






Return to #php
or
Go to some related logs:

cpuspeed.conf fedora
#math
#xine
#php
bash compound filepath
ubuntu microcode5
linux maximum adressable memory
gstreamer package faad kubuntu
ubuntu startup static routes
perl shorthand variables $*



Home  |  disclaimer  |  contact  |  submit quotes