php-general Digest 9 Jul 2010 10:12:24 -0000 Issue 6837

2010-07-09 Thread php-general-digest-help
php-general Digest 9 Jul 2010 10:12:24 - Issue 6837 Topics (messages 306762 through 306782): Re: Simple XML - problem with errors 306762 by: Marc Guay 306763 by: Gary . 306764 by: Richard Quadling 306765 by: Marc Guay 306766 by: Nisse Engström

Re: [PHP] MSSQL failing.

2010-07-09 Thread Paul Halliday
What am I missing? Is the slash before the domain name above just a typo in your e-mail? It took a while to get mssql configured to where I could test it here since we're using Microsoft's SQL Server Driver for PHP (if you are running PHP under Windows, I'd strongly recommend this over the

Re: [PHP] MSSQL failing.

2010-07-09 Thread Paul Halliday
On Fri, Jul 9, 2010 at 7:12 AM, Paul Halliday paul.halli...@gmail.com wrote: What am I missing? Is the slash before the domain name above just a typo in your e-mail? It took a while to get mssql configured to where I could test it here since we're using Microsoft's SQL Server Driver for PHP

Re: [PHP] State and City Database

2010-07-09 Thread Thijs Lensselink
On 07/07/2010 10:02 PM, tedd wrote: Hi gang: Does anyone have a source for a US State and City database? Cheers, tedd Hey Tedd, Maybe this helps. I used the data files for some other projects.. http://earth-info.nga.mil/gns/html/ http://geonames.usgs.gov/ -- PHP General Mailing

Re: [PHP] MSSQL failing.

2010-07-09 Thread Andrew Ballard
On Fri, Jul 9, 2010 at 7:10 AM, Paul Halliday paul.halli...@gmail.com wrote: On Fri, Jul 9, 2010 at 7:12 AM, Paul Halliday paul.halli...@gmail.com wrote: It was a typo :) The installation is running on FreeBSD. I am looking at TDS right now as a possible cause. Got it: In

[PHP] Last day to submit your Surge 2010 CFP!

2010-07-09 Thread Jason Dixon
Today is your last chance to submit a CFP abstract for the 2010 Surge Scalability Conference. The event is taking place on Sept 30 and Oct 1, 2010 in Baltimore, MD. Surge focuses on case studies that address production failures and the re-engineering efforts that led to victory in Web

[PHP] Re: validating form input

2010-07-09 Thread Shawn McKenzie
On 07/08/2010 02:38 PM, David Mehler wrote: Hello, Got a form that takes in data to enter in to a database. I want to make it as secure and as invulnerable to sql injection and other attacks as possible. I'm wondering if mysqli_real_escape_string or stripslashes should be used or if the

[PHP] Login In script quesitons

2010-07-09 Thread Gary
__ Information from ESET Smart Security, version of virus signature database 5265 (20100709) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login In script quesitons

2010-07-09 Thread Richard Quadling
On 9 July 2010 16:42, Gary gp...@paulgdesigns.com wrote: [snip] Take a look at https://code.google.com/p/loginsystem-rd/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] State and City Database

2010-07-09 Thread Paul M Foster
On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php Problem: the city and state select drop-downs won't stay dropped for me, and won't accept anything but Lansing, Michigan. They don't drop down long

Re: [PHP] State and City Database

2010-07-09 Thread Jim Lucas
Paul M Foster wrote: On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php Problem: the city and state select drop-downs won't stay dropped for me, and won't accept anything but Lansing, Michigan.

Re: [PHP] State and City Database

2010-07-09 Thread Floyd Resler
On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote: Paul M Foster wrote: On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php Problem: the city and state select drop-downs won't stay dropped for me,

Re: [PHP] State and City Database

2010-07-09 Thread Jim Lucas
Floyd Resler wrote: On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote: Paul M Foster wrote: On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php Problem: the city and state select drop-downs won't stay

Re: [PHP] State and City Database

2010-07-09 Thread Floyd Resler
On Jul 9, 2010, at 2:32 PM, Jim Lucas wrote: Floyd Resler wrote: On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote: Paul M Foster wrote: On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php

Re: [PHP] State and City Database

2010-07-09 Thread tedd
To all: http://php1.net/b/zipcode-states/index.php I have not tried the state/city/zip demo with any other than the Safari browser. It works for that browser. Sorry, I should have checked it out via other browsers before introducing it to the list. I will work on it. Cheers, tedd --

