Re: [PHP] generate all permutations possible? (solved!)

2003-04-03 Thread michael geary
) $end = strlen($string)-1; for($i=$start;$i<=$end;$i++){ $string{$i} = $char; } return $string; } michael geary wrote: Hi Folks, I'm struggling with a permutation problem. I want to take a set of characters (for example "012345678ABCDEF") and generate all permutatio

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread michael geary
Hi guys, I appreciate your taking interest, but as I wrote, I am looking for a permutation algorithm, not specifically for all the hex colors. That was simply an example of a usage. Put another way, I want a function that I can do: echo generatePerms("abc",4); and it will return aaab aa

[PHP] generate all permutations possible? (twist)

2003-04-03 Thread michael geary
Hi Folks, I'm struggling with a permutation problem. I want to take a set of characters (for example "012345678ABCDEF") and generate all permutations of length N, allowing characters to be repeated. For example, I could use this algorithm to generate all HTML hex colors by passing: generatePe

Re: [PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread Michael Geary
Perhaps the best thing to do would be to wait for PHP 4.3, which will offer out-of-the-box OS X support. I have compiled the latest dev releases with no problems or workarounds on OS X. However, I do have step-by-step instructions for compiling PHP 4.2.x on OS X, but depending on the libraries

[PHP] --with-imap strangeness in 4.3 dev

2002-08-30 Thread Michael Geary
Hi Folks, I am on OS X 10.2, and I'm compiling the latest dev version of PHP as found at Zend: http://snaps.php.net/php4-latest.tar.gz In general, I am having good success with it. However, I am having some strangeness with Imap integration. For reference, I have OpenSSL and the C-client ins

[PHP] requesting sites running OS X

2002-08-13 Thread Michael Geary
Hi All, I have been asked by a rep at a large software dev company about any websites live-to-the-world running OS X. We are, but we're not exactly huge (max hits/day = approx. 1000, mostly internal). So, what sites are you aware of? They don't even have to be running PHP. Please let me know.

[PHP] compile PHP --with-imap, on OS X: progress, but...

2002-08-09 Thread Michael Geary
f this? I would really appreciate some help. regards, michael geary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] getting PHP --with-imap to work on OS X? (cross-post)

2002-08-08 Thread Michael Geary
ry to my /usr/local/include directory. However, I always get errors when I "make". Please, would someone be willing to offer detailed instructions? If I get this thing working, I'd be more than willing to post or mail my notes so that others can enjoy the fun. Thanks in adv

[PHP] any way to get backslashes through in preg_replace?

2001-05-08 Thread Michael Geary
I need to trap this in the preg_replace. ...and yes, I WOULD use str_replace, but it doesn't seem to work in IIS with arrays passed as search & replace parameters. If anyone can verify this, I'd be grateful! Thanks so much, michael Michael Geary Interactive Architect Ser

[PHP] (g)Zip archiving of local files?

2001-02-12 Thread Michael Geary
er gotchas should I be aware of? I'm sure that others have researched automatic archiving of files on servers, and I'd really appreciate hearing about your experiences. Thanks, michael geary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Moving files between 2 servers??

2001-02-07 Thread Michael Geary
y insights? thanks, michael geary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]