Re: handing over data between two PHP connections
| From: | Ian | Date: | Mon, 19 Jul 2010 13:33:09 +0000 |
| Subject: | Re: handing over data between two PHP connections | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306997@lists.php.net to get a copy of this message | ||
On 19/07/2010 12:21, Tobias Mueller wrote:
<snip>
> My question is: can this be done without a database? Can one PHP instance
> (thread, process, ...) hand over data to another PHP instance?
>
>
> (Actually there is an Apache Server that executes PHP scripts. Typical LAMP
> configuration.)
Hi,
You will have to store the data somewhere that both php processes can
read. You are currently using a database but you could also use:
The File System
Shared Memory Functions [http://php.net/manual/en/ref.shmop.php]
Memcache [http://php.net/manual/en/book.memcache.php]
I'm sure there are other ways as well but it depends on how portable you
want the system to be.
Regards
Ian
--