Re: [PHP] searching by tags....

2008-10-16 Thread Jochem Maas
Ashley Sheridan schreef: > On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: > > improvement if I went for static URLs on the site, but I don't > have any > evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. >>> choices: >>

Re: [PHP] Microsoft China to Punish private windows users

2008-10-16 Thread Shelley
Hi Richard, Only China users will suffer the punishment. :) 50 pounds is not much, but 700 RMB is very much, actually. (The Office's price) 2008/10/16 Richard Heyes <[EMAIL PROTECTED]> > > It will punish private Windows XP and Office 2003, Office 2007 users. > > I was going to say "what's wrong

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-16 Thread Jochem Maas
Jason Pruim schreef: > > On Oct 15, 2008, at 7:18 AM, Nathan Rixham wrote: > >> Jason Pruim wrote: >>> I probably should have mentioned that this was in a function to do >>> the heavy lifting for authentication :) I just didn't paste the whole >>> function since 90% of it worked just fine :) >>>

Re: [PHP] searching by tags....

2008-10-16 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Wast

Re: [PHP] Microsoft China to Punish private windows users

2008-10-16 Thread Richard Heyes
> It will punish private Windows XP and Office 2003, Office 2007 users. I was going to say "what's wrong with that?", but then remembered that I use them too... -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General Mailing List (http://www.php.

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Eric Butera
So it turns out the problem was inconsistent newlines. An include file ended up having unix line returns while the design file had mac line returns. Normalizing the pieced together content solved my problems. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Nathan Rixham
Eric Butera wrote: So it turns out the problem was inconsistent newlines. An include file ended up having unix line returns while the design file had mac line returns. Normalizing the pieced together content solved my problems. glad to hear you got it fixed! was the same thing I had years ago

Re: [PHP] searching by tags....

2008-10-16 Thread Philip Thompson
On Oct 14, 2008, at 6:17 PM, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ A

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Eric Butera
On Thu, Oct 16, 2008 at 12:33 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> So it turns out the problem was inconsistent newlines. An include >> file ended up having unix line returns while the design file had mac >> line returns. Normalizing the pieced together content

[PHP] help - php script - no interaction

2008-10-16 Thread John Smtih
http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3 sites, and bring it back into 1 page (the content of 3 pages concatinated). Is th

Re: [PHP] help - php script - no interaction

2008-10-16 Thread Dan Joseph
On Thu, Oct 16, 2008 at 1:10 PM, John Smtih <[EMAIL PROTECTED]> wrote: > http://www.site1.com > http://www.site2.com > http://www.site3.com > > > > I have 3 sites above in a html. I do not want to create click each site, > one at a time to see 1 page info. > I want to write a script to go get a

[PHP] Re: help - php script - no interaction

2008-10-16 Thread Nathan Rixham
John Smtih wrote: http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3 sites, and bring it back into 1 page (the content of 3 pages c

Re: [PHP] Flags package for PHP?

2008-10-16 Thread Jim Lucas
Waynn Lue wrote: > I'm running some command-line scripts that are taking more and more > arguments, and I'm wondering whether anyone's used a good flags package for > PHP? Support for string/int/boolean arguments would be nice, otherwise I'll > just hack together my own. > > Thanks for any advice

[PHP] Binary file copy

2008-10-16 Thread Jay Moore
Greetings list! Say I want to copy a jpg from a remote server onto mine, using PHP. Right now, my script opens a socket to the remote server, and opens the image file. It copies its contents into a dummy variable, opens a new file on my server, and dumps the contents of the dummy variable int

[PHP] Re: Binary file copy

2008-10-16 Thread Nathan Rixham
Jay Moore wrote: Greetings list! Say I want to copy a jpg from a remote server onto mine, using PHP. Right now, my script opens a socket to the remote server, and opens the image file. It copies its contents into a dummy variable, opens a new file on my server, and dumps the contents of the

Re: [PHP] Binary file copy

2008-10-16 Thread Andrew Ballard
On Thu, Oct 16, 2008 at 1:58 PM, Jay Moore <[EMAIL PROTECTED]> wrote: > Greetings list! > > Say I want to copy a jpg from a remote server onto mine, using PHP. Right > now, my script opens a socket to the remote server, and opens the image > file. It copies its contents into a dummy variable, open

[PHP] Re: Binary file copy

2008-10-16 Thread Jay Moore
in the response you'll be getting the raw http response (including headers); so you're saving them as well thus not a valid image file. can't see why: $image = file_get_contents('http://10.10.10.3/record/current.jpg'); wouldn't work for you.. regardless though if you are using sockets, be sure

Re: [PHP] Re: Binary file copy

2008-10-16 Thread Bastien Koert
On Thu, Oct 16, 2008 at 2:02 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Jay Moore wrote: > >> Greetings list! >> >> Say I want to copy a jpg from a remote server onto mine, using PHP. Right >> now, my script opens a socket to the remote server, and opens the image >> file. It copies its conte

[PHP] Re: Binary file copy

2008-10-16 Thread Nathan Rixham
Jay Moore wrote: in the response you'll be getting the raw http response (including headers); so you're saving them as well thus not a valid image file. can't see why: $image = file_get_contents('http://10.10.10.3/record/current.jpg'); wouldn't work for you.. file_get_contents worked beautifu

[PHP] PHP to Java

2008-10-16 Thread ceo
For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt_generic ($td, $to_e

[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt

[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt

Re: [PHP] PHP to Java

2008-10-16 Thread Daniel Brown
On Thu, Oct 16, 2008 at 4:50 PM, <[EMAIL PROTECTED]> wrote: > > Any suggestions on a good reference or conversion program or something?... You could begin by not hiding behind the title of a CEO, Lynch. We know it's you. ;-P -- More full-root dedicated server packages: Intel 2.4GHz/60GB/5

Re: [PHP] PHP to Java

2008-10-16 Thread Børge Holen
On Oct 16, 2008, at 10:50 PM, [EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_ini

[PHP] PHP Dev Facts

2008-10-16 Thread Nathan Rixham
Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* *Dev OS* *Dev PHP Version* *Live Server OS* *Live Server PHP Version* *Which HTTP Server Software (+version)?* *IDE / Dev Environment* *Preferred Framework(s)?* *Do you Unit Test?* *Most Used Internal PH

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Shawn McKenzie
Nathan Rixham wrote: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* Procedural for small stuff - OOP for larger stuff when using framework > *Dev OS* Kubuntu Hardy Heron > > *Dev PHP Version* 5.2.4 > > *Live Server OS* FC 6 > > *Live Server PH

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Nathan Rixham
Here's mine: *Procedural or OOP?* OOP *Dev OS* Windows Server 2003 EE (sadly - I need some win-only tools!) *Dev PHP Version* PHP 5.2.5 *Live Server OS* Ubuntu + Centos *Live Server PHP Version* PHP 5.2.x *Which HTTP Server Software (+version)?* Apache 2.2 all round *IDE / Dev

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Eric Butera
On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* oop > > *Dev OS* ubuntu & os x > > *Dev PHP Version* php 5.2.6 > > *Live Server OS* Mix of Red Hat Enteprise & Debian > > *Live

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Daniel Brown
On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > *Procedural or OOP?* I'm perfectly comfortable with both, but call me old-hat --- I far prefer procedural. > *Dev OS* Loaded question, since - as a small ISP - I generally try to create an environment that exactl

[PHP] Randomiser

2008-10-16 Thread Andrew Barnett
Hey All, I'm trying to work out how to randomise the order of a bunch of strings I have. I know how to pick one random string from a bunch of them, but how do I make sure that everyone is used just once. Any pointers on how to do that would be appreciated. Cheers, Andrew

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Bastien Koert
On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* Both, though while I am still on the fence about OOP in a web based app, I am trying for the next few apps > > > *Dev OS* Wind

Re: [PHP] Randomiser

2008-10-16 Thread Bastien Koert
On Thu, Oct 16, 2008 at 8:22 PM, Andrew Barnett <[EMAIL PROTECTED]>wrote: > Hey All, > I'm trying to work out how to randomise the order of a bunch of strings I > have. I know how to pick one random string from a bunch of them, but how do > I make sure that everyone is used just once. > > Any poin

Re: [PHP] Randomiser

2008-10-16 Thread Chris
Andrew Barnett wrote: Hey All, I'm trying to work out how to randomise the order of a bunch of strings I have. I know how to pick one random string from a bunch of them, but how do I make sure that everyone is used just once. $used_strings = array(); while (true) { $string = get_random_string

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Chris
*Procedural or OOP?* oo where possible. *Dev OS* ubuntu *Dev PHP Version* 5.2.x (whatever ubuntu supplies at the time) *Live Server OS* mix of debian etch, rhel 4/5. *Live Server PHP Version* 5.1.6 (deb), 5.2.0 i think on rhel. *Which HTTP Server Software (+version)?* apach

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Kaleb Pomeroy
On Oct 16, 2008, at 6:14 PM, Nathan Rixham wrote: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* OOP Always *Dev OS* OS X *Dev PHP Version* 5.2.x *Live Server OS* OpenSuse/Redhat *Live Server PHP Version* 5.2.x *Which HTTP Server Software (+v

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Shawn McKenzie
Shawn McKenzie wrote: > Nathan Rixham wrote: >> Evening All, >> >> I'd be /really/ interested to know who uses what! >> >> *Procedural or OOP?* > Procedural for small stuff - OOP for larger stuff when using framework > >> *Dev OS* > Kubuntu Hardy Heron > >> *Dev PHP Version* > 5.2.4 currently (wh

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Robert Cummings
On Fri, 2008-10-17 at 00:14 +0100, Nathan Rixham wrote: > Evening All, > > I'd be /really/ interested to know who uses what! > > *Procedural or OOP?* Primarily OOP, occasionally procedural for some one off quick access functions. InterJinn will also generate "anonymous" procedural code. > *Dev

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Ross McKay
On Fri, 17 Oct 2008 00:14:18 +0100, Nathan Rixham wrote: >*Procedural or OOP?* OOP, except really small stuff. >*Dev OS* Fedora 9 >*Dev PHP Version* 5.2.6 >*Live Server OS* Hosted services - var. Linux, Windows 2003 Server >*Live Server PHP Version* Mostly 5.2.3+, some 4.x (haven't looked

[PHP] Re: PHP Dev Facts

2008-10-16 Thread ANR Daemon
Greetings, Nathan Rixham. In reply to Your message dated Friday, October 17, 2008, 3:14:18, > *Procedural or OOP?* whatever feels applicable. > *Dev OS* Win2k, Server 2003 > *Dev PHP Version* 5.2.6 > *Live Server OS* Whatever. > *Live Server PHP Version* 5.1.6, 5.2.4, 5.2.6 > *Which HTTP

Re: [PHP] PHP Dev Facts

2008-10-16 Thread Luke Slater
> On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > > Evening All, > > > > I'd be /really/ interested to know who uses what! > > > > *Procedural or OOP?* Procedural > > *Dev OS* Mandriva Linux (home and work) > > *Dev PHP Version* 5.2.6 > > > *Liv