Zand Php Cake Php

Posted by : mig
Common memory area for PHP scripts
Hello People



I would like to know if there exists some common area (memory) for

PHP , such that I can write / read there and other scripts can also

write / read into this area.



This would be an useful way for scripts to communicate, avoiding use

of files or databases.



Here an application I need to write for security reasons:  IP calls

script, and I need to know if this IP has previously executed another

script on the last nn hours / minutes / seconds.



The only way I can figure this, is by writing info on database and

later to check it by searching DB from other script.



But I want avoid use databases, since these checkings could be very

often (many times a second), so a internal commom memory would be very

useful.



thanks

 
 
Posted by : PatiDure
Re : Common memory area for PHP scripts
Doesn't exists, script is executed on connection basis. I would use

DB, text file or write some additional application (C/Java/...) which

stores the info in a memory and allows You to update/query it as

needed from the PHP script.
 
 
Posted by : C.
Re : Common memory area for PHP scripts
The PHP Session is not system-wide - its scope is the session only -

and since HTTP is a stateless protocol, it relies on the client

replaying a session handle in every request - so not a suitable

candidate for protecting your system against people whio are trying to

undermine its security.
 
 
If you have the better reply, then send it to us. We will display your reply after the approval.
Name : 
Email Id :   
Reply :