[PHP-WIN] How do you filter out certain IP values?

2004-05-22 Thread Daniel Anderson
Hi, can anyone tell me how to filter out some IP values? For example: 80.2.*.30 Many thanks, Dan

[PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
Hi, I'm looking for a way to _silently_ execute system commands via php. All the silent commands seem to dump the output to the page if an error value is returned. I've tried >null and various other things to no effect. Anyone know how to do this on a windows platform? Thanks. -- PHP Windows

Re: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Paul J. Smith wrote: > I've tried >null and various other things to no > effect. Anyone know how to do this on a windows platform? > Redirecting to NUL (not null) should do the trick. -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers w

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
Thanks. Spot the deliberate mistake ;) Unfortunately, in my case, it doesn't work. I still get the PSEXEC header, which is what I am trying to suppress. Any other ideas? -Original Message- From: Jeroen Serpieters [mailto:[EMAIL PROTECTED] Sent: 22 May 2004 19:05 To: Paul J. Smith S

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Paul J. Smith wrote: > > Any other ideas? > If you just want to prevent the error showing up in the output of yout php script you could use output buffering. e.g.: ob_start(); // start buffering system(); // execute your stuff ob_end_clean(); // silently discard the o

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Jeroen Serpieters wrote: > > e.g.: > > ob_start(); // start buffering > > system(); // execute your stuff > > ob_end_clean(); // silently discard the output > If you want to log the output you could grab the buffered output with ob_get_contents(), save it somewhere and th

[PHP-WIN] PageRank

2004-05-22 Thread Peter Rinab
Hi, anybody there who knows a source to evaluate the google PageRank? I know a couple of web pages to get the page rank online but this doesn't help. Looking for a source. Thanks, Peter

RE: [PHP-WIN] How do you filter out certain IP values?

2004-05-22 Thread Svensson, B.A.T. (HKG)
Filter from what? Accessing the page? -Original Message- From: Daniel Anderson To: PHP Mailing List Sent: 22-5-2004 18:05 Subject: [PHP-WIN] How do you filter out certain IP values? Hi, can anyone tell me how to filter out some IP values? For example: 80.2.*.30 Many thanks, Dan -- P

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Svensson, B.A.T. (HKG)
Have you tried this with popen()? -Original Message- From: Paul J. Smith To: Jeroen Serpieters Cc: [EMAIL PROTECTED] Sent: 22-5-2004 20:10 Subject: RE: [PHP-WIN] Prevent error output from shell_exec Thanks. Spot the deliberate mistake ;) Unfortunately, in my case, it doesn't work. I st

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Svensson, B.A.T. (HKG)
Or maybe you just want to do: @shell_exec(...) ? -Original Message- From: Svensson, B.A.T. (HKG) To: '[EMAIL PROTECTED] ' Sent: 22-5-2004 23:36 Subject: RE: [PHP-WIN] Prevent error output from shell_exec Have you tried this with popen()? -Original Message- From: Paul J. Smit

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
Thanks. Tried that, but it still outputs the error. I tried shell_exec and system. Same result :( -Original Message- From: Jeroen Serpieters [mailto:[EMAIL PROTECTED] Sent: 22 May 2004 19:13 To: Paul J. Smith Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Prevent error output from shel

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
I tried popen, but it doesn't run the program. I'm not sure popen works on win platforms? -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: 22 May 2004 22:36 To: '[EMAIL PROTECTED] ' Subject: RE: [PHP-WIN] Prevent error output from shell_exec Have you tri

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Svensson, B.A.T. (HKG)
I can guarante you that popen() does work - I use it myself on a win2003 server. Since you can use shell_exec() I assume this has nothing to do with safe_mode being switched on. How do you call popen() ands what kind of dos program are you calling? -Original Message- From: Paul J. Smith

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
I'm calling ps_exec. $handle = popen($cmd); $read = fread($handle, 2096); echo $read; pclose($handle); Does nothing whereas system($cmd) or shel_exec($cmd) works fine, apart from the output. $read outputs nothing when I tested it.

[PHP-WIN] Re: PageRank

2004-05-22 Thread Manuel Lemos
Hello, On 05/22/2004 05:29 PM, Peter Rinab wrote: anybody there who knows a source to evaluate the google PageRank? I know a couple of web pages to get the page rank online but this doesn't help. Looking for a source. The only way to get the page rank of any page is by using Google Toolbar. -- Rega