php-general Digest 5 Dec 2007 19:57:48 -0000 Issue 5165

2007-12-05 Thread php-general-digest-help
php-general Digest 5 Dec 2007 19:57:48 - Issue 5165 Topics (messages 265464 through 265478): auto-populating multiple boxes... php and pg_fetch_array problem? 265464 by: pere roca 265465 by: Jochem Maas Re: Calendar 265466 by: Richard Heyes 265478 by: Andrew

Re: [PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread Jochem Maas
pere roca wrote: hi everybody, there is a nice tool using jquery/php to populate multiple select boxes out there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ it must be a very stupid question but I’m trying to apply this tool to get data from postgreSQL, but I

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 = array, 1 = array); (generated programtically) I want to end up with : $newArray = array('FAF1' = array, 'ODM1' =

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

2007-12-05 Thread Cesar D. Rodas
On 05/12/2007, Per Jessen [EMAIL PROTECTED] wrote: Cesar D. Rodas wrote: Call exec is not good, because you are executing other program, instead of that you should use some PHP program, take a look here http://www.phpclasses.org/search.html?words=tarx=0y=0go_search=1 The access to

Re: [PHP] Maps

2007-12-05 Thread Daniel Brown
On Dec 5, 2007 1:27 PM, Robert Fitzpatrick [EMAIL PROTECTED] 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.com/phoogle). I assume with these examples I will be able to produce what they

[PHP] Maps

2007-12-05 Thread Robert Fitzpatrick
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.com/phoogle). I assume with these examples I will be able to produce what they need? Which is to select several addresses and produce a fastest route

[Fwd: Re: [PHP] Maps]

