Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
On Tue, Sep 14, 2010 at 12:25 PM, viraj wrote: > got another idea.. setup the database on a machine which can detect > the availability of the boss. if the boss machine is on.. and > connected to network.. the script will try to verify the availability > of the bosses's ip and interface hardware a

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
got another idea.. setup the database on a machine which can detect the availability of the boss. if the boss machine is on.. and connected to network.. the script will try to verify the availability of the bosses's ip and interface hardware address. (if the boss change the nic or machine, mac has

Re: [PHP] Could this be a bug?

2010-09-13 Thread Thijs Lensselink
On 09/14/2010 08:33 AM, Thijs Lensselink wrote: On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a memory

Re: [PHP] Could this be a bug?

2010-09-13 Thread Thijs Lensselink
On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a memory exhaustion, when I try to execute a custom error hand

Re: [PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
Well, after some more testing I'm almost sure it is some kind of strange minor bug... so I've submitted a bug report: http://bugs.php.net/bug.php?id=52833 Greetings ! On Tue, Sep 14, 2010 at 00:51, Camilo Sperberg wrote: > > On Mon, Sep 13, 2010 at 18:56, Tamara Temple wrote: > >> This isn't to

Re: [PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
On Mon, Sep 13, 2010 at 18:56, Tamara Temple wrote: > This isn't to answer your question, but... > > > On Sep 13, 2010, at 5:16 PM, Camilo Sperberg wrote: > >> function my_error_handler($errno = '0', $errstr = '[FATAL] General Error', >> $errfile = 'N/A', $errline = 'N/A', $errctx = '') { >> glob

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeB wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that it's a priority,

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse wrote: > On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown wrote: >>    It would be cheaper to employ the same method used on some >> lawnmowers and required on Jet Skis and Skidoos: a cable with a clip >> worn by the rider.  The rider falls off, the cable

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown wrote: >    It would be cheaper to employ the same method used on some > lawnmowers and required on Jet Skis and Skidoos: a cable with a clip > worn by the rider.  The rider falls off, the cable releases from the > vehicle, disengaging the throttle and

Re: [PHP] Question about news.php.net

2010-09-13 Thread Shawn McKenzie
On 09/13/2010 06:51 PM, MikeB wrote: > Daniel Brown wrote: >> >> I don't believe that we've been having any issues with the server, >> no. Are you using NNTP to connect? > > yes, NNTP. > >> You may want to consider using >> the HTTP-based RSS and/or RDF feeds if it continues to be an issue.

Re: [PHP] Question about news.php.net

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 19:51, MikeB wrote: > > As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that it's a priority, but I'll try to get to

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 19:47, Micky Hulse wrote: > > Motion sensing camera connected to a mechanical pointer stick aimed to > trigger the server power button. > > On his way out of the office: > > Clap on/clap off Clapper connected to computer power cable. It would be cheaper to employ the s

Re: [PHP] Re: [!! SPAM] Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Phpster
On Sep 13, 2010, at 17:49, Tim Thorburn wrote: > On 9/13/2010 9:10 AM, Steve Staples wrote: >> here's a silly idea... >> >> put the database on his computer (or the entire app). that way, when >> he's *there* he is logged in. if the computer is off, he's not there, >> the app wont work (and

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: I don't believe that we've been having any issues with the server, no. Are you using NNTP to connect? yes, NNTP. You may want to consider using the HTTP-based RSS and/or RDF feeds if it continues to be an issue. If this persists, I'll look into the alternatives yo

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 2:43 PM, chris h wrote: > "How would you like the system to be aware of rather or not you're in the > office? On his way in to the office: Motion sensing camera connected to a mechanical pointer stick aimed to trigger the server power button. On his way out of the office

Re: [PHP] Question about news.php.net

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 18:09, MikeB wrote: > > However, getting access seems to be hit-and-miss, since I more often than > not get a message that the connection to news.php.net timed out. > > Is this an indication that the server is just very busy? I don't get this on > any other news server I'm

Re: [PHP] Could this be a bug?

2010-09-13 Thread Tamara Temple
This isn't to answer your question, but... On Sep 13, 2010, at 5:16 PM, Camilo Sperberg wrote: function my_error_handler($errno = '0', $errstr = '[FATAL] General Error', $errfile = 'N/A', $errline = 'N/A', $errctx = '') { global $clean_exit; if(empty($clean_exit)) { ini_set('memory_limit'

[PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a memory exhaustion, when I try to execute a custom error handler with the register_shutdown_function (which is

[PHP] Question about news.php.net

2010-09-13 Thread MikeB
If there is a more appropriate place to ask this, I apologize. Please point me in the right direction. I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am tr

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daevid Vincent
> have been you'll have fun getting paid to re-do everything. Having > everything require a usb stick to launch sounds secure, until > he loses > the stick or forgets it at home one day. For fun I'd suggest tagging ...or pulls it out before all the writes have taken place from the cache or m

[PHP] Re: [!! SPAM] Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Tim Thorburn
On 9/13/2010 9:10 AM, Steve Staples wrote: here's a silly idea... put the database on his computer (or the entire app). that way, when he's *there* he is logged in. if the computer is off, he's not there, the app wont work (and the database). Steve On Mon, 2010-09-13 at 11:26 +0100, Richa

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread chris h
On Mon, Sep 13, 2010 at 5:09 PM, Daevid Vincent wrote: > > > > -Original Message- > > From: tedd [mailto:t...@sperling.com] > > Sent: Sunday, September 12, 2010 9:32 AM > > To: PHP-General list > > Subject: [PHP] 1984 (Big Brother) > > > > Hi gang: > > > > I have a client who wants his em

RE: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:t...@sperling.com] > Sent: Sunday, September 12, 2010 9:32 AM > To: PHP-General list > Subject: [PHP] 1984 (Big Brother) > > Hi gang: > > I have a client who wants his employees' access to their online > business database restricted to only t

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie wrote: > On 09/10/2010 11:13 AM, J Ravi Menon wrote: >> Hi, >> >> I have some basic questions on running php  (5.2.x series on Linux >> 2.6) as a standalone daemon using posix methods (fork() etc..): >> >> #!/usr/bin/php >> > >> require_once ('somecl

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Bostjan Skufca
I would recommend using nanoserv, it looks more mature. But personally I use my own, which I have developed because I wanted to know how to do it. And because I needed it to do some specific tasks on linux servers which I did not want to mix with apache configuration etc. Here: http://github.com/b

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Paul M Foster
On Mon, Sep 13, 2010 at 12:47:24PM -0400, tedd wrote: > When I get rich enough to hire myself, then I'll tell myself what to > do. Until then, I'm just a worker bee and follow the hive. Oh, heck, you don't have to wait that long. We'll tell you what to do for *free*! ;-} Paul -- Paul M. Fost

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
At 12:39 PM -0400 9/13/10, Marc Guay wrote: > if steve's idea is something doable.. why don't you consider setting up the mysql data dir on some removable media (thumb/flash drive)? It seems to me that almost no matter what method you choose, you're going to have to ask the client to do some

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Marc Guay
> if steve's idea is something doable.. why don't you consider setting > up the mysql data dir on some removable media (thumb/flash drive)? It seems to me that almost no matter what method you choose, you're going to have to ask the client to do something manually - whether that's logging out of t

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
hi tedd, if steve's idea is something doable.. why don't you consider setting up the mysql data dir on some removable media (thumb/flash drive)? so the boss can pull it off if he is going home. and it's easy to detect this in code and display a message to system users, something similar to that 'm

RE: [PHP] 1984 (Big Brother)

2010-09-13 Thread Bob McConnell
From: tedd > At 11:55 PM -0400 9/12/10, Paul M Foster wrote: >> >>I hate to seem flippant, but here would be my conversation with this >>customer: >> >>Customer: "My employees got access to the database while I was gone >>yesterday!" >> >>Consultant: "Well, let's see. Oh, it appears you didn't pro

RE: [PHP] 1984 (Big Brother)

2010-09-13 Thread Bob McConnell
From: tedd > At 9:10 AM -0400 9/13/10, Steve Staples wrote: >>here's a silly idea... >> >>put the database on his computer (or the entire app). that way, when >>he's *there* he is logged in. if the computer is off, he's not there, >>the app wont work (and the database). > > Silly or not, that *

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
At 11:55 PM -0400 9/12/10, Paul M Foster wrote: I hate to seem flippant, but here would be my conversation with this customer: Customer: "My employees got access to the database while I was gone yesterday!" Consultant: "Well, let's see. Oh, it appears you didn't properly log out." Customer: "

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
At 9:10 AM -0400 9/13/10, Steve Staples wrote: here's a silly idea... put the database on his computer (or the entire app). that way, when he's *there* he is logged in. if the computer is off, he's not there, the app wont work (and the database). Steve Silly or not, that *would* work. Now

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Ashley Sheridan
On Mon, 2010-09-13 at 09:10 -0400, Steve Staples wrote: > here's a silly idea... > > put the database on his computer (or the entire app). that way, when > he's *there* he is logged in. if the computer is off, he's not there, > the app wont work (and the database). > > Steve > > > > On Mon,

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Steve Staples
here's a silly idea... put the database on his computer (or the entire app). that way, when he's *there* he is logged in. if the computer is off, he's not there, the app wont work (and the database). Steve On Mon, 2010-09-13 at 11:26 +0100, Richard Quadling wrote: > On 12 September 2010 17:3

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Steve Staples
Wow... this thread SURE went WAY off my original topic... All I was looking for, was a "webserver" that would serve "PHP" pages, that was not "installed" on the machine. Now, if the machine was *nix or Windose, it didn't matter. I know in Python, you just have to install python, and then you c

[PHP] Joke [WAS: Counting Children!]

2010-09-13 Thread Michelle Konzack
Hello Sridhar Pandurangiah, how women and children do you have, that you need a program, which count it for you? :-D Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded S

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Richard Quadling
On 12 September 2010 17:32, tedd wrote: > Hi gang: > > I have a client who wants his employees' access to their online business > database restricted to only times when he is logged on. (Don't ask why) > > In other words, when the boss is not logged on, then his employees cannot > access the busin

Re: [PHP] Disabling an extension on a perdir basis.

2010-09-13 Thread Richard Quadling
On 12 September 2010 09:19, David Robley wrote: > Richard Quadling wrote: > >> On 11 September 2010 20:24, Jim Lucas wrote: >>> As I thought, looking through the docs, it looks like the only way to set >>> the options that are only settable via the php.ini file is to use a per >>> directory php.i

Re: [PHP] New to PHP and the list

2010-09-13 Thread kranthi
> Is MAX_FILE_SIZE passed to PHP as $MAX_FILE_SIZE? only if register_golbals is set to ON in php.ini. This is a very bad practice and should be avoided. Use $_POST['MAX_FILE_SIZE'] instead. But in this case dont use the post variable also. define a constant in your configuration file and use that c

[PHP] Counting Children!

2010-09-13 Thread Sridhar Pandurangiah
Hi I have an XML generated by another computer application. The format is as below. (Don't worry about the data in the XML. Its the test data). I am able to locate the correct member bill using XPATH. However I have hit a bottleneck. I am unable to echo all the elements. This is what happens

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread kranthi
i m not sure if i usderstood your question completely. by database you mean something like phpmyadmin, right ? i would save the latest session id of the boss in a file, and every time an employee tries to log in, verify the time stamp of the session file in the tmp folder. and if the boss logs out

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Dotan Cohen
On Sun, Sep 12, 2010 at 20:07, tedd wrote: > Forget modems or other such outside access -- everything would be done > internally with computers and users being physically located within the > office's physical location. > > So, could a server be set up in an office that would run web-languages suc

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Dotan Cohen
On Sun, Sep 12, 2010 at 18:55, tedd wrote: > A question, to clarify my fuzzy thinking about such things: > > Can a business have a server connected to the Internet but limit access to > just their employees? I don't mean a password protected scheme, but rather > the server being totally closed to

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Pete Ford
On 12/09/10 18:33, tedd wrote: At 5:57 PM +0100 9/12/10, Ashley Sheridan wrote: On Sun, 2010-09-12 at 12:55 -0400, tedd wrote: Can a business have a server connected to the Internet but limit access to just their employees? I don't mean a password protected scheme, but rather the server being