@# 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 34 35 36



Comments:

<0> Me no like bloat.
<0> But me also no like "mysqli".
<1> makes it *so* much easier to handle.
<2> Get over it.
<3> Xyphoid: there is a php_compat in perl to help
<0> Just asking... What will happen in the future?
<2> If I knew that, I wouldn't be here.
<3> err.. pear...
<4> does <? $_SERVER['PHP_SELF'] ?> also include the $_GET tags if any are set ?
<0> :/
<0> So many functions... so little time.
<3> [Ex0r]: no, but it does include the PATH_INFO data
<2> No real need to know them all, if you know where to look for them when the need does arise.
<0> Would simply installing the mysqli extension and replacing all "mysql" functions to "mysqli" be insane or wise?
<4> zircu- do you know how to get it to include them? (Making an automatic redirect system on login, so the user is automatically redirected to their previous location after they log in)
<5> KimmoA: are you using mysql 4.1+ ?



<0> 5.
<6> KimmoA: insane
<3> [Ex0r]: be carefull when using PHP_SELF in cases when you use it in a <form action="<?php echo $_SERVER['PHP_SELF']"> thus leaving someone to type in the url: /path/to/script.php/../../../../etc/p***wd
<0> Why insane?
<2> Well, mysqli would give you access to features of 5 that you don't currently have access to.
<2> Since the old client doesn't know how to support them.
<7> nite kiddos
<0> I'm only interested in the "increased performance" bit...
<6> they're not fully compatible
<6> so you have to rewrite quite a bit of logic
<3> [Ex0r]: you could test for $_SERVER['HTTP_REFERER'] and redirect to that otherwise to a standard loggedin page
<0> MySQL/SQL is also full of weird **** that seems to have little use...
<6> like?
<8> zircu: HTTP_REFERER is simple to fake
<2> Maybe it has uses that you just aren't aware of.
<3> NeoThermic: yes
<0> Stop requiring me to give examples. :I
<5> deadroot: if he is mad about mysqli extension i don't think he is probably doing anything besides SELECT, UPDATE, and INSERT :)
<4> zircu- do you have any recommendations on how to go about getting what I am trying to achieve ? I was thinking to store the redirect page in a session, than when the user visits the login-required page, if they aren't logged in, the session is set to the page they are currently at, than when they login, it automatically redirects
<2> Stop making statements with no basis in fact.
<9> Rubberneck: that was me a month or two ago
<0> OK. Would you do a MD5() on PHP or MySQL side?
<0> Things like that bug me to no end...
<2> Depends on the situation.
<9> neither for me, i use sha1
<0> How can it depend on the situation if it's inside a PHP script?
<3> [Ex0r]: that would be the best solution, the var you would want is $_SERVER['REQUEST_URI'];
<2> Because if the data you're hashing is in the DB, the DB can hash it faster.
<8> if you're only ever going to target MySQL, you could get away with doing it on the MySQL side. However, if you wish to use many databases with the same query, use md5 PHP's side
<2> If the data you're hashing _isn't_ in the DB, it makes little sense to ***emble a query just to hash it.
<4> zircu- and that will include the full path? (Including the $_GET data, if it's set?)
<0> mattmcc: Well... can't we ***ume that it's in the database?
<2> No, of course not.
<0> Hmm... maybe not.
<3> [Ex0r]: correct
<2> Not all data you'll encounter in life exists in a DB.
<9> mattmcc: sure it is... its called Google :)
<9> "If we can't index, store, and analyze it - we'll destroy it."
<2> I've got plenty of web pages google doesn't know about.
<0> Right now, what mattmcc says makes sense, but I'm sure it wasn't that easy in the situation I was in...
<0> I don't see me changing from MySQL anytime soon, but I don't like using non-standard **** still...
<2> Well, I'd propose that when you encounter a situation like that, where it doesn't make sense to you why something is the way it is, don't start from the ***umption that it's a waste of space, and should be removed.
<2> Consider the possibility that it's there for a reason that you simply aren't aware of yet.
<0> I don't. I can see why MySQL would support MD5()...
<0> But these "constant" changes to a new "set of functions" (also happened to Allegro, with _ex ****) bug me...
<2> Within my scrollback, you've done it twice. You questioned why mysqli exists, and then why md5() exists in both PHP and MySQL.
<0> Nah. Just that sometimes, it's unclear on what level you should do something.
<9> KimmoA: if its faster for the DB to do, have the DB do it
<2> True, and deciding the right answer to that is something that comes with experience. And don't be surprised when the answer is almost always "it depends". :)
<10> I'm sure you guys get this all the time... but what would be the best way to go about ajax with php? So many people have projects, no idea whats good and what isnt. Any help is appreciated.
<9> nonickforme: echo 'ajaxcodegoeshere';
<2> It's remarkable how frequently people join the channel and ask for "the best <x>". The best forum, the best captcha, validation script, bug tracker, etc.
<10> heh
<2> "It depends."
<10> Ok
<10> Easiest.
<4> You know, i've heard about ajax, but never looked into it. What exactly is it ?
<0> "Write it yourself."
<0> [Ex0r]: It's a stupid buzzword.
<2> [Ex0r]: Just a way to do RPC from JS.
<2> Been around for years.