2007-12-05 Thread Jochem Maas
I forgot to CC the list, sorry. Original Message Subject: Re: [PHP] Maps Date: Wed, 05 Dec 2007 20:25:06 +0100 From: Jochem Maas [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Robert Fitzpatrick wrote: Well, I have two clients that both want mapping for

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Quoting Jochem Maas [EMAIL PROTECTED]: ... $newArray = array('FAF1', 'ODM1', /* bla bla bla */); $inputArray = array_combine($newArray, $inputArray); I guess reading through this page was too much trouble for you: http://php.net/array Jochem: Nope, not

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle
Jochem, Yes, that did the trick quite nicely. As I said, I overlooked it... a function called array_combine did not cause me to read the drill-down, because I figured it was for a union of two arrays ( it is, kind of... ) and I wanted to replace key values, not combine arrays :

Re: [PHP] Calendar

2007-12-05 Thread Andrew Ballard
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

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Jochem, Yes, that did the trick quite nicely. As I said, I overlooked it... a function called array_combine did not cause me to read the drill-down, because I figured it was for a union of two arrays ( it is, kind of... ) and I wanted to replace key values,

[PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle
Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 = array, 1 = array); (generated programtically) I want to end up with : $newArray = array('FAF1' = array, 'ODM1' = array); Thanks. Scot L.

Re: [PHP] Re: Need a hint how to track an error

2007-12-05 Thread Jochem Maas
Al Rider wrote: The key word in my assertion Make your code W3C compatible and it'll work on all modern browsers. is modern. I've never had a browser incompatibly with IE7, Netscape browsers, etc. very good. here in the real world IE6 still makes up a very significant number of browser in

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread C.R.Vegelin
- Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, December 05, 2007 1:00 PM Subject: [PHP] Array numeric key - alpha key replacement Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an

Re: [PHP] Array numeric key - alpha key replacement

2007-12-05 Thread scotdiddle
Quoting Jochem Maas [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hello All, Is the a built-in PHP call that I am overlooking which lets me replace key values in an array. $inputArray = array(0 = array, 1 = array); (generated programtically) I want to end up with : $newArray =

[PHP] Configure option for external expat directory

2007-12-05 Thread Elyse Salberg
PHP version: 5.2.5 / Platform: Solaris 9 (SPARC) / Expat version: 1.95.8 The PHP manual's section on XML ( http://us2.php.net/manual/en/ ref.xml.php ) states that the --with-expat-dir=DIR option should be used if you wish to use an external expat library. However, when I attempted to do

Re: [PHP] Calendar

2007-12-05 Thread Richard Heyes
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 instance, you can store them in a database where you create a separate

[PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread pere roca
hi everybody, there is a nice tool using jquery/php to populate multiple select boxes out there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ it must be a very stupid question but I’m trying to apply this tool to get data from postgreSQL, but I always get an empty []

[PHP] zip codes and lat/longs

2007-12-05 Thread tedd
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? TIA for any help/suggestions. Cheers, tedd -- --- http://sperling.com

RE: [PHP] zip codes and lat/longs

2007-12-05 Thread Bastien Koert
hate to say it,but there is lots on google like http://www.code322.com/zipcode_locator.php bastien Date: Wed, 5 Dec 2007 20:58:52 -0500 To: php-general@lists.php.net From: [EMAIL PROTECTED] Subject: [PHP] zip codes and lat/longs Hi gang: I'm entertaining how to determine what zip codes

Re: [PHP] zip codes and lat/longs

2007-12-05 Thread mike
Here's code I had, but it recently stopped working It takes the zip code for the user and the user you're viewing, looks them up from the data table (z_data_zips) and does the calculation. The formula is in a handful of places - I converted mine from a MySQL example (I think, or vice versa) You

[PHP] Professional inquiry for you freelancers

2007-12-05 Thread Steve Finkelstein
Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities? These are questions I'm

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Jeremy Privett
Steve Finkelstein wrote: Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities?

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Paul Scott
On Wed, 2007-12-05 at 23:33 -0500, Steve Finkelstein wrote: 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? Is there plenty of work out there for folks who just stick to development? It all

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Nathan Nobbe
On Dec 5, 2007 11:33 PM, Steve Finkelstein [EMAIL PROTECTED] wrote: 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? Is there plenty of work out there for folks who just stick to development? if

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread tedd
At 11:33 PM -0500 12/5/07, Steve Finkelstein wrote: Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I am trying to recursively send data to the same form. Based on the data, I want to determine which action is to be processed. It appears that the $_POST is not being cleared out or cached once it is sent to the server. Here is my code that I'm trying to test with. It doesn't seem to

[PHP] Another form handling posting question

2007-12-05 Thread Mike Smith
I'm trying to -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
Hm. Tell me if this works: ?php if ($_POST['process'] == 'pass') echo 'form action=success.php method=post'; else echo 'form action=recursive.php method=post'; ? button type=submit name=process value=passPass/button button type=submit name=process value=failFail/button /form On Dec 5,

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
? if($_POST['process'] == Pass){$action = success.php;}ELSE{$action = recursive.php;} echo form method='POST' action='$action'; ? I am trying to recursively send data to the same form. Based on the data, I want to determine which action is to be processed. It appears that the $_POST is

RE: [PHP] Another form handling posting question

2007-12-05 Thread admin
Or try ? echo form action=;if(($_POST['process'] == Pass) || ($_POST['process'] == )){echo success.php;}ELSE{echo recursive.php;}echo METHOD='post'; ? There are a 1000 and 1 ways to make the script smaller yet still produce the same effect. Remember there is no reason to declare the POST

Re: [PHP] Another form handling posting question

2007-12-05 Thread Casey
?php echo 'form action=', $_POST['process'] == 'pass' ? 'success' : 'recursive', '.php method=post'; ? :D On Dec 5, 2007 11:35 PM, [EMAIL PROTECTED] wrote: Or try ? echo form action=;if(($_POST['process'] == Pass) || ($_POST['process'] == )){echo success.php;}ELSE{echo

RE: [PHP] Another form handling posting question

2007-12-05 Thread jencisson
hi,mike i suggest that you use Javascript to done this work. like this: form onsubmit=submitprocess(); method=post id=form1...input type=text id=process value=pass/form scriptfunction submitprocess(){var pobj=document.getElementById(process);var fobj=document.getElementById(form1);if