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-05-11
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
Next >
[14:03]<czysl>cool
[14:03]<dzvnaxrud>and the ARE in quotes
[14:03]<aunzvd> &nsbp; del |
[14:04]<aunzvd>how is the &nsbp; code for | ?
[14:04]<dzvnaxrud>anyone?
[14:06]<dzvnaxrud>hello?
[14:07]<zjw>idan: use this '/\<input.*value=(?:"(.+)"|\'(.+)\'|(.+(?=\s+[a-z]+=|>))).*>/iU', other one had a slight bug in it :P
[14:07]<dzvnaxrud>hello
[14:08]<dzvnaxrud>can someone at least aknowledge my existance
[14:08]<zjw>no....
[14:08]<dzvnaxrud>why not
[14:08]<zjw>if everyon said hello to each other on joins and everyone replied channel would be full of it....
[14:09]<dzvnaxrud>right
[14:09]<zjw>you would get 461 people saying hello back.....
[14:09]<dzvnaxrud>right
[14:09]<aunzvd>it'll be pure love
[14:10]<dzvnaxrud>all that i am saying is can anone answer the question that i asked insted of ignoring it
[14:10]<dzvnaxrud>and it seem that there is only 2 people in this channel that are actually able to "speak"
[14:10]<zjw>mrtechguy: no one NEEDS to do anything...
[14:10]<djjsnd>preg_match /asdf/ will match mooasdfmoo right?
[14:10]<djjsnd>wtf aint this working
[14:10]<zjw>yes moosey
[14:11]<aunzvd>mrtechguy: /msg php-bot guidelines
[14:11]<aunzvd>:)
[14:11]<dzvnaxrud>i never said anyone needed to do anything
[14:11]<djjsnd>doh it is matching, i need !preg_match ehhe
[14:11]<}mzvzyx{>any eggdrop guru ?
[14:11]<djjsnd>getting tired
[14:11]<zjw>this is not #egghelp....
[14:13]<dzvnaxrud>you bite my head off for asking a php related question someone asks a question that isn't supposed to be allowed and you help them
[14:13]<aunzvd>moosey: google regex coach, it's a nice program to test regex.
[14:15]<djjsnd>naah, just tired and had a brain fart
[14:15]<dzvnaxrud>now i will ask one more time could someone please help me out with this script
[14:15]<dzvnaxrud>http://freenode.net/policy.shtml
[14:15]<dzvnaxrud>http://pastebin.ca/55083
[14:15]<dzvnaxrud>sorry wrong clipboard item
[14:16]<pzjr>hi, i have a form. i have a session started. i wish to have a possibility to be able to open an another form (in a small window) and do some mysql_query here. how can i reach the goal
[14:16]<zjw>mrtechguy: $process = rawurldecode($_GET['process']); then you can use the real symbols
[14:16]<aunzvd>mrtechguy: what are you trying to do here "$process == '%2B'"?
[14:16]<zjw>ah ignore me
[14:17]<zjw>mrtechguy: its not matching any of those if statement, did not see the error below.
[14:17]<2jgd>hi i get this problem when i run a file form the browser "Call to undefined function: mysql_connect()"
[14:17]<2jgd>what should i do
[14:17]<zjw>bony: compile php with mysql support.....
[14:17]<2jgd>and i couldn't find section for mysql in phpinfo page
[14:18]<dzvnaxrud>would POST send it as RAW data?
[14:18]<2jgd>i am using ubuntu dapper
[14:18]<zjw>mrtechguy: no only get does
[14:18]<aunzvd>mrtechguy: that == that you are doing doesn't work that way.
[14:18]<dzvnaxrud>ok
[14:18]<aunzvd>if you want to match against a pattern you should use regex or something like that.
[14:19]<zjw>cuerty: thats not a pattern he wants to check the var of the get..., its a maths symbol basicly.
[14:19]<dzvnaxrud>exactly
[14:20]<dzvnaxrud>and rawurldecode doesn't make it work either
[14:20]<zjw>mrtechguy if(strlen($_REQUEST['process']) echo ($_GET['number'] $_GET['multiply'];);
[14:20]<zjw>oops
[14:22]<dzvnaxrud>i have a new idea
[14:23]<vxdcj>yeah?
[14:24]<dzvnaxrud>now i have replaces the symbols with numbers so plus is 1 divide 2 etc
[14:24]<zjw>mrtechguy: not that you should really use eval for this but "if(strlen($_REQUEST['process'])) eval('echo '.$_REQUEST['number'].$_REQUEST['process'].$_REQUEST['multiply'].';');" would work.
[14:24]<jndv>I have an XML file with a lot of data (records). What would be fastest (best performance) - to read from the XML file on every refresh, or read the file just once, turn it into data objects, and then store these in a session (which is also just a text file) ?
[14:25]<dzvnaxrud>i like to actually understand the programs i write though
[14:25]<djjsnd>hrmph, is it me or does curl respond image/jpeg just because the file i called was ending in .jpg, it should be responding test
[14:25]<djjsnd>because i renamed a text file.jpg but its passing my content type check :/
[14:25]<djjsnd>test/text
[14:26]<dzvnaxrud>i fixed it i forgot to remove a comment closing tag i was using
[14:26]<dzvnaxrud>now my script works fine
[14:26]<dzvnaxrud>goodbye
[14:26]<zjw>lol
[14:27]<ewl7q7>:>
[14:28]<jndv>moosey: It's not really my field - but you might be able to determine the mime type some other way. Take a look at this example : http://www.koders.com/php/fid715848B975150AC4431936A047B6E7BC875EF201.aspx
[14:32]<djjsnd>$response_code = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
[14:32]<djjsnd>that equals image/jpeg when i call a http://moo.com/img.jpg
[14:32]<djjsnd>why is it responding image/jpeg when i call a text file lol
[14:33]<ow9w9792>moosey, do you understand how CURL determine what is your Content-Type ?
[14:33]<ow9w9792>and i guess its not 'determine' but, 'knows'
[14:33]<djjsnd>i sure the f hope it aint by extension, lol
[14:34]<djjsnd>gonna change my code to allow other things than .jpg.. see what it does
[14:34]<ow9w9792>moosey, dont 'Laugh' on your own stupidity :(
[14:34]<ow9w9792>moosey, that Content-Type is came from your moo.com
[14:34]<ow9w9792>aka, Apache/IIS/Whatever
[14:35]<djjsnd>how would that be my stupidity, that would be apache's stupidity
[14:35]<ow9w9792>then... blame apache.conf
[14:36]<ow9w9792>its also not apache :( its the conf
[14:36]<djjsnd>as-is is set so
[14:36]<ow9w9792>okay then... the World will be need FourCC binary Header Checker
[14:37]<ow9w9792>http://filext.com/detaillist.php?extdetail=JPG
[14:38]<ow9w9792>if you didnt want to get cheated with .extentions check the binary header (Identifing Character)
[14:39]<jndv>What happens when PHP deserializes a session? Is the text file parsed like an XML file? Or is deserializing a session faster than parsing an XML file?
[14:42]<jndv>moosey: You couldn't use the example I send you ?
[14:44]<ermmrgr>is there a phpdocumetor channel that anybody knows of?
[14:45]<jndv>zaydana: Dunno - why don't you ask here?
[14:45]<jndv>zaydana: Or at the support forum (http://phpdoc.org/)
[14:46]<ermmrgr>hmm... easier to ask here than there :-) I'll ask there I guess.
[14:46]<ermmrgr>Well... if anybody here does use phpDocumentor... any idea why it won't pick up "abstract" classes?
[14:49]<jndv>zaydana: Working fine here
[14:49]<ermmrgr>hmm, weird
[14:50]<ermmrgr>you know of an address for a pastebin I could use?
[14:50]<jndv>!pastebin







