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-05-31
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
49
Next >
[00:00]<cznff9q>TML: A positive integer.
[00:01]<zdzxzzmfdgzx>Crell42: There may be some cool stuff in the streams stuff where you can re-tie one stream to another and all that to do what you want... Not sure it's going to beat echo for speed, though. Are you really trying to solve a speed problem, or is this just playing with benchmarks.
[00:01]<cznff9q>So it's writing something. To where, I don't know...
[00:01]<cznff9q>richardlynch: Eh, neither. Just trying something different. :-)
[00:01]<zdzxzzmfdgzx>Crell42: Is this CGI/CLI/Module or shell or...
[00:01]<cznff9q>Web app.
[00:02]<jdddd>Davey: Yes, it's mine (just finished it yesterday), The hole is for a clock to fit into.
[00:02]<cznff9q>Performance-wise, the SQL I'm doing is going to kill it long before this does.
[00:02]<drvnd>Jymmm, very cool :D
[00:02]<jdddd>Davey: thank you
[00:02]<zdzxzzmfdgzx>Crell42: So you're mostly just having fun, eh? :-)
[00:03]<jdddd>Davey the photo doesn't do it justice though. I'll have to setup lighting and take better pics.
[00:03]<drvnd>Jymmm, I'm sure
[00:04]<cznff9q>richardlynch: On company time, to bot!
[00:04]<cznff9q>boot!
[00:04]<drvnd>anyhow, off home to see my MbP... uhm, I mean, wife. :)
[00:04]<jdddd>lol
[00:04]<rrdrdr>weenie
[00:07]<rddsdjcn>i'm running a session in which the final stage is an email sent to the requestor, and, after the email is sent, i take them to a success page, which times out after 15 seconds and returns them to the main menu. at the end of that page, i call session_write_close(), sleep for a tic, then call session_unset() and session_destroy(). The problem is that the session file is still there with all of the data in it
[00:08]<rddsdjcn>is there a way to actually remove the file from the server's drive ?
[00:08]<zdzxzzmfdgzx>gymsmoke: I believe the User Contributed Notes at http://php.net/session_destroy will have that.
[00:09]<gjvrvr_fgfgjgr>hi...
[00:10]<gjvrvr_fgfgjgr>how can i receive from php to other value emtpy of checkbox??
[00:11]<zdzxzzmfdgzx>novata_peleona: HTTP only transmits the boxes that are checked. Your application logic has to "know" what boxes were available, somehow.
[00:11]<njdycjs>add a hidden field with the same name and empty value to the form, that way the browser will still send the name, with value empty
[00:12]<gjvrvr_fgfgjgr>richardlynch, uffffff...
[00:12]<mrvv>hey guys
[00:12]<gjvrvr_fgfgjgr>richardlynch, can you send a zero value??
[00:12]<cznff9q>novata_peleona: Yes you can.
[00:13]<cznff9q>A common trick I use is to have all checkboxes be preceeded by a hidden value of the same name, value 0.
[00:13]<gjvrvr_fgfgjgr>echo "<td><input type='checkbox' name='permiso[]' ".$cheked." value='".$id_galeria."-".$user->id."'></td>";
[00:13]<cznff9q><input type="hidden" name="foo" value="0" /><input type="checkbox" name="foo" value="1" /> Check this
[00:13]<cznff9q>That way $_POST['foo'] will always be 0 or 1.
[00:14]<slymnzz>richardlynch, any recollection of what the \n setting was called? i don't see anything that looks promising and spent quite a while trying to google it up.
[00:14]<drvvdaa>That trick will work in PHP, but beware of trying it in other languages which may not consider request variable order to be important.
[00:14]<zdzxzzmfdgzx>novata_peleona,Crell42: The only problem with that is that you are relying on the ORDER of the HTML/HTTP POST data to be preserved, and there's no guarantee in the spec that it will be...
[00:15]<cznff9q>True, mattmcc. I'm not familiar with the way other languages handle array HTTP data or ordered values.
[00:15]<drvvdaa>Although usually such languages will give you both values, not just one, so you can still check for the presence of a 1 value.
[00:15]<cznff9q>richardlynch: Technically true, but in PHP it is in practice. I picked the idea up from Drupal, and it's never broken.
[00:15]<zdzxzzmfdgzx>spiderr: I'm not even sure it's in httpd.conf instead of /etc/logger.conf or whatever... Sorry. I just ignored it and went on.
[00:16]<slymnzz>k, thanks.
[00:16]<gjvrvr_fgfgjgr>Crell42, but with a array 'permiso[]' ho
[00:16]<zdzxzzmfdgzx>Crell42: I'm suggesting that the BROWSER is allowed to re-arrange the POST data any way it likes, long before it gets to PHP. If IE, changes their order tomorrow, you're in trouble. And they can, if they want.
[00:16]<gjvrvr_fgfgjgr>Crell42, but with the array 'permiso[]' that would works???
[00:16]<cznff9q>novata_peleona: I believe so. Let me check the code I use for generating checkbox arrays.
[00:17]<gjvrvr_fgfgjgr>Crell42, oks
[00:17]<zdzxzzmfdgzx>novata_peleona: it would work if you use permis[0] and permiso[0] for the names.
[00:17]<zdzxzzmfdgzx>s/permis/permiso/
[00:17]<gjvrvr_fgfgjgr>???
[00:17]<cznff9q>novata_peleona: Let me pastebin, one sec.
[00:18]<zdzxzzmfdgzx>novata_peleona: Use a hidden with NAME="permiso[0]" and then your checkbox with NAME="permiso[0]"
[00:18]<cznff9q>http://pastebin.com/747797
[00:19]<cznff9q>What I get back then is an array either 0 values (none checked) or just the values from the checked checkboxes.
[00:19]<gjvrvr_fgfgjgr>Crell42, , richardlynch a lot of thx us
[00:19]<cznff9q>Although the empty value could be handled by our input wrappers. I don't recall... :-)
[00:19]<gjvrvr_fgfgjgr>okissssss
[00:19]<gjvrvr_fgfgjgr>:)
[00:22]<vxyzmly2z>is there a way to test if a string contains no characters
[00:23]<vxyzmly2z>excluding spaces
[00:23]<ryac>Empty()
[00:23]<fzywjg>empty() ist evil!
[00:23]<fzywjg>*is
[00:23]<zdzxzzmfdgzx>thirdLibr: if (str_replace(" ", "", $string) === "") echo "Only spaces";
[00:24]<fzywjg>Rick: Do you think "0" is empty?
[00:24]<vxyzmly2z>cool
[00:24]<vxyzmly2z>what's wrong with empty()?
[00:24]<fzywjg>Read the manual and have a look what is seen as empty.
[00:24]<fzywjg>That just sucks.
[00:24]<zdzxzzmfdgzx>The biggest thing wrong with empty() is that its definition changed from version to version...
[00:25]<cllyswnyzm>can someone explain to me why this: http://papernapkin.org/pastebin/app/view/229 produces this: http://demos.medlinis.com/ when Demo 05, Dragons Fury, and Radical Site are all directories?
[00:25]<rrdrdr>what's the function to break apart a URL into its sections
[00:25]<lynzr>enygma: thats hard for you
[00:25]<fzywjg>endra: http://us3.php.net/url
[00:25]<zdzxzzmfdgzx>enygma: parse_url
[00:25]<fzywjg>The other one with "e"-
[00:25]<rrdrdr>that's it
[00:25]<rrdrdr>danke
[00:25]<fzywjg>enygma: Have a look at the manual next time!
[00:26]<zdzxzzmfdgzx>CppIsWeird: http://papernapkin.org/pastebin/app/view/230
[00:27]<zdzxzzmfdgzx>CppIsWeird: You were looking in the script directory to decide what was or wasn't a directory...
[00:27]<cllyswnyzm>ohhhh
[00:28]<cllyswnyzm>what id i did a $file.realpath()?
[00:29]<cllyswnyzm>LOL, first thats wrong syntax, and no, it didnt work
[00:29]<zdzxzzmfdgzx>CppIsWeird: I think that only translates from DocumentRoot to real path...
[00:29]<m2zugs>hey i know this isn't the right place to ask this, but i don't know where else to go and I know there are a lot of smart people here that can probably answer, with that said, Anyone know a channel I can go to to get some help with IIS / Cold Fusion server setup?
[00:29]<xnzzfyax>i have a question concerning php-sockets
[00:29]<cllyswnyzm>hmm... is there any way to get the absolute path when listing a directory like that or do i just have to manually keep track of it
[00:30]<xnzzfyax>is there a way to receive data from to different sockets at the same time?
[00:30]<m2zugs>dang proprietary crap languages/servers have no good community support at least nothing openly visible
[00:30]<zdzxzzmfdgzx>CppIsWeird: http://php.net/pwd might do what you want.
[00:31]<zdzxzzmfdgzx>herrlich: I think there might be something akin to stream_select in the socket stuff... Search http://php.net for it.
[00:31]<cllyswnyzm>The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP
[00:31]<cllyswnyzm>?
[00:31]<gjvrvr_fgfgjgr>Crell42, it fails.!
[00:32]<zdzxzzmfdgzx>CppIsWeird: It's an attempt to let you switch from MySQL to PostgreSQL to Oracle painlessly, in theory...
[00:32]<gjvrvr_fgfgjgr>Crell42, it allways send the last value.
[00:32]<cllyswnyzm>...
[00:32]<cllyswnyzm>lmfao
[00:32]<cnee>trying to install phpticket and getting a undefined index error anything ring a bell that could be missing in my settings?
[00:33]<gjvrvr_fgfgjgr><input type='hidden' name='permiso' value='".$id_galeria."-".$user->id."-0'>







