Re: [PHP-WIN] If code not working?

2006-01-04 Thread M. Sokolewicz
I agree with the points about the futility of having a 0 there, however, it won't have any impact on how it works :) why? just follow the logic: if the ip equals x.x.x.x: access_disabled OR if the ip equals y.y.y.y: access_disabled OR if FALSE: (never happens) so, what you get is that on true fr

Re: [PHP-WIN] If code not working?

2006-01-04 Thread Paul Menard
Um. What is the '0' for? if( ($_SERVER["REMOTE_ADDR"]=="x.x.x.x")|| ($_SERVER["REMOTE_ADDR"]=="y.y.y.y")|| 0 <-- This should not be here. ) - Original Message From: Christopher Malton <[EMAIL PROTECTED]> To: php-windows@lists.php.net Sent: Wednesday, January 04, 200

RE: [PHP-WIN] Re: If code not working?

2006-01-04 Thread Sean Rowe
Just curious as to why the 0 is at the end of the 'if' statement? 0 is never true, so I guess I don't see the point? -Original Message- From: El Bekko [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 12:21 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Re: If code not wor

RE: [PHP-WIN] If code not working?

2006-01-04 Thread Jay Blanchard
[snip] if((($_SERVER["REMOTE_ADDR"]=="x.x.x.x")||($_SERVER["REMOTE_ADDR"]=="y.y.y.y "))||0){ saying "if (remote address OR remore address) OR false [/snip] Now, having said that I think I see the problem. if(FALSE){ do something; } What is being tested for? -- PHP Windows Mailing List (htt

RE: [PHP-WIN] If code not working?

2006-01-04 Thread Jay Blanchard
[snip] I appear to have a problem with my If statement. No error is presented to me, but does anyone see what is wrong. IP addresses masked for safety & security. Code as follows: [/snip] echo $_SERVER["REMOTE_ADDR"] and see what is there. I would also add parentheses to the statement,

[PHP-WIN] Re: If code not working?

2006-01-04 Thread El Bekko
Christopher Malton wrote: To all, I appear to have a problem with my If statement. No error is presented to me, but does anyone see what is wrong. IP addresses masked for safety & security. Code as follows: Chris Ehm... It should work. I've rewritten it a tad: if($_SERVER["REMOTE_

[PHP-WIN] Re: phpinfo() acting strange

2006-01-04 Thread El Bekko
[EMAIL PROTECTED] wrote: Hi, I just finished an Apache 2.0.55, MySQL 4.1.16 and PHP 5.1.1 on a Windows XP SP 1 machine. Diving into the first documentation on PHP one the first examples is the use of the phpinfo() method. So I create index.php with the following content and put it in the ht

[PHP-WIN] If code not working?

2006-01-04 Thread Christopher Malton
To all, I appear to have a problem with my If statement. No error is presented to me, but does anyone see what is wrong. IP addresses masked for safety & security. Code as follows: Chris -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP-WIN] Re: php called from cmd or browser? pros and cons?

2006-01-04 Thread Sascha Meyer
Good morning, I use several php scripts run via console and these work like a charm! It's comparable to running vbs scripts but with a lot more available functions (like mailing, ftp-ing, ...); i'd definitely recommend the usage! One of my favorites: get the contents of a ftp directory, log the fi

[PHP-WIN] php called from cmd or browser? pros and cons?

2006-01-04 Thread vauneen
hi all, i've recently discovered how you can call a php script from the cmd line on a windows box and the system i'm building needs to do quite a bit of 'maintenance' stuff like watching a directory for activity, ftp-ing, archiving etc. i was wondering if anyone has any opinions on what would be be

[PHP-WIN] phpinfo() acting strange

2006-01-04 Thread olivier . maurice
Hi, I just finished an Apache 2.0.55, MySQL 4.1.16 and PHP 5.1.1 on a Windows XP SP 1 machine. Diving into the first documentation on PHP one the first examples is the use of the phpinfo() method. So I create index.php with the following content and put it in the htdocs directory. This w