Search found 17 matches

by the_drizzle
Wed Jun 20, 2007 2:24 pm
Forum: Javascript
Topic: Why prototype?
Replies: 15
Views: 2099

Well, they do call themselves a "library" and specifically makes accomodations for other libraries . That being said, I don't want to use both Prototype and jQuery and have DOM/Events/AJAX code all duplicated. Oh, you'd certainly not want to use them together. I was suggesting using jQuer...
by the_drizzle
Wed Jun 20, 2007 11:17 am
Forum: Javascript
Topic: Why prototype?
Replies: 15
Views: 2099

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...
by the_drizzle
Wed Jun 20, 2007 9:51 am
Forum: PHP - Theory and Design
Topic: Design Patterns
Replies: 6
Views: 1791

Check out FluffyCat. It gives some general descriptions of design patterns, using PHP for code examples.
by the_drizzle
Thu Jun 14, 2007 12:22 pm
Forum: Javascript
Topic: Why prototype?
Replies: 15
Views: 2099

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 ...
by the_drizzle
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: 3690

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. ...
by the_drizzle
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: 3690

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...
by the_drizzle
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: 3690

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...
by the_drizzle
Fri Jun 08, 2007 10:32 am
Forum: PHP - Code
Topic: Open source project,
Replies: 2
Views: 438

I'd first give a quick read-through of some of the Zend framework manual, just so can get your bearings. It's an excellent manual. But wanting to get your hands dirty with some coding is completely understandable. I searched for "zend" on SourceForge ( http://sourceforge.net ) and found so...
by the_drizzle
Fri Jun 08, 2007 10:11 am
Forum: PHP - Code
Topic: Are locks implemented/simulatable in PHP?
Replies: 8
Views: 648

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...
by the_drizzle
Thu Jun 07, 2007 4:45 pm
Forum: PHP - Code
Topic: Are locks implemented/simulatable in PHP?
Replies: 8
Views: 648

http://www.google.ca/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.cs.ubc.ca%2Frr%2Fproceedings%2Fspe91-95%2Fspe%2Fvol25%2Fissue10%2Fspe983nd.pdf&ei=KnpoRu30HqeKjAGa-pTCAw&usg=AFQjCNFzuw56vRzHB_7sxKabVcHEBl1eiQ&sig2=ykXz_Ju2wP0DKwI1Lvsjmg Here's a thing talking about Unix semaph...
by the_drizzle
Wed Jun 06, 2007 4:34 pm
Forum: PHP - Code
Topic: Are locks implemented/simulatable in PHP?
Replies: 8
Views: 648

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...
by the_drizzle
Wed Jun 06, 2007 12:00 pm
Forum: PHP - Code
Topic: Are locks implemented/simulatable in PHP?
Replies: 8
Views: 648

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...
by the_drizzle
Tue Jun 05, 2007 11:10 am
Forum: PHP - Code
Topic: Any way to access shared memory from different requests?
Replies: 6
Views: 637

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...
by the_drizzle
Mon Jun 04, 2007 5:47 pm
Forum: PHP - Code
Topic: Any way to access shared memory from different requests?
Replies: 6
Views: 637

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...
by the_drizzle
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: 3690

Heh, sorry, it's painfully simple. I've got sockets figured out now.