<0> [Ex0r]: It means "broken JavaScript which breaks URLs".
<9> just now getting popular
<0> Oh, and let's not forget the back button.
<4> Ah, I thought it was like a universal site skinning tool, the way people were talking about it.
<9> ooh i love breaking that one
<10> My problem is that theres so many tricks to it that its near impossible to figure it all out
<9> nonickforme: thats how it works
<10> Ive done several things that do basic ajax, auto complete and what not, but all the browser quicks and crap
<2> I don't try. I just figure out the tricks that make my life easier.
<4> me too
<4> if I can't get something working the way I know how, I look it up to do it another way or ask somebody for help.
<10> basicly what I'm after is a project that works good that I can examine and learn from
<4> That's really the only way i've progressed my skills from basic php, is by others suggesting another way to do the stuff I was trying to do.
<0> Is it good practice to call PHP functions with correct grammar, since they're (stupidly) case-insensitive? I've traditionally written and called my own functions like MD5(), MySQL_connect(), etc., but used PHP's/others' like md5() and mysql_connect().
<9> nonickforme: do you know AJAX?
<10> Eh, I know the basic concepts.
<0> (If I weren't a perfectionist, I wouldn't have ~90% of all the problems I encounter.)
<11> php functions are case insentive? holy sh*t :|
<11> i didn't know that
<2> KimmoA: Since PHP functions tend to follow a C-style underscore-as-space style, they also tend to be lowercased.
<10> I can get data from server to client and back
<9> nonickforme: do you konw PHP?
<10> itrebal, of course
<10> wouldnt be after somthing so complex other wise
<9> nonickforme: then mash the two together :) just play with some things, play with it
<0> mattmcc: I can accept that, but I can't make myself naming my own functions in all lowercase. :/
<10> my weak point is javascript, but its not that bad
<0> (Unless, of course, they are actually supposed to be like that.)
<2> KimmoA: Well, that's up to you.
<4> I get to learn basic javascript in my html programming cl*** this semester
<4> hoping to learn css, too
<2> It's entirely a matter of style.
<10> my problem is making it work and not having a mashed mess after words :P
<2> The two main styles for naming functions are foo_bar() and fooBar() (camel case)
<0> Urgh. Camel case is horrible.
<2> You tend to see camel case more often in OO interfaces, like the DOM, or the Java SDK.
<10> KimmoA, you can make it case sensative...
<9> nonickforme: while your still learning, dont woory about a mashed mess afterwords, just rewrite it later on
<4> I always use lower case.
<2> Combining C-style with capitalization is pretty rare, in my experience.
<10> heh itrebal, thats what ive done so far
<0> iPod_connect() = Yay! Ipod_connect() = URGH! ipod_connect() = hrm...
<9> eh? msn is shuffling me around to differnet servers
<0> Make the second one IpodConnect().
<4> i just recently that mysql is case sensitive. A query for WHERE search=blah doesn't bring up results where search is Blah
<10> i tend to use all lower case and use _ in my function names, and camel case variables
<0> itrebal: How do you know?
<9> KimmoA: its telling me
<4> man i've got a very bad virus
<2> nonickforme: A number of python libraries use that approach. Camel cased cl***names, but underscored method names.
<9> MSN - Logging in: Transferring to other server
<9> MSN - Logging in: Connected to server, waiting for reply
<9> MSN - Successfully transferred to different server
<4> MSN keeps disconnecting me so don't feel bad.
<10> huh, never used python myself
<0> KimmoA style: fix_****(), do_funky_stuff(), my_own_MD5_alternative()...
<9> [Ex0r]: heh, i dont care.. i havn't used it in so long
<4> Keep getting a MSN connection failed - You are no longer signed in. on trillian
<9> oooh gawd, i have a ****load of work tomorrow... i have to empty my entire room out
<10> Ok, I'll rephrase my question, are there any php based ajax projects you guys know of that dont ****?
<0> itrebal: Why?
<0> nonickforme: Hold on...
<0> http://pixoh.com/
<0> That's the only one I know of...
<9> KimmoA: over the next two weeks we're all leaving for M***achusets, and while were gone all the rooms are getting painted and the ceilings re-done
<0> :O
<4> hmm, anyone here notice that on comedy central's cobert report, he pronounces it like repor ?
<12> I return! Hurrah!
<9> [Ex0r]: i guess that kidna makes sense, he pronounces his name 'co-bare'
<10> heh thats neat KimmoA
<4> makes it sound very funny though
<0> nonickforme: It's perfect to link to when you require people to upload certain-sized avatars/photos.
<4> hehe, that's extensive programming :)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
nuller efnet
#css
#debian
#fedora
error while getting interface flags + vmware
Ubuntu mini-install
freenode dpkg-bot
biscuitian
#perl



Home  |  disclaimer  |  contact  |  submit quotes