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: 1822.41 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-08-09
Pages: < Prev
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Next >
[01:54]<rrvrnjrj>I wondering if gmail will reject the email if I zip the text file first, before I send it
[01:54]<rrvrnjrj>Just a min
[01:54]<cxrlrnv>it's just text inside zip
[01:55]<yvzn2rf>!tell Chapaev about u
[01:55]<cxrlrnv>so i don't think it will reject
[01:55]<cxrlrnv>itrebal: what do you mean?
[01:55]<yvzn2rf>!tell Chapaev about aolbonics
[01:56]<cxrlrnv>ok =)
[01:56]<jcrrcd>i hava a two array, first > [0] => x, [1] => y .. second > [0]=>a,[1]=>b.. how can i make [x]=>a,[y]=>b ?
[01:56]<rrvrnjrj>It's sent
[01:58]<cxrlrnv>thank you very much!
[01:58]<tml>oCRaCy: php.net/array-combine
[01:58]<jcrrcd>tnx TML
[01:58]<rrvrnjrj>No problem
[01:59]<jcrrcd>i will look
[02:00]<jcrrcd>TML again thanks i was finding this
[02:02]<xygvswgg>anyone wanna tell me why echo $_SERVER['HTTP_USER_AGENT']; doesn't say Internet Explorer when i open it in IE?
[02:05]<rrvrnjrj>Who knows why they use "Mozilla/4.0..." still, it should have something like MSIE 6.0; in it which you should be looking for if you want to know if they're using IE
[02:06]<zgmz19s_>didn't microsoft license that engine?
[02:06]<svr>Hi there?
[02:06]<xygvswgg>hi
[02:07]<svr>anyone here already using ZendFramework?
[02:07]<xygvswgg>thanks Antaeogo
[02:07]<drvvdaa>Antaeogo: Very old web history.
[02:07]<svr> have problems with the rewrite engine /rewrite rule...
[02:07]<svr>it only works if I have the system in the root directory.... not in http://localhost/somedir/ZendTest/index.php
[02:08]<xygvswgg>Antaeogo, MSIE 6.0 means IE6 right? so if i just checked for MSIE it would find any version?
[02:08]<rrvrnjrj>I would imagine so
[02:08]<drvvdaa>IE UA strings do say MSIE <x>, of course.
[02:08]<drvvdaa>The 'Mozilla/4.0' thing is just a piece of history. Doesn't need to be there, but I'd be surprised if it ever gets dropped.
[02:09]<xygvswgg>right, that confused me :)
[02:09]<rrvrnjrj>Yeah, no reason for them to go screwing around will user_agent checks at this point.
[02:10]<rrvrnjrj>with*
[02:13]<fyr>someone care to explain what pack() does. it says it makes the arguements into a binary string according to a format. is this like serialize? or is it more of a compression function? any references to help clarify what it does and how it does it would be appreciated.
[02:14]<znadafn>is there an example following that?
[02:17]<mzgmzya>is there a function to output html as xhtml? :D
[02:17]<snzryjf>hello
[02:17]<fyr>lo
[02:18]<snzryjf>is there anything like pg_quote?
[02:18]<snzryjf>(SQL injection prevention)
[02:20]<fyr>I don't work with postgre but have you looked at the pg_escape_* or the prepare and execute..
[02:20]<drvvdaa>mandric: Um, why? HTML is perfectly fine.
[02:20]<mzgmzya>mattmcc: i need to use xml now
[02:20]<cxzogx>what exactly is xhtml ?
[02:21]<cxzogx>html using xml ?
[02:21]<drvvdaa>IE can't even parse XHTML as XML.
[02:21]<mzgmzya>mattmcc: i need to include my html in xml as a feed
[02:21]<snzryjf>?postgres
[02:21]<drvvdaa>My suggestion would be to leave it as HTML and contain it within a CDATA block.
[02:22]<snzryjf>i think i got what i want: pg_escape_string
[02:22]<snzryjf>thanks
[02:22]<mzgmzya>mattmcc: ok, i can try that
[02:22]<eguz>exit
[02:22]<cxzogx>does is_numeric() check for isset() too ?
[02:23]<cxzogx>does it return false if the number is !isset() ?
[02:24]<cxzogx>well is it safe to is_nuermic($_POST['foo']) without having an isset($_POST['foo']) ?
[02:24]<cxzogx>hmm
[02:24]<svnvj>ChrOnX: um, typically no
[02:24]<cxzogx>meh
[02:24]<drvvdaa>The only functions that deal with variables, but don't raise notices for variables being missing are isset and empty.
[02:25]<svnvj>you can wrap it with a if($_POST) {...} maybe, somewhat unsafe, but typically works
[02:25]<cxzogx>unsafe won't work
[02:25]<cxzogx>gotta be safe as possible
[02:25]<svnvj>ChrOnX: then don't take shortcuts ;)
[02:26]<cxzogx>didn't realize i was making any
[02:26]<cxzogx>unless not checking isset() is shortcut.. which it could be
[02:26]<cxzogx>i'll be sure to check isset() now :)
[02:29]<svnvj>on admin forms, where you can typically be sure the user is not being malicious, i usually just wrap my Inserts/updates with if($_POST)
[02:29]<cxzogx>if($_POST) does what ?
[02:29]<cxzogx>checks for any post vars ?
[02:29]<cxzogx>more specifically checks to see if $_POST isn't empty ?
[02:29]<svnvj>ChrOnX: returns false if empty
[02:30]<cxzogx>i am actually working on an admin form atm
[02:30]<svnvj>ChrOnX: basically i'm saying "if the user sent us something, do something", without necessarily specifying much else
[02:31]<svnvj>ugh, finally
[02:31]<cxzogx>haha
[02:31]<cxzogx>you know
[02:31]<cxzogx>if you actually own that nick you can kick it off
[02:32]<vnxsvnv>ChrOnX: too much work ;)
[02:32]<cxzogx>yep
[02:32]<znadafn>can someone check this out for me
[02:32]<znadafn>http://www.phpriot.com/3551
[02:32]<znadafn>$date is empty apparently
[02:32]<vnxsvnv>i'm fine with no-one knowing who i am for 5 minutes
[02:33]<zzzzdwjd2zv>does anyone here use google analytics?
[02:33]<vnxsvnv>obviously not blues clues
[02:34]<vnxsvnv>angrywombat: i've got an account, havn't used it at all yet
[02:35]<cxzogx>can input be malicious if its numeric?
[02:35]<cxzogx>and the range is checked
[02:35]<zjznz_lzmzavjz>can you do strstr("something_1234","_"+1) i need everthing after the "_"
[02:35]<zzzzdwjd2zv>tehstev: well if you go to manage accounts there's this form.. two text boxes on either side with add and remove buttons in between.. so you can move values from one box to the other.. anyone have any idea what the hell that is called? i know this isn't php but just wondering
[02:35]<drvvdaa>ChrOnX: I suppose that depends on the context.
[02:36]<vnxsvnv>angrywombat: combobox? i think its an old "control" from windows forms
[02:36]<cxzogx>roger_padactor i think you'd have to do strstr("csomthing_123",find("somthing_123","_")+1); or how ever you use find
[02:36]<cxzogx>=X not sure about all the string manipulating functions in php
[02:37]<cxzogx>but i think you get the idea
[02:37]<zzzzdwjd2zv>tehstev: yea.. I'm lookin for some javascript to do that.. just spent an hour working on a script in php and my boss suddenly wants it like google analytics. -_-
[02:38]<vnxsvnv>angrywombat: yah, they're very intuitive for many-to-many fields, possibly equivalent to checkboxes...
[02:39]<vnxsvnv>angrywombat: can you get a screenshot just so i know we're on the same page?







