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



Comments:

<0> just use single quotes
<0> **** i'm tired today
<1> me too
<1> i took the day off from school
<2> Has anyone here used Zend Platform? (not the IDE)
<3> yep
<4> ha ha NO ZEND FOR YOU
<5> woot. 7000 articles.
<2> raizor you've used the platform?
<1> he's gone
<2> ahh damn
<6> everytime I use fsockopen to find data, it takes over a minute for it to display something..has anyone else experienced this problem?
<4> its' called buffering
<4> :)



<4> and slow internet connections
<6> :p
<7> younglinkie, try to use microtime to see how long the script itself is taking
<7> vs your internet speed
<5> http://www.dilbert.com/
<5> bwahaha
<1> dilbert? i have all the books :)
<5> HMM
<8> sup Seamus
<5> so.
<5> i have to create this list of keywords
<5> but i can't modify the database
<8> is this before or after you walk on the water?
<9> anyone know a windows app that'll record and compress video from a VFW device?
<9> (for free)
<1> un-irreg1rdless: huh?
<1> groogs: no
<4> vfw?
<5> veterfans of foreign wars device.
<5> dumb***
<5> -f
<1> ich habe windows nicht
<4> Ah yes.
<4> veterfans!
<4> eek
<4> hes Stalking me!
<8> boooooo
<1> poop
<5> what.
<5> the.
<5> ****.
<5> the guy i was hired to replace was rehired.
<5> HI, IF YOU HAVE TO FIRE SOMEONE ONCE, YOU SHOULDN'T HAVE THE OPTION OF FIRING HIM AGAIN.
<10> heh
<10> nice
<5> and the guy he worked under, the guy that hired me, is a tool
<5> he doesn't do anything
<5> so we make fun of him
<10> get me hired in there
<5> "so, did you see they hired alex _again_?" "what!? who!?" "eugene hired him" "what? what's he going to do? go outside and hold eugene's cigarette?"
<10> like I said
<10> get me hired in there
<4> sounds like a nice job
<4> I can sit around and loaf about in.
<5> i'm gonna go buy some food or something
<11> that is the worlds most staticy coat
<11> i have a little drug store in my desk drawer.
<12> hi
<13> ih
<12> I don't know anything about php realy.. I was just following some tutorials and I have a very basic concept of programming languages
<14> im working on some code now that involves users, and i was wondering if it would be okay on registration to generate a constant session id based off the time, rand(), etc
<14> and store that in the database
<12> now.. I was using the fopen function
<15> rmpants: you could
<14> is that a decent design? it seems like it'd be the easiest way
<1> microtime() is always fun for that
<11> rmpants: why not use session_id?



