IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-25
[20:59]<pjffyvr>Are you talking an https session between the user's browser and your server?
[20:59]<ajxgmjn>can anyone help me out pls
[20:59]<jdddd>!+g1
[20:59]<lxl-2jv>Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question
[20:59]<swydzz>ok, I get it
[20:59]<pjffyvr>Or your host talking to another host using some arbitrary data exchange protocol that happens to sit on top of SSL?
[21:00]<vgpxjg>Anyone's spare seconds on my problem would really mean the world to me.
[21:01]<||aw>johndoe: unless it's in cdata, <b> is an xml tag
[21:01]<||aw>and therefore another child
[21:01]<ajxgmjn>||cw: can i pm u to help out?
[21:02]<||aw>i don't see why
[21:02]<advx|sfnnl>swimrr, also ssl requires a cert, which depending on your needs, cost $$
[21:02]<swydzz>aaahhhh
[21:02]<ajxgmjn>the result is now "abcde" .. that's all
[21:02]<advx|sfnnl>you can make your own, but you wouldn't be a "trusted ca"
[21:03]<ajxgmjn>||cw: any clue?
[21:03]<jdddd>cyth|sleep: Who say we "trust" verisgn
[21:03]<jdddd>The only difference in certs is a nag message.
[21:03]<advx|sfnnl>yes
[21:03]<advx|sfnnl>that's true
[21:03]<||aw>johndoe: is it like <tag>abcd <b>ghkj</b></tag> ?
[21:03]<advx|sfnnl>but if I was doing business, that nag message woulud have to go
[21:04]<advx|sfnnl>if i was using it for a public website, I'd rather not have that nag message
[21:04]<advx|sfnnl>for administration, i could care less about the nag message
[21:04]<ajxgmjn>||cw: yes
[21:04]<jdddd>So, you are paying to remove the shareware nag message =)
[21:04]<vgpxjg> http://hashphp.org/pastebin?pid=7736 - anyone?
[21:04]<advx|sfnnl>basically, that's the nature of things
[21:05]<||aw>johndoe: then your xml file is malformed. how it the parser supposed to knwo that <b> is html and not another child tag?
[21:05]<||aw>johndoe: one way is to make it <tag>abcd <b>ghkj</b></tag>
[21:05]<advx|sfnnl>I mean that nag message, adds a whole nother level of security, if we got used to clicking YES on those, we would be setting ourselves up for a man in the middle attack
[21:06]<||aw>johndoe: or use CDATA (you'll have to look up the specifics on that though
[21:07]<||aw>cyth|sleep: yup, just like when MS's got spoofed for activeX
[21:07]<suzpmun>hi
[21:07]<ajxgmjn>||cw: CDATA in XML? different format?
[21:07]<advx|sfnnl>i mean they got script kiddie tools now that can do that
[21:08]<advx|sfnnl>afk
[21:08]<zvajggnz>if I store an array in a file with thousands (up to 10,000) records, and index it once per page view... how bad do you think that will be for my server?
[21:09]<zvajggnz>er acces it
[21:09]<rjr>hi. i'm making a PHP script that reads two sets of information from a line, stores those two as seperate variables, does some work with them, then moves to the next line. i'm aware i can use explode(" ", $file);, but, I have never used fopen. After I open a file with $handle = fopen("/home/rasmus/file.txt", "r");, how do I explode it and chose which lines, etc?
[21:10]<ugmnrm_znus>use fgets
[21:11]<pjffyvr>$fp = fopen($filename, 'r'); while ($line = fgets($fp)) { list($infoA, $infoB) = explode(' ', $line); do_something_with($infoA, $infoB); }
[21:11]<ugmnrm_znus>http://us2.php.net/manual/en/function.fgets.php <--Shows an example of how to loop through a file line by line
[21:12]<rjr>Pollita, $line is the line i am on?
[21:12]<pjffyvr>Yes
[21:12]<rjr>ok
[21:12]<rjr>one sec
[21:13]<rjr>Thank you!!
[21:13]<rjr>=D
[21:13]<rjr>im coding some leet 0day and i needed that
[21:16]<rjr>Pollita, will that go to the next line on every loop?
[21:16]<pjffyvr>yes
[21:17]<rjr>alright thanks a lot
[21:18]<afnwc_>Hey
[21:19]<afnwc_>Is it possible, when using the strip_tag function to remove attributes(s?) from within a tag. For example, Say you want to Allow the <img> tag, but you don't want the alt="" part of the tag?
[21:21]<2zyrgmrg>AlexC_ I'm curious as to why you don't want the alt attribute in your IMG tag? Omitting the alt attribute makes the tag invalid according to standards :)
[21:22]<ajxgmjn>||cw: oh yes!! CDATA is working
[21:22]<gjgvyvfn>wow that means my html has been invalid for years
[21:22]<ajxgmjn>||cw: thanks alot
[21:22]<drfcus>could someone give me a hint as to why when I try to upload a file, I get "warning move_uploaded_file("foo...") failed to open stream, no such file or directory in "foo...") over at http://danking.co.uk/tmp/index.php even though the $_FILE superglobal says there wasn't an error?
[21:22]<jdddd>brianMan He's probably hotlinking/harvesting images from another site and just want's the url.
[21:22]<||aw>nontitle: you are not alone :D
[21:22]<afnwc_>brianMan: Oh no, I DO want the alt attirubte in my image tags, I was simple using it as an example - I couldn't think of any others!
[21:22]<||aw>johndoe: n/p
[21:23]<ajxgmjn>||cw: so CDATA will only apply when I have "<tag>" content?
[21:23]<||aw>Alex_: the answer is no though, strip tag strips the whole tag. you would need a regex
[21:23]<afnwc_>Jymmm: no im not. I would just like to limit what attibutes people can use when using the 'source' part of my WYSIWYG editor
[21:24]<2zyrgmrg>AlexC_: Try looking at the comments for strip:tags
[21:24]<||aw>johndoe: CDATA should be used on anything involving free-form user input
[21:24]<2zyrgmrg>strip_tags even
[21:24]<2zyrgmrg>www.php.net/strip_tags
[21:24]<ajxgmjn>||cw: ok thanks
[21:24]<afnwc_>brianMan: ok, will do =)
[21:25]<jdddd>AlexC_: Don't take it personally. With the mentality of most on irc being 2yo, you are guilty until proven otherwise.
[21:26]<afnwc_>Jymmm: True, i've seen many people come into channels demanding anwsers, hell even one came into the MySQL channel demanding help on setting up his Halo game server!!!
[21:26]<gjgvyvfn>lol
[21:26]<jdddd>AlexC_ and thus why we now have this...
[21:26]<jdddd>!+g0
[21:26]<lxl-2jv>The purpose of ##php is to assist those that have exhausted their resources (manual, google, appropriate irc channels, etc) in developing their OWN php code. We are not your personal slaves, don't treat us like it. Respect the channel guidelines, ignorance is no excuse. We are not babysitters, act mature. Ignoring the spirit of this notice will be cause for ban without warning or reason. Dont like it? leave. It's that simple.
[21:26]<n-xnrm>I was looking for some input on an image caching system.
[21:27]<vgpxjg>Okay, let's say I have the strings (0012415, 0123 and 1511). How do I make it so that it'll remove (no matter how many) zeros are in front of it?
[21:27]<afnwc_>Jymmm: I don't think that would of helped us, he just started flooidng the channel with the words 'enter' haha
[21:27]<gjgvyvfn>ummm... im guessing that wasnt supposed to happen
[21:27]<jdddd>AlexC_ Thus the last statment =)
[21:27]<pjffyvr>vefhon: ltrim()
[21:28]<vgpxjg>Thanks Pollita
[21:28]<afnwc_>Jymmm: woops, didn't see that bit. Btw, do you think it is pointless to Limit the attibutes users can enter for there tags in my source section of the WYSISWG editor?
[21:28]<jdddd>AlexC_ only the JS ones onclick, etc
[21:29]<tzzdzw>hi, do i have to use a frame show a php login box?
[21:29]<afnwc_>Jymmm: yeh true, seems like i'll have to learn reg ex more then and try to do it!
[21:29]<vgpxjg>Like this then? $clean_string = ltrim($string, "\x00");
[21:29]<jdddd>AlexC_ But, what you could do is just have src, alt, width,height and remove everything else
[21:29]<n-xnrm>As it stands what I'm going to do is this ... external image links get written to /image.php?img=original_url. image.php is going to check to see if the file exists in the cache, if so, serve it up, if not, give the user a redirect to the original. Every now and then I'll go through and d/l images to cache.
[21:29]<pjffyvr>vefhon: No, just '0', not "\x00"
[21:29]<vgpxjg>Oh okay
[21:29]<n-xnrm>s/written/re-written/
[21:30]<vgpxjg>I see
[21:30]<pjffyvr>"\x00" is a NULL byte which is not a zero character
[21:30]<vgpxjg>Oh, I get it.
[21:30]<afnwc_>Jymmm: that's what I was going to do, but strip_tags can't do that ... so like you say regex which wil be hard ( for me )







