Persistent Storage (Between requests)

From: Date: Wed, 26 Jan 2000 04:33:26 +0000
Subject: Persistent Storage (Between requests)
Groups: php.dev 
Request: Send a blank email to php-dev+get-14922@lists.php.net to get a copy of this message
I'm writing a PHP module in C. I'm currently using PHP 4,beta 2. I would like to store a hashtable between requests. (yes, using malloc, not emalloc.) I found the php3_plist_insert / find functions. However, since these only accept indexed values and require you to know the index at lookup time, I'm unable to do this. In other words, yes I can store my hashtable in the persistent hashtable, but I am unable to store the index, therefore it is forever lost. The examples seem to indicate that the index should be passed in by the caller, but in my case this should all be transparent to the caller (cacheing). What am I missing? If there really isn't a way to do this, how safe is it to use globals? thx. -dan ps, please reply to me directly, as I'm no longer on this list.

Attachment: [text/x-vcard] Card for Dan Libby danda.vcf
« previous php.dev (#14922) next »