<12> and I was echoing fget from that file until end of file..
<1> that's probably easier to just use the session_id like he said
<14> yeah
<14> and then i can restore off that session id in the database?
<12> but my txt file has lines breaks and the text displayed has no line breaks
<12> how could I make it display a text file with its line breaks
<8> if you'll view the source, you'll see that there are indeed line breaks
<11> cusco: if you're print it as html, you'll have to use nl2br()
<1> "rmpants and then i can restore off that session id in the database?" why do you want to...?
<14> fedt: i figured its the easiest way to authenticate users, not restore session data but verify its them based off that session id, if they don't have a session id that matches the db, print login\register, etc
<1> no...
<8> store whether they're logged in as a session variable.
<14> Robdgreat: so someone could go and change loggedin=1 in the session data?
<1> if (!isset($_SESSION['login_name'])) { header("Location: login.php"); }
<12> un-irregardless: thanks!
<14> ah
<14> but should i store the encrypted p***word over $_SESSION too?
<14> and just reauth them everytime?
<1> don't store the p***word...it's stupid
<8> there's no reason ... right
<8> yeah
<8> $_SESSION['loggedin']=1;
<1> as long as there IS a session...you'll stay "logged - in"
<8> when they log in
<14> hm
<8> is what I was saying, but if you just store the name, as long as there's a name, then that means they're logged in
<11> it's freezing outside
<8> let php handle the work, rather than re-inventing the wheel
<14> yeah, but whats from stopping someone from changing that $_SESSION data to a different username?
<14> or logged in value
<1> because nothing will set the username until you do
<8> a user can't change session data
<14> i have to store session_id() and match against the db to know what user they are, etc?
<8> no
<14> ah
<8> you check the session user_name value to know who they are
<11> why not store the user id in the session?
<8> we just established that
<14> yeah
<1> if ($_POST['p***word'] == $dbrow['p***word']) { $_SESSION['username'] = $_POST['username']; }
<14> then on each page just check for $_SESSION['username'] or redirect to login?
<8> yep
<1> sure
<14> makes sense, i just always thought that route was insecure
<8> why?
<11> if it's for a high-security project, you shouldn't be using a shared server anyways
<11> heh
<14> its a dedicated box
<14> Robdgreat: for somereason i thought people can change session data via their browser
<11> then how would anyone change it?
<11> rmpants: those are cookies
<11> not sessions
<14> yeah hm
<11> session data is stored in a file on the server (in /tmp generally).. the session id is stored in a cookie on the client
<14> alright, makes sense
<14> yeah im aware of where its stored and all, was just trying to figure out how to implement authentication with it
<1> on MY game it has a couple of fool-proof things i've added in, but for most usage no one will be cheating on your sessions
<1> it will on it's own, don't worry
<14> yeah
<8> well if you know where it's stored, then you're aware that a user can't magically modify session values
<14> Robdgreat: i wasn't aware of that, for some reason 'loggedin' = 1; just seemed like an ugly hack to me
<11> all they can do is randomly guess somebody elses id
<11> and even then, it may not work
<11> for better security, store their ip address or something as well
<11> so nobody can brute force it, or something
<14> werd
<13> Anyone have thoughts on how to display part of a larger image file based on coordinates?
<1> i know php can...i don't remember the command
<1> @image
<1> :(
<16> Listing of all image functions:
<16> gd_info, getimagesize, image_type_to_extension, image_type_to_mime_type, image2wbmp, imagealphablending, imageantialias, imagearc, imagechar, imagecharup, imagecolorallocate, imagecolorallocatealpha, imagecolorat, imagecolorclosest, imagecolorclosestalpha, imagecolorclosesthwb, imagecolordeallocate, imagecolorexact, imagecolorexactalpha, imagecolormatch, imagecolorresolve, imagecolorresolvealpha, imagecolorset,
<16> imagecolorsforindex, imagecolorstotal, imagecolortransparent, imageconvolution, imagecopy, imagecopymerge, imagecopymergegray, imagecopyresampled, imagecopyresized, imagecreate, imagecreatefromgd2, imagecreatefromgd2part, imagecreatefromgd, imagecreatefromgif, imagecreatefromjpeg, imagecreatefrompng, imagecreatefromstring, imagecreatefromwbmp, imagecreatefromxbm, imagecreatefromxpm, imagecreatetruecolor, imagedashedline,
<16> imagedestroy, imageellipse, imagefill, imagefilledarc, imagefilledellipse, imagefilledpolygon, imagefilledrectangle, imagefilltoborder, imagefilter, imagefontheight, imagefontwidth, imageftbbox, imagefttext, imagegammacorrect, imagegd2, imagegd, imagegif, imageinterlace, imageistruecolor, imagejpeg, imagelayereffect, imageline, imageloadfont, imagepalettecopy, imagepng, imagepolygon, imagepsbbox, imagepscopyfont,


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#kl
#linux
zolfresh
linux read *.gho
#kl
6-7 jungle, wink, slap
#kl
#india
nusrat fateh ali khan sayya
#chat-world



Home  |  disclaimer  |  contact  |  submit quotes