Re: [PHP] Login In script quesitons

2010-07-09 Thread Gary
22 Line 15 is: setcookie(token, , time()-42000); Line 22 is :if (setcookie(token, $_SESSION[token], time()+86400)) { loginGlobals stops at line 278 Again, thank you for all your help. gary __ Information from ESET Smart Security, version of virus signature database 5266 (20100709

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
__ Information from ESET Smart Security, version of virus signature database 5266 (20100709) __ The message was checked by ESET Smart Security. http://www.eset.com My guess is that you've put the login PHP code after some HTML in that page? If you output any content at all (even

[PHP] Arrays passed to functions lose their indexing - how to maintain?

2010-07-09 Thread Marc Guay
Hi folks, I have an array that looks a little something like this: Array ( [6] = 43.712608, -79.360092 [7] = 43.674088, -79.388557 [8] = 43.674088, -79.388557 [9] = 43.704666, -79.397873 [10] = 43.674393, -79.372147 ) but after I pass it to a function, it loses it's indexing and becomes: Array

Re: [PHP] Arrays passed to functions lose their indexing - how to maintain?

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 15:55 -0400, Marc Guay wrote: Hi folks, I have an array that looks a little something like this: Array ( [6] = 43.712608, -79.360092 [7] = 43.674088, -79.388557 [8] = 43.674088, -79.388557 [9] = 43.704666, -79.397873 [10] = 43.674393, -79.372147 ) but after I

Re: [PHP] Login In script quesitons

2010-07-09 Thread Gary
)) { loginGlobals stops at line 278 Again, thank you for all your help. gary __ Information from ESET Smart Security, version of virus signature database 5266 (20100709) __ The message was checked by ESET Smart Security. http://www.eset.com My guess is that you've

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
()-42000); Line 22 is :if (setcookie(token, $_SESSION[token], time()+86400)) { loginGlobals stops at line 278 Again, thank you for all your help. gary __ Information from ESET Smart Security, version of virus signature database 5266 (20100709

Re: [PHP] Login In script quesitons

2010-07-09 Thread Gary
__ Information from ESET Smart Security, version of virus signature database 5266 (20100709) __ The message was checked by ESET Smart Security. http://www.eset.com My guess is that you've put the login PHP code after some HTML in that page? If you output any content

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 16:04 -0400, Gary wrote: ? ?php That bit of the code has a newline in it, which counts as output :p I've not looked over the rest yet, but see if that helps. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Arrays passed to functions lose their indexing - how to maintain?

2010-07-09 Thread Marc Guay
My bad, I had some leftover code running array_values() on it before it got passed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login In script quesitons

2010-07-09 Thread Gary
__ Information from ESET Smart Security, version of virus signature database 5266 (20100709) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login In script quesitons

2010-07-09 Thread Gary
: ? ?php That bit of the code has a newline in it, which counts as output :p I've not looked over the rest yet, but see if that helps. Thanks, Ash http://www.ashleysheridan.co.uk __ Information from ESET Smart Security, version of virus signature database 5266 (20100709

RE: [PHP] State and City Database

2010-07-09 Thread Tommy Pham
-Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, July 09, 2010 12:17 PM To: PHP Subject: Re: [PHP] State and City Database To all: http://php1.net/b/zipcode-states/index.php I have not tried the state/city/zip demo with any other than the Safari

RE: [PHP] State and City Database

2010-07-09 Thread Tommy Pham
-Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Friday, July 09, 2010 3:15 PM To: 'PHP' Subject: RE: [PHP] State and City Database -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, July 09, 2010 12:17 PM To: PHP

[PHP] SOAPParam - Does it possible?

2010-07-09 Thread Augusto Flavio
Hi, I'm creating a wsdl server but I have one doubt about the soapparam::soapparam(). I want to know how to return several parameters using the soapparam::soapparam(). I'm doing this: class MyApi implements API { public function Send($param) { $resp = array('resposta' = 'works',

Re: [PHP] State and City Database

2010-07-09 Thread Jason Pruim
On Jul 9, 2010, at 10:43 AM, tedd wrote: At 2:07 PM +0200 7/9/10, Thijs Lensselink wrote: On 07/07/2010 10:02 PM, tedd wrote: Hi gang: Does anyone have a source for a US State and City database? Cheers, tedd Hey Tedd, Maybe this helps. I used the data files for some other projects..