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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-10
Pages: 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
Next >
[00:03]<[ew0z]>yeah, it definately doesn't work
[00:05]<jfyguxp>[Ex0r]- replace excess whitespace
[00:05]<jfyguxp>$str = preg_replace('/\s\s+/', ' ', $str);
[00:05]<ayzzsvnz>[itrebal]: nyah
[00:05]<[ew0z]>wow it's escaping them completely wrong
[00:05]<[ew0z]>\" instead of just \
[00:06]<[ew0z]>ONLY spaces need to be escaped, not characters etc
[00:06]<tml>[Ex0r]: show your source
[00:08]<[ew0z]>http://pastebin.ca/83478
[00:08]<[ew0z]>that one
[00:08]<[ew0z]>I commented out the system function and added echo $go; to see what the result was
[00:09]<[ew0z]>it's adding escape characters to everything except spaces
[00:09]<naxnnsn>Hi
[00:09]<naxnnsn>I just installed PHP
[00:10]<naxnnsn>And I can't get mysql to work
[00:10]<[ew0z]>The only thing in the shell that needs to be escaped are the \'s
[00:10]<[ew0z]>err, spaces* with \
[00:10]<naxnnsn>I also can't get gd to work either
[00:10]<`d0>Zend is bad, If I leave phpdoc in the interfaces, the functions which implement them wont recognize them
[00:11]<tml>[Ex0r]: move the system command outside the while loop, inside the while loop do "$cmd .= escapeshellarg($file);", then system("7z a $final.7z $cmd");
[00:11]<eyzau>[Ex0r]: more needs to be escaped than that
[00:12]<[ew0z]>zircu, no it doesn't. In my shell, I can archive all of the files using This\ Format\ Of\ The\ File.html
[00:13]<[ew0z]>TML, $final.7z also has to have the characters escaped
[00:13]<tml>[Ex0r]: Fine. You know how to do that. I wouldn't have thought you'd put spaces in the name of a file if you could choose otherwise.
[00:14]<[ew0z]>i'm just going to say screw it and do it all by hand
[00:15]<[ew0z]>all the time I took trying to get that script to do it, I could have done it by hand
[00:16]<tml>[Ex0r]: I was sort of wondering about that. I assumed that you had a good reason for trying to script it.
[00:16]<[ew0z]>because there are ALOT of files
[00:16]<[ew0z]>over 5,000
[00:17]<[ew0z]>wanted to do it automatically to make it easier
[00:17]<fzjfxyfn>just letting you know:
[00:17]<fzjfxyfn>http://uk2.php.net/foreach
[00:17]<fzjfxyfn>one of your mirrors is a bit borked
[00:18]<eyzau>*the
[00:19]<ayzzsvnz>http://uk2.php.net/ != php
[00:19]<ayzzsvnz>very messed up :P
[00:19]<fzjfxyfn>interesting
[00:19]<fzjfxyfn>I got pointed to there from php.net
[00:20]<eyzau>yeah it seems the mirror is a bit messed up
[00:20]<rddygap>lol
[00:20]<rddygap>someone hacked it? ;)
[00:20]<fzjfxyfn>unlikely
[00:20]<fzjfxyfn>probably a change of IP or something
[00:20]<rddygap>http://uk.php.net/ works tho
[00:20]<ayzzsvnz>looks more like dns
[00:20]<fzjfxyfn>indeed it does
[00:20]<wjlllrws>no... The mirros isn't actibe...
[00:21]<wjlllrws>*active
[00:21]<fzjfxyfn>but for me php.net automatically redirects to uk2.php.net
[00:21]<ajfmnz->uk2 is flagged, should get down soon.
[00:21]<wjlllrws>prophile: php.net/my.php
[00:21]<ayzzsvnz>interesting
[00:21]<rddygap>prophile crazy =/
[00:21]<fzjfxyfn>wonderful
[00:21]<tml>prophile: remove php.net cookies and it'll stop doing that.
[00:21]<tml>Wolfpaws: He can't get to my.php =)
[00:21]<rddygap>good radio music from sweden..; http://scb1.fantis.se:8000 although.. not swedish music ;)
[00:21]<fzjfxyfn>TML: actually I can it seems :)
[00:21]<wjlllrws>TML: huh? That's weird :(
[00:22]<`d0>is it ppossible to type hint this: $config = null ?
[00:22]<`d0>MyTypeHiny $config = null ?
[00:22]<ajfmnz->uk2 has been disabled 3 days ago
[00:22]<`d0>is that valid?
[00:23]<ayzzsvnz>if you manually type in a mirror on the URL, it usually doesnt try to redirect to a different mirror
[00:23]<ayzzsvnz>my experience anyways
[00:23]<wjlllrws>colder-: PRobably next rotation will be taken out (or something)
[00:23]<ajfmnz->Wolfpaws, autodisabled != removed, you need human interraction for that, which should happen soon ;)
[00:24]<wjlllrws>colder-: or lots of explosives :)
[00:24]<ajfmnz->meh :)
[00:24]<wjlllrws>(but that should fit under human interaction) :)
[00:25]<tml>prophile: Oh, good. :)
[00:25]<ajfmn>I need to check with php whether or not a specific x509 is revoked or not. I have an url to CRL, but i can't find any openssl functions that would do that for me
[00:25]<tml>Wolfpaws: I've had it where my cookie sent me to a broken mirror and I couldn't get to my.php
[00:26]<wjlllrws>TML: Odd... I thought that my./php doesn't redirect you... It didn't redirected me, when I went to the page
[00:27]<eyzau>perhpaps you typed my.php.net/my.php, i think the redirection happens when php.net is entered
[00:28]<wjlllrws>lesse
[00:28]<eyzau>like if you go to php.net/my it goes to mirror.php.net/my.php
[00:29]<wjlllrws>no, no, no... php.net/my.php, not php.net/my
[00:30]<eyzau>i'm just looking at ways that force redirects to mirrors
[00:31]<tml>Wolfpaws: They may have fixed that so that it doesn't happen anymore.
[00:32]<wjlllrws>TML: I see... php.net/my redirects you, but php.net/my.php doesn't
[00:32]<eyzau>thats what i'm thinking, the redirect logic is sort of confusing to follow sometimes
[00:33]<wjlllrws>I think that this behaviour may have something to do with how the seearch is built
[00:33]<suv9w9>is it acceptable to pass action="" for forms that need to post to the same file?
[00:33]<eyzau>Wolfpaws: there could have been an entry in the db that looks up my.php and would cause a redirect, anyway...
[00:34]<suv9w9>is acceptable to skip any file path if you mean the same file? for example <form action="" .. > or <a href="?hello=world"> ..
[00:34]<suv9w9>sorry for dup
[00:34]<eyzau>suv4x4: browsers these days seems to behave that way, but it better if you would provide an action
[00:34]<wjlllrws>zircu: hence the "search behaviour" :)
[00:34]<suv9w9>zircu, reason is, because of mod_rewrite and so on, fetching the actual URL becomes... well non-trivial
[00:35]<eyzau>Wolfpaws: my wireless is acting up it is going from 0 to 5 bars i'm getting delays all over the place right now
[00:36]<wjlllrws>zircu: One of the main reasons, why I hate WIFI :)
[00:39]<eyzau>suv4x4: it is a call you need to make wether to trust the client to self-post to the original url, and if you want to make sure you are using valid html, i'm not sure if it is legal in html
[00:39]<tml>zircu: Not sure if what is legal in HTML?
[00:40]<eyzau>TML: a <form> is legal without an action
[00:41]<tjufgg>action attribute is required for form tag in 4.01
[00:41]<suv9w9>Touqen, no I wasn't asking if it's required or not, but if I can set it empty to mean the current file
[00:42]<eyzau>what about if it is empty?
[00:42]<suv9w9>Touqen, so I specify it actually: action=""
[00:43]<tml>Technically, action="" is valid, but you shouldn't rely on the behaviour of browsers to do the right thing







