17.07.2009

Channel php ausgewählt, Log vom 17.07.2009

Seite:  1 2 3 >  Letzte Seite

Chatlog

xert: BlaDe: you shoud use PDO::setAttribute()
Brandon: Is it difficult to open and manage multiple sockets simultaniously in php?
Nick\: probably not no
Nick\: sounds a little dodgey though :) if its a persistent script you had best own the server :P
Brandon: hmm. am i approaching this the wrong way? is there a good way to let a significant number of users connect to an online game at once? the data transfer would be negligible, but i don't know how to approach the project, really. just learning as i go. :-p
Brandon: is there any kind of queueing for socket connections that would allow me to process through short numerous connections? i dont think any round trip communication for my project would take more than a fraction of a second from open to process to close, but i don't want connection attempts being refused to do high traffic
Brandon: i'm making a lot of assumptions in my reasoning, i know. correct me if my thinking is completely off.
+SlashLife: Brandon: You are writing a server in PHP?
Brandon: trying too.
Brandon: to*
+SlashLife: You are prone to fail.
+SlashLife: If you really want to do that, use another language.
Brandon: completely? lol i'm just doing this for learning purposes.
+SlashLife: C/++ makes for nice highly loadable servers ... it takes a long time to master, though.
+SlashLife: Brandon: PHP was never meant to write servers in it.
Brandon: i'd be glad to, although i know no other languages save AS, but i don't have a reliable rig here at the house to host effectively, so i need to house the server on my cheap web host. lol
+SlashLife: In that case you are prone to fail anyway; your cheap web host won't allow you to have scripts running longer than 30 seconds.
Brandon: if you have a potential alternative, i'm all ears.
Brandon: ah. lol. well THAT's good to know. never even considered that.
mavi: a common way is to have a master thread accepting then give them over to the child thread pool, start about 1 child per 5 connections.
mavi: but yea, maybe just use apache as server and use json?
Brandon: well i'm running wamp on this box atm for testing, but my client will be done in flash/as3
Brandon: the extent of my understanding of network programming and networking in general spans back maybe 20 hours. lol. i may not be understanding what you're saying, or just communicating poorly.
Brandon: slash, assuming i find a way to reliably host from home, or spring for a dedicated server through some web host, what language should i go for as a novice?
Nick\: do the clients need a persistent connection to the server?
Brandon: i would assume i could work around needing persistent connections, but if my host won't allow indefinite execution time on scripts, it won't matter.
Nick\: could use http instead of sockets :p
Nick\: or you could quit :D
+SlashLife: Nick\: That'd highly worsen his problems.
Nick\: depends on what sort of game it is
+SlashLife: HTTP is nice for stateless stuff, but for de-facto persistent connections it induces $LOADS_OF overhead.
+SlashLife: Btw.: You don't happen to have experience with talks?
Nick\: depends on what talks is O_o (probably not)
+SlashLife: Well, talks on conferences.
+SlashLife: Guess not then. :<
Nick\: guess so :x unless you care to explain a little more, im a little lost
samsen: Hi thar! any ideas where to start learning php? stuff to start buildin
+SlashLife: Nick\: Nah, just need someone to have a look on my talks structure to give me a hint whether it might work out or not.
+SlashLife: samsen: php.net/tut first.
+SlashLife: samsen: Then tut.php-quake.net
samsen: thankx man
+SlashLife: And then just find projects which you think are just *slightly* above your knowledge and research into them.
Nick\: (sorry if i seem dense) when you say talks structure, do you mean your giving a talk, and want input on the structure of it, or completely wrong end of the stick
+SlashLife: Exactly that's what I'd like a second opinion on
FeaR^: hm i should do that too. the slightly part that is, rather than things that are way beyond me =o
Nick\: talking isn't really a strongpoint of mine, so not sure i could help all that much
Nick\: whats it about?
+SlashLife: Arrays. :<
Nick\: is it written? might be interesting :x
+SlashLife: Nope. Just finished the structure. :/
Nick\: whats it for?
+SlashLife: IPC 2009
+SlashLife: ... I hope
+SlashLife: It's probably not going to be accepted anyway, but I still got to try. :)
Nick\: :( ipc?
+SlashLife: Nick\: http://phpconference.com
Nick\: ah pricey :o
arkin: SlashLife strikes again
+SlashLife: Took long enough, didn't it?
arkin: aye
arkin: thought u were going for Laro|OFFFFFF
arkin: :p
+SlashLife: I think I gave them a fair chance.
+SlashLife: Nah, he got another 28 minutes to live.
arkin: is it actually a rule - the nick part?
+SlashLife: Nope.
+SlashLife: Just frowned upon.
+SlashLife: The public away is, though.
arkin: ah makes sense, seein it alot lol
samsen: damn php fkn tough nut to crack :)

Seite:  1 2 3 >  Letzte Seite

Zurück zur Übersicht

Webseiten Tipps

Hier gehts zum jquery Tutorial.
Meine schwarze Webseite: iPhone4Spiel