Re: [PHP] Users Online?

2009-06-21 Thread Michael A. Peters
Paul M Foster wrote: On Sat, Jun 20, 2009 at 01:33:52PM -0700, Chris Payne wrote: Hi everyone, I have a login system that allows a user to login to my control panel, is there an easy way so that I can tell how many users / what users are logged into my system? What would I need to do to add t

Re: [PHP] Users Online?

2009-06-21 Thread Nitsan Bin-Nun
Why all this mess for such a simple thing? All you need is to allocate the last activity timestamp with userid in the users table, add 'last_activity' column to the users table then update it with every page load at the administration panel. Then all you need to do in order to print out the curren

[PHP] mirroring website

2009-06-21 Thread Lars Nielsen
Hey I have the following issue! I want to develop my website on my local machine, and then upload the entire developed site to a production server. What is the best strategy to do that? I have been looking at a php mirroring script but that was about 5 years old! Is'nt there a better/newer approac

Re: [PHP] mirroring website

2009-06-21 Thread Nitsan Bin-Nun
Create 2 different configuration files, load the appropriate one after checking whether $_ENV['dev'] is set to 1 or 0 then all you have to do is to set the environment variable 'dev' to 1 or 0 through .htaccess file. After setting this up all you have to do is to rewrite the files whenever you want

Re: [PHP] mirroring website

2009-06-21 Thread Richard Heyes
Hi, > I have the following issue! I want to develop my website on my local > machine, and then upload the entire developed site to a production > server. What is the best strategy to do that? > I have been looking at a php mirroring script but that was about 5 years > old! Is'nt there a better/new

Re: [PHP] mirroring website

2009-06-21 Thread Lars Nielsen
Thanks for the cents. I will try a combination of multiple configuration files and rsync! /Lars søn, 21 06 2009 kl. 16:39 +0100, skrev Richard Heyes: > Hi, > > > I have the following issue! I want to develop my website on my local > > machine, and then upload the entire developed site to a produ

[PHP] Re: mirroring website

2009-06-21 Thread Jonesy
On Sun, 21 Jun 2009 16:39:18 +0100, Richard Heyes wrote: > >> I have the following issue! I want to develop my website on my local >> machine, and then upload the entire developed site to a production >> server. What is the best strategy to do that? >> I have been looking at a php mirroring script

Re: [PHP] isset question

2009-06-21 Thread Gary
How does echoing back to the page make it vulnerable? This does not go to a DB if that makes any difference. Gary "Paul M Foster" wrote in message news:20090621032151.gb14...@quillandmouse.com... > On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: > >> On Sat, 2009-06-20 at 00:

Re: [PHP] Calendar

2009-06-21 Thread Ashley Sheridan
On Sat, 2009-06-20 at 10:26 -0400, tedd wrote: > At 7:58 PM +0100 6/19/09, Ashley Sheridan wrote: > >On Fri, 2009-06-19 at 15:30 +0530, Sudheer Satyanarayana wrote: > >> salmarayan wrote: > >> > Does Any body please have the code of A Java Script Calendar > >>that works with > >> > a PHP Html

RE: [PHP] PHP Mail Function

2009-06-21 Thread Ashley Sheridan
On Sat, 2009-06-20 at 20:30 -0600, David Swenson wrote: > Julian, > > From my understanding of PHP's mail() function, it doesn't do anything > more than send to the address you specified. > > On that note, I'd check things like: > Email address typos > The email your sending to your domain, is it

Re: [PHP] isset question

2009-06-21 Thread Ashley Sheridan
On Sun, 2009-06-21 at 13:57 -0400, Gary wrote: > How does echoing back to the page make it vulnerable? This does not go to a > DB if that makes any difference. > > Gary > > > "Paul M Foster" wrote in message > news:20090621032151.gb14...@quillandmouse.com... > > On Sat, Jun 20, 2009 at 12:20:

[PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Hey List Is there any good approach to share code between multiple sites? The code might be on the same server but on different domains. best regards Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] share code between sites

2009-06-21 Thread Eddie Drapkin
The same document root and different Vhosts? On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsen wrote: > Hey List > > Is there any good approach to share code between multiple sites? The > code might be on the same server but on different domains. > > best regards > > Lars > > > -- > PHP General Mailin

Re: [PHP] share code between sites

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 2:01 PM, Lars Nielsen wrote: > Hey List > > Is there any good approach to share code between multiple sites? The > code might be on the same server but on different domains. put your common code outside the web root, and use the include_path ini setting in all the variou

Re: [PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Yeah maybe thats the way to do it. It certantly sounds like a working solution. søn, 21 06 2009 kl. 16:02 -0400, skrev Eddie Drapkin: > The same document root and different Vhosts? > > On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsen wrote: > > Hey List > > > > Is there any good approach to share co

[PHP] Passing Values between C App and PHP

2009-06-21 Thread Tobias Krieger
Hi, I've recently written an eMail regarding I2C and PHP - since I haven't found a nice solution yet, I'm considering writting the I2C part (opening device, writing, reading,...) in C (that's simple) and to recieve (and returning) the values through PHP and Javascript. E.g. Website (PHP/J

Re: [PHP] Passing Values between C App and PHP

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 3:25 PM, Tobias Krieger < tobias.krie...@teamfrednet.org> wrote: > Hi, > > I've recently written an eMail regarding I2C and PHP - since I haven't > found a nice solution yet, I'm considering writting the I2C part (opening > device, writing, reading,...) in C (that's simple)

Re: [PHP] Passing Values between C App and PHP

2009-06-21 Thread Tobias Krieger
Am 21.06.2009 um 23:31 schrieb Nathan Nobbe: On Sun, Jun 21, 2009 at 3:25 PM, Tobias Krieger > wrote: Hi, I've recently written an eMail regarding I2C and PHP - since I haven't found a nice solution yet, I'm considering writting the I2C part (opening device, writing, reading,...) in C (tha

Re: [PHP] Passing Values between C App and PHP

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 3:44 PM, Tobias Krieger < tobias.krie...@teamfrednet.org> wrote: > This would be a nice and fast solution, but unfortunatelly, it's like that > the C programm needs to surveilance the hardware all the time (controlling > values,...) hence, it would run more as a "daemon". >

[PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
(Resend from around 1 week ago, because of no responses) Hi All, Over the weekend I setup a test of APC intending to benchmark a Moodle installation with various APC settings to see how well I could get it to perform. I successfully installed Moodle 1.9 and 2.0 under Apache 2.2.3 (installed via a

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Nathan Nobbe
On Sun, Jun 21, 2009 at 5:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no responses) > > Hi All, > > Over the weekend I setup a test of APC intending to benchmark a Moodle > installation with various APC settings to see how well I could get it > to perform. I successfull

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe wrote: > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > wrote: > did you take a look at the size of the cache you created ? Yes. Tried multiple segments and single, with cache size values between 128mb and 256mb. Also tried with stat on and off. > a

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread Jonathan Tapicer
Can you do a phpinfo(); and tell us the value of the setting apc.filters (or every apc.* if you can)? Just curious, but I've seen apps set that setting to avoid APC opcode caching. Jonathan On Sun, Jun 21, 2009 at 8:56 PM, James McLean wrote: > (Resend from around 1 week ago, because of no respon

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 10:02 AM, Jonathan Tapicer wrote: > Can you do a phpinfo(); and tell us the value of the setting > apc.filters (or every apc.* if you can)? Just curious, but I've seen > apps set that setting to avoid APC opcode caching. Certainly, however it will have to wait until I am ho