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-20
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
Next >
[01:21]<z00svnz>i don't really know what that means either, but it made sense in my head.
[01:22]<fusxuyrr>if (false === ($buf = socket_read($msgsock, 2048, PHP_NORMAL_READ))) {
[01:22]<z00svnz>unfortunately, I should've said "yes sir"
[01:22]<ajfmnz>znoG, no you can't, consider a do { } while(0) structure if you absolutely want to break out.
[01:22]<fusxuyrr>why would this return an invalid function error?
[01:22]<ajfmnz>"invalid function error" ?
[01:22]<fusxuyrr>yep :X
[01:22]<fusxuyrr>that's what it said
[01:22]<ajfmnz>what is the exact error please
[01:22]<fusxuyrr>Could not read socket: Incorrect function.
[01:23]<fusxuyrr>and for the php guru's who want the insides: Warning: socket_read(): unable to read from socket [0]: The operation completed successfully.
[01:23]<xmlxjym>.. so that first message is not a php-generated error?
[01:23]<fusxuyrr>no, it's a bit parsed...
[01:24]<fusxuyrr>Incorrect function is what the socket returns :X
[01:24]<xmlxjym>so it's not being returned from that line then?
[01:24]<fy2nzvysaj>How do I write a form that would put some data in a variable and write it to a file?
[01:24]<fy2nzvysaj>any guides on that?
[01:24]<ajfmnz>libervisco, php.net/tut
[01:24]<wfjrya>is it possible to access an element parent node using simplexml
[01:24]<wfjrya>??
[01:24]<fy2nzvysaj>okay, thanks colder
[01:26]<z00svnz>thansk as well colder!
[01:26]<z00svnz>it works now!!!!
[01:26]<z00svnz>can anyone tell me why the <? works with class stuff, and the <?php doesn't?
[01:26]<ajfmnz><?php works, but not <?php>
[01:27]<ajfmnz>you're even strongly encouraged to use <?php everywhere.
[01:27]<z00svnz>man, how crazy is that? Thanks a million colder!
[01:27]<arajabat>libervisco: You need put some data into a txt file?
[01:27]<ydc>kronar
[01:28]<fy2nzvysaj>ARAJABAT, yeah, for a start
[01:33]<drvvdaa>Er, I mean the process return value.
[01:34]<ajfmnz>but using exit; is fine, no need to use exit(0);
[01:34]<fusxuyrr>why does example no work!
[01:35]<ajfmnz>If you're completely sure the example doesn't work, then file a bug report. But I'm quite confident it works well.
[01:36]<fusxuyrr>have you tried running it?
[01:36]<rdvxzrwff>whats it not doing?
[01:37]<fusxuyrr>at line 37
[01:37]<yvzn2rf>Fushuing: are you trying to write a server in PHP?
[01:37]<fusxuyrr>the false if statement
[01:37]<fusxuyrr>itrebal: kinda
[01:37]<fusxuyrr>a very simple server
[01:37]<yvzn2rf>Fushuing: for what, may i ask?
[01:38]<fusxuyrr>remote management of course :X
[01:38]<yvzn2rf>oh
[01:38]<fusxuyrr>perhaps maybe even a MUD, if i could get this damn code to work
[01:38]<yvzn2rf>eeww ok
[01:39]<rdvxzrwff>lol@MUD
[01:39]<xmlxjym>a mud in php? owwww
[01:39]<yvzn2rf>i wrote a MUD engine in PHP, just lacked the socketry... and it was uuuggglllyyy
[01:40]<rdvxzrwff>yeah i think i heard it been done before
[01:40]<yvzn2rf>though... a PHP webserver was written
[01:40]<sajzaxnm>the original php-bot for this channel was written in php
[01:40]<ajfmnz>Fushuing, it works pretty well here
[01:41]<rdvxzrwff>php-bot is a client tho?
[01:41]<yvzn2rf>yea
[01:41]<yvzn2rf>only makes it a little easier
[01:41]<rdvxzrwff>Zend FW is currently thinking about packaging a php webserver cuz ruby has webbrick
[01:42]<rdvxzrwff>im not sure if it will be php or a small c server
[01:42]<fusxuyrr>colder: then why doesn't it works here?
[01:42]<ajfmnz>Fushuing, who knows
[01:42]<yvzn2rf>cythrawll: i *seriously* hope its c
[01:42]<rdvxzrwff>Fushuing is it erroring out?
[01:42]<jvjcjgjcj>If I want to check to see if a variable hasn't been set, it'd be if ($variable == $null) right?
[01:42]<rdvxzrwff>itrebal, i think it most likely will.
[01:42]<sajzaxnm>cythrawll, I had such a miserable experience with Zend that I would hesitate to deal with them again.
[01:42]<fusxuyrr>cythrawll: yep
[01:42]<yvzn2rf>Otokonoko: isset
[01:43]<yvzn2rf>Scorched: run php -i
[01:43]<jvjcjgjcj>... oh... DUH!!!
[01:43]<jvjcjgjcj>I even copied a piece of code containing isset over to modify it...
[01:43]<rdvxzrwff>Scorched, really do tell? and it's not pure Zend, it's open source, Andi just steps in and gives his two cents about proposals
[01:43]<jvjcjgjcj>*headdesk*
[01:43]<yvzn2rf>Scorched: you deal with Zend on every code execution :)
[01:44]<rdvxzrwff>and itrebal has a point
[01:45]<fusxuyrr>lol?
[01:45]<sajzaxnm>cythrawll, it's long story, that dealt with a purchase of the Zend Platform, and another purchase of a windows version of their Guard product, it turned into a mess.
[01:45]<fusxuyrr>http://pastebin.ca/92797
[01:46]<rdvxzrwff>could have been PBCAK
[01:46]<rdvxzrwff>Scorched,
[01:47]<fusxuyrr>cythrawll: http://pastebin.ca/92797
[01:48]<rdvxzrwff>Fushuing, is something wrong with the client script? firewall or proxy issues?
[01:48]<fusxuyrr>telnet should be able to connect to it...right?
[01:49]<yvzn2rf>i feel like... working with MPD
[01:50]<rdvxzrwff>here i'll give it a go Fushuing
[01:50]<yvzn2rf>jebus i hate working with this code....
[01:51]<yvzn2rf>http://pastebin.ca/92801 GAH! check that out! WOO! yay for recreating basic functions
[01:52]<wfjrya>anyone knows whats the difference between a dom element and a dom node :P
[01:52]<fusxuyrr>xlogic: one is happy and the other is a slave :)
[01:52]<yvzn2rf>anyone know why he stuck a :P at the end of that question instead of a ? ?
[01:52]<fusxuyrr>itrebal: sarcasm i guess
[01:53]<wfjrya>...
[01:53]<wfjrya>make some draw so he can understand
[01:53]<wfjrya>:D
[01:53]<yvzn2rf>!tell xlogic about enter
[01:53]<yvzn2rf>lay off it
[01:54]<bzuvusugyw>I pulled data from a mysql database, I'm using the pre tag so it returns where it should, but if the window is small the text will flow of the screen, how do I keep the formated returns but have soft return?
[01:54]<yvzn2rf>BrutusUnix: look into php.net/wordwrap
[01:55]<bzuvusugyw>anyone know the solution?
[01:55]<yvzn2rf>BrutusUnix: ....
[01:55]<fusxuyrr>lol







