[PHP] convert hex message to ascii msg, How?

2007-12-06 Thread Shelley Shyan
Hi all, How could I convert a hex msg to ascii msg? Is there a php function or sth? Thanks. Regards, Shelley

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Casey
On Dec 6, 2007 10:25 PM, Casey <[EMAIL PROTECTED]> wrote: > > On Dec 6, 2007 10:12 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > > Let's say I have a PHP script which lists a series of objects for sale at a > > yard sale, each with a checkbox to the left of the name of the item. > > > > If I wanted t

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Stephen Johnson
You will be passing the checkboxes as arrays ... So you will need to access them that way on the next page Your post field would look something like (off the top of my head, so don't quote me): Array ( [selected_fid] => [0] => apples

Re: [PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Casey
On Dec 6, 2007 10:12 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > Let's say I have a PHP script which lists a series of objects for sale at a > yard sale, each with a checkbox to the left of the name of the item. > > If I wanted to have a submit button, and run through the list of items that > were

[PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Rob Gould
Let's say I have a PHP script which lists a series of objects for sale at a yard sale, each with a checkbox to the left of the name of the item. If I wanted to have a submit button, and run through the list of items that were checked and act on them, how would I do that? To gain some knowledge,

Re: [PHP] Another form handling posting question

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 10:31 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-12-06 at 21:52 -0500, Daniel Brown wrote: > > > Duh! > > > > > > That's like telling everyone to use the shower-head to water-pic your > > > teeth as Vana White did -- like obvious! > > Am I getting old if I remember

Re: [PHP] Another form handling posting question

2007-12-06 Thread Robert Cummings
On Thu, 2007-12-06 at 21:52 -0500, Daniel Brown wrote: > On Dec 6, 2007 9:49 PM, tedd <[EMAIL PROTECTED]> wrote: > > >On Dec 6, 2007 9:10 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > > >> Also, I recently noticed that FF will add text to a Submit button > > >>if you don't. > > > > > > Actually,

Re: [PHP] Another form handling posting question

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 9:49 PM, tedd <[EMAIL PROTECTED]> wrote: > >On Dec 6, 2007 9:10 PM, tedd <[EMAIL PROTECTED]> wrote: > > > >> Also, I recently noticed that FF will add text to a Submit button > >>if you don't. > > > > Actually, Tedd, even second-generation browsers (e.g. - Internet > >Exploder 2

Re: [PHP] Another form handling posting question

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 9:10 PM, tedd <[EMAIL PROTECTED]> wrote: > Also, I recently noticed that FF will add text to a Submit button if you > don't. Actually, Tedd, even second-generation browsers (e.g. - Internet Exploder 2.x, Netscape Navigator 2.x, et cetera) would add the text "Submit Query" to a

Re: [PHP] Seeking overlap algorithm

2007-12-06 Thread tedd
At 6:07 PM -0500 12/6/07, Nathan Nobbe wrote: On Dec 6, 2007 4:59 PM, tedd <[EMAIL PROTECTED]> wrote: > The problem is, could you guarantee to a "preferred" service provider > that they would receive top-listing 25 percent of the time? Keep in > mind that preferred service providers will overl

Re: [PHP] Another form handling posting question

2007-12-06 Thread tedd
At 9:02 PM -0500 12/6/07, Robert Cummings wrote: On Thu, 2007-12-06 at 13:02 -0500, tedd wrote: > > Not to critique your form logic itself, but IMHE it is much better to name the submit button "continue" and not "submit". Some browsers, maybe all (I can't remember), screw things up when y

Re: [PHP] Another form handling posting question

2007-12-06 Thread Robert Cummings
On Thu, 2007-12-06 at 13:02 -0500, tedd wrote: > At 10:36 PM -0700 12/5/07, Mike Smith wrote: > >I am trying to recursively send data to the same form. > > > >-snip- > > > >What is the best practice for doing this? > > > > I don't know what the "best" practice is, but this is the way I do it. >

Re: [PHP] PHP Memory Leak

2007-12-06 Thread Casey
On Dec 6, 2007, at 3:15 PM, Sascha Braun <[EMAIL PROTECTED]> wrote: Hi Everybody, I have a couple of foreach loops which are ending in a for loop, which causes the apache to consume the complete memory of the server system the php engine is running on. The nesting level is at round abou

Re: [PHP] PHP Memory Leak

2007-12-06 Thread Chris
Sascha Braun wrote: Hi Everybody, I have a couple of foreach loops which are ending in a for loop, which causes the apache to consume the complete memory of the server system the php engine is running on. The nesting level is at round about three and looking like that: $num_new = 4; if (is_arr

Re: [PHP] Seeking overlap algorithm

2007-12-06 Thread Nathan Nobbe
On Dec 6, 2007 4:59 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > This post is related to the zip lat/long request I recently made and > received such an overwhelming response -- many thanks to all. > > In any event, let's say we have a end-user who is looking for > services within his zip-co

[PHP] PHP Memory Leak

2007-12-06 Thread Sascha Braun
Hi Everybody, I have a couple of foreach loops which are ending in a for loop, which causes the apache to consume the complete memory of the server system the php engine is running on. The nesting level is at round about three and looking like that: $num_new = 4; if (is_array($array)) {

[PHP] Seeking overlap algorithm

2007-12-06 Thread tedd
Hi gang: This post is related to the zip lat/long request I recently made and received such an overwhelming response -- many thanks to all. In any event, let's say we have a end-user who is looking for services within his zip-code AND we have a dB of service providers who are willing to rend

Re: [PHP] how to recognize ENUM column in table?

2007-12-06 Thread Afan Pasalic
sounds like a solution! :) thanks andrew. -afan Andrew Ballard wrote: On Dec 6, 2007 1:38 PM, Afan Pasalic <[EMAIL PROTECTED]> wrote: hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column

Re: [PHP] how to recognize ENUM column in table?

2007-12-06 Thread Andrew Ballard
On Dec 6, 2007 1:38 PM, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi, > I use the code from > http://www.php.net/manual/en/function.mysql-fetch-field > (example #1) > I'm getting everything I need but can't recognize if the column is > ENUM() type? > > e.g. column "status" is ENUM('0','1') or ENUM(

Re: [PHP] How Much Time to do First PHP BB Setup

2007-12-06 Thread Børge Holen
On Thursday 06 December 2007 20:16:51 Stephen wrote: > Hi > > I am considering taking on a project, part of which is setting up PHP BB. > > I have not done this before but have done Linux/PHP/MySQL web sites. > > What would be a realistic time estimate for me to get this running, > including going

Re: [PHP] How Much Time to do First PHP BB Setup

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 2:16 PM, Stephen <[EMAIL PROTECTED]> wrote: > Hi > > I am considering taking on a project, part of which is setting up PHP BB. > > I have not done this before but have done Linux/PHP/MySQL web sites. > > What would be a realistic time estimate for me to get this running, > including

[PHP] How Much Time to do First PHP BB Setup

2007-12-06 Thread Stephen
Hi I am considering taking on a project, part of which is setting up PHP BB. I have not done this before but have done Linux/PHP/MySQL web sites. What would be a realistic time estimate for me to get this running, including going through the documentation and learning basic administration? T

[PHP] how to recognize ENUM column in table?

2007-12-06 Thread Afan Pasalic
hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column is ENUM() type? e.g. column "status" is ENUM('0','1') or ENUM('live','hidden','archive') or something like that. I want to recognize this

Re: [PHP] Another form handling posting question

2007-12-06 Thread tedd
At 10:36 PM -0700 12/5/07, Mike Smith wrote: I am trying to recursively send data to the same form. -snip- What is the best practice for doing this? I don't know what the "best" practice is, but this is the way I do it. In the form I have a hidden field called step that controls flow via PO

Re: [PHP] Another form handling posting question

2007-12-06 Thread tedd
At 10:30 PM -0700 12/5/07, Mike Smith wrote: I'm trying to Me too -- just as my friends. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calculate a varchar

2007-12-06 Thread Richard Lynch
I won't say you CAN'T do it (you can with eval) but you'd be WAY better off to use some kind of exchange rate field that you can change frequently instead of cramming formulas into the field. "If eval is the answer, you are probably doing something wrong." You may also want to store everything as

Re: [PHP] howto get .tar.gz content's filenames

2007-12-06 Thread Richard Lynch
On Mon, December 3, 2007 9:05 pm, Shelley Shyan wrote: > It may not be a php question, but I want to get the filename lists > that a .tar.gz file contains and give it to an array. > How can I manage that? I thought there was a 'tar' PHP extension, but don't see it now... There is a 'gzip' you can

Re: [PHP] References to a variable and scope

2007-12-06 Thread Richard Lynch
On Tue, December 4, 2007 2:58 pm, Cesar D. Rodas wrote: > I know that PHP doesn't support pointers to a variable, instead of > that > there is references to a variable which are similar to pointers, > right? > > BTW, what I want to do is to save a references to a variable and read > the > content w

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Robert Cummings
Welcome back Richard :) Cheers, Rob. On Thu, 2007-12-06 at 10:43 -0600, Richard Lynch wrote: > On Thu, December 6, 2007 9:49 am, Jason Pruim wrote: > > > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > > > >> On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > >>> Hi gang: > >>> > >>>

Re: [PHP] Another form handling posting question

2007-12-06 Thread Richard Lynch
EVERY HTTP request is completely independent of the previous/following ones, unless you specifically tie them together with YOUR code. If you want to accumulate data from $_POST, start a session http://php.net/session_start and cram the data you need to keep into $_SESSION as you go. On Wed, Dece

Re: [PHP] shared memory access - shmod_open

2007-12-06 Thread Richard Lynch
On Thu, December 6, 2007 2:44 am, Rolf_ wrote: > I have a problem working with shmop_open() in a Solaris environment. > The > following cli-script works fine, except shmod_open returns a warning > 'unable > to attach or create shared memory segment': > > $sem = "/tmp/" . rand() . ".sem"; > touch (

Re: [PHP] // ?>

2007-12-06 Thread Richard Lynch
On Tue, December 4, 2007 7:41 pm, Kevin Schmeichel wrote: > Here's some unexpected behavior: > > // ?> what? > ?> > > This will output "what?" - I expected no output, as is the case if the > inline comment was a /* */ comment. Is this a bug? The are parsed first, and the // only applies to ever

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:43 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > The free one is from an OLD US census, paid for by taxpayers, and > therefore Public Domain. > > $1,000 ones (should) include new zips (lots) and up-to-date population > info etc. Yeah, mine actually does. It's from 2006 and

Re: [PHP] Maps

2007-12-06 Thread David Giragosian
On 12/6/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > Yes, you can do that, and look at Yahoo! maps as an alternative. > > Same smell. :-) > > On Wed, December 5, 2007 12:27 pm, Robert Fitzpatrick wrote: > > Well, I have two clients that both want mapping for their sales > > people. > > I have b

Re: [PHP] Maps

2007-12-06 Thread Richard Lynch
Yes, you can do that, and look at Yahoo! maps as an alternative. Same smell. :-) On Wed, December 5, 2007 12:27 pm, Robert Fitzpatrick wrote: > Well, I have two clients that both want mapping for their sales > people. > I have been looking at the Google API and Phoogle > (www.systemsevendesigns.c

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Richard Lynch
On Thu, December 6, 2007 9:49 am, Jason Pruim wrote: > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > >> On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: >>> Hi gang: >>> >>> I'm entertaining how to determine what zip codes fall within a 50 >>> mile radius of another zip code. >>> >>>

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:12 AM, mike <[EMAIL PROTECTED]> wrote: > You can use the formula to figure out how many zip codes are within the radius Or you can stop shooting me in the ass by showing me things that make me wonder why I wasted all that time! ;-P -- Daniel P. Brown [Phone Numbers Go Here

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
You can use the formula to figure out how many zip codes are within the radius Here's a snippet of old code that did that: $radius = 50; // in miles $uchk = db_query("SELECT uz.zip FROM user_zip WHERE uid=$visitor[uid]"); if(db_numrows($uchk) == 1) { list($vz) = d

RE: [PHP] zip codes and lat/longs

2007-12-06 Thread Jay Blanchard
[snip] I'm entertaining how to determine what zip codes fall within a 50 mile radius of another zip code. Anyone done this before? Also, does anyone have any sources for zip codes and lat/long databases? TIA for any help/suggestions. [/snip] Here is a code snip that I use to determine things w

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:02 AM, mike <[EMAIL PROTECTED]> wrote: [snip!] > 1) download ZCTA (the text version) from > http://www.census.gov/geo/www/gazetteer/places2k.html [snip!] How you say? Son of the bitch. Well, my database still has more information, including nearby ZIP codes, et cetera.

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 11:00 AM, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > Wow, I fire off an e-mail before I hit the sack and wake up with > several great feedback! > > No worries on the quality of humbleness, Daniel. ;-) > > Overall, I do enjoy design. Heck, I wish I had more of a creative mind > an

Re: [PHP] shared memory access - shmod_open

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 3:44 AM, Rolf_ <[EMAIL PROTECTED]> wrote: > > Dear List, > > I have a problem working with shmop_open() in a Solaris environment. The > following cli-script works fine, except shmod_open returns a warning 'unable > to attach or create shared memory segment': [snip!] Rolf, I

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 3:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Steve Finkelstein wrote: > > Thanks for your humble opinions. Appreciate the feedback! > > humble? People on this list are anything BUT humble, Steve. Now, as for my own petty opinion I always tell new clients that

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread mike
After reading this I decided to figure out what the issue was. It was the MySQL result set. Somehow the columns changed and messed up the float values. So I just whipped this up quick to reload the data (and possibly update it too) Here's the quick-and-dirty: 1) download ZCTA (the text version)

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Steve Finkelstein
Wow, I fire off an e-mail before I hit the sack and wake up with several great feedback! No worries on the quality of humbleness, Daniel. ;-) Overall, I do enjoy design. Heck, I wish I had more of a creative mind and the logical programming mind at times. I just want to make sure I'm not cutting

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 10:49 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: > > > On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > >> Hi gang: > >> > >> I'm entertaining how to determine what zip codes fall within a 50 > >> mile radius of another zi

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Jason Pruim
On Dec 6, 2007, at 10:29 AM, Daniel Brown wrote: On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: Hi gang: I'm entertaining how to determine what zip codes fall within a 50 mile radius of another zip code. Anyone done this before? Also, does anyone have any sources for zip codes and

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Daniel Brown
On Dec 5, 2007 8:58 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm entertaining how to determine what zip codes fall within a 50 > mile radius of another zip code. > > Anyone done this before? > > Also, does anyone have any sources for zip codes and lat/long databases? Tedd, I hav

Re: [PHP] Calendar

2007-12-06 Thread Richard Heyes
On Dec 5, 2007 6:09 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: There is not much "simple" about a calendar, especially when you start dealing with recurring events. How far into the future your calendar allow events to recur will depend at least in part on how you intend to store them. For inst

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Jochem Maas
Steve Finkelstein wrote: > Hi all, ... > > Basically what I'm asking is, am I going to be end up being a jack of > all trades, master of none, if I continue pursuing design AND > development? leonardo da vinci - i.e. there is nothing to say you can't be a master of all trades. but realisticall

[PHP] shared memory access - shmod_open

2007-12-06 Thread Rolf_
Dear List, I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': I checked the $sem_key with the Solaris ipcs command. The file exists and the read/write