Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Rog
[EMAIL PROTECTED] wrote: >Your timestamp looks bogus. On normal systems this can only be a 32 bit >integer and there will be an overflow at that time. His timestamp is perfectly fine, it's just in the wrong format. His is formatted to YearMonthDayHourMinuteSecond and you (and the date function

[PHP] PHP Socket working (sorta)

2001-02-15 Thread Rog
After hours of pulling my hair out and staring a C code I don't understand, I almost have a generic PHP multiplexing TCP server running. Basically right now multiple clients can connect and be recognized by the server and the server is aware of incoming input from the clients. This is mostly u

Re: [PHP] Undocumented Socket functions?

2001-02-15 Thread Rog
Rick Hodger wrote: >I'm not honestly sure if it'd be possible. Normally you would have a daemon >running that listens for incoming connections and then spawns another >process for each connection. Then the daemon goes back to listening. As far >as I know, PHP doesn't have any sort of fork() or

[PHP] Undocumented Socket functions?

2001-02-14 Thread Rog
Can anyone here decipher for me some of the undocumented Socket functions in PHP4? For instance, how do I use select() to multiplex multiple connections? With the functions that are documented, there is a nice example of a simple echoing TCP server, but it only accepts a single connection whic

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread Rog
Rasmus wrote: >I swore I would not have the same problem in PHP and thus the requirement >for people to be explicit about using global variables inside functions. >Hopefully it also forces a little bit of structure and organization on >people. Hear, hear and thank you Rasmus. It seems to me t

Re: [PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread Rog
John Vanderbeck wrote: >DOES NOT WORK: >echo '', >$subcategories[$index], ''; You are using commas instead of periods, use ".$PHP_SELF." instead of ",$PHP_SELF," (and for the other instances as well). Visit the Gates Motel webgame: http://www.gamesl