Re: [PHP] Finding if a number is in the range

2001-05-18 Thread MaD dUCK
also sprach Zak Greant (on Thu, 17 May 2001 11:50:35PM -0600): > Do you really need a chainsaw to cut a piece of cake? ;) hehe. depends. and come on, i simultaneously have a point and am joking... martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "

Re: [PHP] Finding if a number is in the range

2001-05-18 Thread MaD dUCK
also sprach Joseph Blythe (on Fri, 18 May 2001 02:29:40PM +0930): > I give these ideas a go unfortunately the ranges are not contiguous, > they are all over the place. so you make new ranges to fill spaces and associate a bool with each... or you check them linearly... martin; (gre

Re: [PHP] Finding if a number is in the range

2001-05-17 Thread MaD dUCK
also sprach Zak Greant (on Thu, 17 May 2001 09:35:18PM -0600): > Or just use a simple chain of if statements :) yeah, but that's so O(n) ! i can do in O(lg n) or, given n CREW processors, in O(1) time! yes, i have just finished my computational theory and computer algorithms honors exam. martin

Re: [PHP] Finding if a number is in the range

2001-05-17 Thread MaD dUCK
also sprach Joseph Blythe (on Fri, 18 May 2001 11:12:23AM +0930): > How do I find if a number is in a range example: assuming that the ranges are continuous, make an array of the first number for each range and then implement a custom binary search for O(lg n) performance. martin; (

Re: [PHP] Why is this not working

2001-05-17 Thread MaD dUCK
also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200): > If I try su nobody it asks for nobody's password. If i enter no > password a I get Authentication denied. you aren't root. can you give me an output of 'ls -l ' martin; (greetings from the heart of the sun.) \ echo m

Re: [PHP] Why is this not working

2001-05-17 Thread MaD dUCK
also sprach YoBro (on Fri, 18 May 2001 10:34:34AM +1200): > If i do that using telnet it asks for nobody's password. do it as root. su is 'switch user' and nobody has no password. he's trying to get you to execute the command htpasswd just like apache would execute it when you call passthru in ph

Re: [PHP] way to protect .php file

2001-05-16 Thread MaD dUCK
also sprach Maxim Maletsky (on Thu, 17 May 2001 02:25:47PM +0900): > no no and no. oh sure you can. identify the group that apache runs as, then chown the directories 0750 and files 0640 after chgrp'ing them all to the same apache group, and you're set. i have my apache run as user apache and gro

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): > > To unsubscribe, e-mail: [EMAIL PROTECTED] > This does not work. This list is like the mafia: Once in, never out. > That sucks. The list managers are morons. will you chill please? of course it works. you are at fault. do you want

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:47:08PM -0700): > No.. as I said in my original post, this is on Linux.. so I was actually > wondering how it would be a risk in Linux.. not win.. sorry, i haven't really followed the thread. well, *iff* your system is properly configured *and*

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:35:32PM -0700): > Take a machine down, knowing it's uptime? (I.e., it's easier to > hack a box that's been up for 5 months.. as opposed to one that > hasn't been??) um, why? please don't answer if you use windoze for then the answer is obvious

Re: [PHP] OT question..

2001-05-09 Thread MaD dUCK
also sprach Christian Reiniger (on Wed, 09 May 2001 06:44:17AM +0200): > Again sorry to the people offended, but I still have the opinion that the > quote has by and large positive effects. I've now included a note into > the sig to clear out the misunderstandings that could easily happen. > >

Re: [PHP] OT question..

2001-05-08 Thread MaD dUCK
also sprach Billy Harvey (on Tue, 08 May 2001 09:11:15PM -0400): > Is someone quoting Adolf Hitler grounds for imprisonment in Germany > now? of course not. martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck -- humpty was pus

Re: [PHP] IIS instead of PWS!!! what else can i do..

2001-05-06 Thread MaD dUCK
also sprach Thomas Edison Jr. (on Sat, 05 May 2001 11:52:34PM -0700): > i think i'm almost at the verge of giving up...somehow > the PWS in my system is ruined forever...i'd done > everything..and i mean *EVERYTHING*...but PHP just > doesn't seem to be working with my PWS. In fact, even > my ASP s

Re: [PHP] Sorry, what is "PWS"

2001-05-05 Thread MaD dUCK
also sprach [EMAIL PROTECTED] (on Sat, 05 May 2001 11:23:42PM +0200): > What is "PWS"? I wanna know what I´m reading about ;-) micro$oft's joke they call "Personal Web Server" - comes installed by default on win98 by now, doesn't it. Because *everyone* needs a Personal Web Server. martin;

Re: [PHP] Protecting programs

2001-05-03 Thread MaD dUCK
also sprach Richard Kurth (on Thu, 03 May 2001 04:31:42PM -0700): > Is there any way to protect a php program. Like you can other software > were you can limit the amount of time they can use it. something like a > compiled c program that the php program would have to look of a cod > otherwise it

Re: [PHP] Starting PHP script with crontab

2001-05-03 Thread MaD dUCK
also sprach Noah Spitzer-Williams (on Thu, 03 May 2001 03:34:02PM -0400): > > > with lynx (lynx http://www.domain.nl/test.php) as a commandline within did you use 'lynx -dump '??? martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@mad

[PHP] "highest" file

2001-03-02 Thread MaD dUCK
hey, given a directory structure like $DOCUMENT_ROOT/2001/03/02 (where 02 is a file in dir 03/ which obviously represents a date, i would like to implement a page such as latest.php, which will go to $DOCUMENT_ROOT, list all the directories, sort them numerically, choose the largest, chdir,

Re: [PHP] hiding .php

2001-02-26 Thread MaD dUCK
also sprach Fredrik Arild Takle (on Mon, 26 Feb 2001 10:34:11PM +0100): > did you get answers to your problem? not from the list. but i found two solutions, both of which require modification of httpd.conf, and both of which are ergo apache-specific: http://www.zend.com/tips/tips.php?id=145&sing

[PHP] hiding .php

2001-02-26 Thread MaD dUCK
hi, i would like to set up a script "forum" such that you can call a url http://www.server.com/forum/general and it will php-parse forum and pass /general as PATH_INFO. it's easy to get done as http://www.server.com/forum.php/general, but i would like to disclose the script name for reasons of o