php-general Digest 13 Sep 2010 08:34:51 -0000 Issue 6938

2010-09-13 Thread php-general-digest-help
php-general Digest 13 Sep 2010 08:34:51 - Issue 6938 Topics (messages 307996 through 308013): Re: 1984 (Big Brother) 307996 by: Tamara Temple 308001 by: tedd 308005 by: Tamara Temple 308008 by: Paul M Foster 308009 by: Paul M Foster Re: How to handle

php-general Digest 13 Sep 2010 21:09:36 -0000 Issue 6939

2010-09-13 Thread php-general-digest-help
php-general Digest 13 Sep 2010 21:09:36 - Issue 6939 Topics (messages 308014 through 308034): Re: Standalone WebServer for PHP 308014 by: Dotan Cohen 308021 by: Steve Staples 308032 by: Bostjan Skufca Re: 1984 (Big Brother) 308015 by: kranthi 308019

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

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Dotan Cohen
On Sun, Sep 12, 2010 at 18:55, tedd tedd.sperl...@gmail.com 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

Re: [PHP] Standalone WebServer for PHP

2010-09-13 Thread Dotan Cohen
On Sun, Sep 12, 2010 at 20:07, tedd tedd.sperl...@gmail.com 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

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

[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 line elements. This is what

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

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

2010-09-13 Thread Richard Quadling
On 12 September 2010 09:19, David Robley robl...@aapt.net.au wrote: Richard Quadling wrote: On 11 September 2010 20:24, Jim Lucas li...@cmsws.com 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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Richard Quadling
On 12 September 2010 17:32, tedd t...@sperling.com 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

[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

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 can

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

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 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 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: Yes,

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 *would* work.

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 properly log out.

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

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

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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Paul M Foster
On Mon, Sep 13, 2010 at 12:47:24PM -0400, tedd wrote: snip 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.

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:

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie nos...@mckenzies.net 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 ?php require_once

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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread chris h
On Mon, Sep 13, 2010 at 5:09 PM, Daevid Vincent dae...@daevid.com 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

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

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

[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

[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

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

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

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 18:09, MikeB mpbr...@gmail.com 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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 2:43 PM, chris h chris...@gmail.com 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

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

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

2010-09-13 Thread Phpster
On Sep 13, 2010, at 17:49, Tim Thorburn immor...@nwconx.net 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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 19:47, Micky Hulse mickyhulse.li...@gmail.com 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

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

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 19:51, MikeB mpbr...@gmail.com 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

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. If this

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown danbr...@php.net 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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown danbr...@php.net 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

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

2010-09-13 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com 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

Re: [PHP] Could this be a bug?

2010-09-13 Thread Camilo Sperberg
On Mon, Sep 13, 2010 at 18:56, Tamara Temple tamouse.li...@gmail.comwrote: 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 =