Re: handing over data between two PHP connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux