Search found 17 matches
- Wed Jun 20, 2007 2:24 pm
- Forum: Javascript
- Topic: Why prototype?
- Replies: 15
- Views: 2100
- Wed Jun 20, 2007 11:17 am
- Forum: Javascript
- Topic: Why prototype?
- Replies: 15
- Views: 2100
Here's what I've found: jQuery is a bit lacking when it comes to OOP-emulation features that Prototype is quite famous for (it's not called prototype for nothing). While one may argue that OOP is not the paradigm one should follow when coding in such a flexible language like JavaScript, it has cert...
- Wed Jun 20, 2007 9:51 am
- Forum: PHP - Theory and Design
- Topic: Design Patterns
- Replies: 6
- Views: 1793
Check out FluffyCat. It gives some general descriptions of design patterns, using PHP for code examples.
- Thu Jun 14, 2007 12:22 pm
- Forum: Javascript
- Topic: Why prototype?
- Replies: 15
- Views: 2100
jQuery is a godsend! Technically it's preference, but even more technically, you should just use jQuery. Can you tell my favourite? ;) Also check out Interface . If you like GUI, then you should like Interface, which runs on top of jQuery. The obvious contender is Scriptaculous but I find Interface ...
- Thu Jun 14, 2007 11:15 am
- Forum: PHP - Theory and Design
- Topic: How to efficiently manage multiple threads with PHP/Apache
- Replies: 12
- Views: 3691
You can store sessions in a database. I was looking for a way to change a client's session that the running thread doesn't really have access to. If I store sessions in the database and modify them there, then I need to make sure the client's session and the one in the database are always in-sync. ...
- Thu Jun 14, 2007 11:05 am
- Forum: PHP - Theory and Design
- Topic: How to efficiently manage multiple threads with PHP/Apache
- Replies: 12
- Views: 3691
Oh sorry, I wasn't trying to pick a fight. I can assure you I think outside of the box (tm) ;). I post things that I'm uncertain about so I can listen to what people have to say, such as yourself. So of course, I highly appreciate your lengthy replies. 3) You don't allways have to access the databas...
- Wed Jun 13, 2007 5:46 pm
- Forum: PHP - Theory and Design
- Topic: How to efficiently manage multiple threads with PHP/Apache
- Replies: 12
- Views: 3691
Heh, sorry, it's painfully simple. I've got sockets figured out now. Yeah bro, you may have sockets figured, but that's not the tack to take in an AJAX front end. 1) You need to manage requests via a queue. There are couple of good JS queue implementations out there. 2) Javascript has a timer objec...
- Fri Jun 08, 2007 10:32 am
- Forum: PHP - Code
- Topic: Open source project,
- Replies: 2
- Views: 439
- Fri Jun 08, 2007 10:11 am
- Forum: PHP - Code
- Topic: Are locks implemented/simulatable in PHP?
- Replies: 8
- Views: 649
Yeah, sorry d11, you're right about the multi-threading. I was actually thinking about multiple processes or multiple Apache threads handling several requests simultaneously. So in theory, it may have been possible to share OS locks amongst threads that are responding to different requests. It was m...
- Thu Jun 07, 2007 4:45 pm
- Forum: PHP - Code
- Topic: Are locks implemented/simulatable in PHP?
- Replies: 8
- Views: 649
- Wed Jun 06, 2007 4:34 pm
- Forum: PHP - Code
- Topic: Are locks implemented/simulatable in PHP?
- Replies: 8
- Views: 649
I just want to manipulate a general lock. It's fine if I have to acquire a lock for some crazy thing (i.e. a file) and use that, as long as I can play around with the lock itself. My understanding is that if I can *manually* lock an object like a file, then there should be a generic way to lock anyt...
- Wed Jun 06, 2007 12:00 pm
- Forum: PHP - Code
- Topic: Are locks implemented/simulatable in PHP?
- Replies: 8
- Views: 649
Are locks implemented/simulatable in PHP?
I've been yearning to use locks in PHP for quite some time now, and I always end up finding a context-sensitive workaround. Is there a library somewhere that I can use, or I should I just try to simulate locks? I can imagine solutions by forking processes but I'm running the scripts inside of Apache...
- Tue Jun 05, 2007 11:10 am
- Forum: PHP - Code
- Topic: Any way to access shared memory from different requests?
- Replies: 6
- Views: 638
Problem Solved
Sorry, I should have been more clear. There is a large list of objects that I wish to share between requests to the server for varying reasons. I suppose I could've discussed several examples but I wanted to avoid digression into how to best implement each feature. In theory I should be able to tack...
- Mon Jun 04, 2007 5:47 pm
- Forum: PHP - Code
- Topic: Any way to access shared memory from different requests?
- Replies: 6
- Views: 638
Any way to access shared memory from different requests?
Given PHP5 and Apache, is there any way to share memory between requests? For example, say one web user accesses a page and something - let's call it Jum - gets placed in memory. If another user accesses a page, or the original user sends a second request, can I access Jum? Your first thought may be...
- Fri Jun 01, 2007 2:09 pm
- Forum: PHP - Theory and Design
- Topic: How to efficiently manage multiple threads with PHP/Apache
- Replies: 12
- Views: 3691