[PHP] APC opcode cache behavior

2013-02-13 Thread Aaron Holmes

Hello,
I'm trying to find some information on APC opcode cache behavior.
We noticed an issue where, when switching symlinks to different versions 
of sites, old code was running from the previous version after switching 
the symlink.


Anyone know where I can find more information on this?

Thanks,
Aaron holmes

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



[PHP] Re: APC opcode cache behavior

2013-02-13 Thread Aaron Holmes

Driving home, I realized how vague this was.
Specifically, I'm looking for information on when APC will cache a file 
or directory, and what it checks before doing so.


Thanks again,
Aaron Holmes

On 2/13/2013 6:53 PM, Aaron Holmes wrote:

Hello,
I'm trying to find some information on APC opcode cache behavior.
We noticed an issue where, when switching symlinks to different 
versions of sites, old code was running from the previous version 
after switching the symlink.


Anyone know where I can find more information on this?

Thanks,
Aaron holmes



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



Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-06 Thread Aaron Holmes

No one has mentioned Cacti yet? It does exactly what Bulent is looking for.

http://cacti.net/

On 2/5/13 6:46 PM, Sean Greenslade wrote:

On Tue, Feb 5, 2013 at 10:13 AM, Bulent  Malik bma...@ihlas.net.tr wrote:



This task is not really suited for php. I would suggest looking into

Ntop.

It does exactly what you described.

Hello

I have  a freebsdbox firewall . also I have some internet customers.
I want to save how much data they used in a table ( such as mysql
table ) for each ip address.
Apache2, php5 and mysql5.5 work on the box.

How can I do it ?  any script or tool.

Thanks

How can i save in table using ntop ?  is there any document ?


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

Read the man pages. There are sql export options that you can specify on run.

I could not see any sql options on  the man file of ntop.
Where is it?




Whoops, my mistake. I was reading the NetFlow documentation and going
off vague memories of older versions of Ntop.

Ntop saves data in RRD files. There are PHP libraries to parse this
data [1]. You could theoretically scrape the RRDs and put them in a
SQL DB, but they may be useful enough on their own if you can parse
them correctly. (Note: I have never personally parsed RRDs manually.
This info was pulled from a simple Google search. YMMV.)

[1] http://www.ioncannon.net/system-administration/59/php-rrdtool-tutorial/




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



Re: [PHP] Programmers and developers needed

2012-09-19 Thread Aaron Holmes

Hi,
Can we let this thread die now?

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



[PHP] Instance inheritance

2012-08-17 Thread Aaron Holmes

Hello,
I would like some input on the best way to do something that I can only 
think to call instance inheritance.
I want to return, from a class method, an object that has the same 
methods as $this, with some additional data, and without altering $this. 
The way I'm doing this now is with clone, but that doesn't seem ideal, 
and I suspect I'm missing something simpler.


I am also using __get() and __set() for class properties, so perhaps 
some traditional accessors are invalidated.


Here's the gist of what I have right now.

class Super Implements Iterator
{
private $position= 0;
private $properties = array('some_prop');
private $data  = array('data');
function current()
{
$clone  = clone $this;
$property = $this-properties[$this-position];
$data= $this-data[$this-position];

$clone-$property = $data;

return $clone;
}
...
}

class Sub extends Super
{
...
}

$obj = new Sub();

foreach($obj as $k=$v) {
// $v now has the same methods as Sub, but it also has the current 
property set to some value, while $obj does not

var_dump($obj-some_prop); // NULL
var_dump($v-some_prop);// string(4) data

}

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