RE: [PHP] I need an array of state abbrev to names... [solved]

2006-08-17 Thread Daevid Vincent
> -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 1:26 PM > To: Daevid Vincent; php-general@lists.php.net > Subject: RE: [PHP] I need an array of state abbrev to names... > > Daevid Vincent > on Thursda

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 17, 2006 2:54 PM > To: Daevid Vincent; php-general@lists.php.net > Subject: Re: [PHP] I need an array of state abbrev to names... > > At 12:58 PM -0700 8/17/06, Daevid Vincent wrote: > >B/c I'm too busy (

RE: [PHP] Looking for caveats to the following code

2006-08-17 Thread tedd
At 4:16 PM -0700 8/17/06, Chris W. Parker wrote: tedd on Thursday, August 17, 2006 3:58 PM said: You can shorten it even further by: if(do_something('hello')) { // do something with $result } else { // do some other stuff } This a

Re: [PHP] Looking for caveats to the following code

2006-08-17 Thread Anas Mughal
Tedd, Actually, he seems to be needing the return value of the function inside the if block. So, he would need to do: if ($result = do_something('hello')) or, as Adam stated: if ( ($result = do_something('hello')) !== false ) Regards. -- Anas Mughal On 8/17/06, tedd <[EMAIL PROTECTED]

Re: [PHP] Looking for caveats to the following code

2006-08-17 Thread Robert Cummings
On Thu, 2006-08-17 at 18:58 -0400, tedd wrote: > At 3:19 PM -0700 8/17/06, Chris W. Parker wrote: > > > > >if($result = do_something('hello')) > >{ > > // do something with $result > >} > >else > >{ > > // do some other stuff > >} > > > >?> > > > >The issue is whether or not this is a safe test

Re: [PHP] Looking for caveats to the following code

2006-08-17 Thread tedd
At 3:19 PM -0700 8/17/06, Chris W. Parker wrote: The issue is whether or not this is a safe test. My initial thought is that it is safe since I'm simply checking for true/false-ness. I either check for '!== false' explicitly or (in the case of the latter example) check that something other than

[PHP] Re: Looking for caveats to the following code

2006-08-17 Thread Adam Zey
Chris W. Parker wrote: Hello, While experimenting with some object stuff I stumbled upon something new (although not object related). Normally I would do this: Using the same function above I discovered I can do this: The issue is whether or not this is a safe test. My initial thought is

[PHP] Looking for caveats to the following code

2006-08-17 Thread Chris W. Parker
Hello, While experimenting with some object stuff I stumbled upon something new (although not object related). Normally I would do this: Using the same function above I discovered I can do this: The issue is whether or not this is a safe test. My initial thought is that it is safe since I'

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread tedd
At 5:27 PM -0400 8/17/06, Robert Cummings wrote: > 63 => array('name'=>'Armed Forces Middle East','code'=>'AE','contiguous'=>false), 64 => array('name'=>'Armed Forces > Pacific','code'=>'AP','contiguous'=>false)); Please send me a check $250. Thanks! You forgot to sneak in "Santa's Li

RE: [PHP] Re: Can a PHP 5 Object Be Persisted Past Script End?

2006-08-17 Thread Bruce Bailey
Adam Thanks for the information, I'll explore that option. Bruce From: Adam Zey <[EMAIL PROTECTED]> To: Bruce Bailey <[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: [PHP] Re: Can a PHP 5 Object Be Persisted Past Script End? Date: Thu, 17 Aug 2006 17:05:41 -0400 Bruce Bailey wrote:

Re: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread tedd
At 12:58 PM -0700 8/17/06, Daevid Vincent wrote: B/c I'm too busy (and lazy) to hand type it all in, wondering if someone has an array of state abbreviations to names like so... $states = array( ... 'NY' => 'New York', 'WA' => 'Washington', ... ); Daevid: Everything you want s

[PHP] xmlrpc_decode vs. xmlrpc_decode_request

2006-08-17 Thread Shu Chow
Hi, I have a question that's been bugging me for a while. What's the difference between xmlrpc_decode and xmlrpc_decode_request? _request takes an extra parameter, $method, but I can't figure out what kind of effect it has. I can pass a totally bogus parameter to it. What's the difference b

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Robert Cummings
On Thu, 2006-08-17 at 13:26 -0700, Chris W. Parker wrote: > Daevid Vincent > on Thursday, August 17, 2006 12:58 PM said: > > > B/c I'm too busy (and lazy) to hand type it all in, wondering if > > someone has an array of state abbreviations to names like so... > > >

[PHP] Re: Can a PHP 5 Object Be Persisted Past Script End?

2006-08-17 Thread Adam Zey
Bruce Bailey wrote: Hi In order to improve performance for a socket-based PHP 5 object, I would like to persist an object beyond the end of a script. Is there any way to make this work? Will PHP 5 automatically destroy the object sometime after the script ends? Thanks in Advance, Bruce

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Chris W. Parker
Daevid Vincent on Thursday, August 17, 2006 12:58 PM said: > B/c I'm too busy (and lazy) to hand type it all in, wondering if > someone has an array of state abbreviations to names like so... > > $states = array( > ... > 'NY' => 'New York', > 'WA' => 'Wa

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Warren Vail
Assuming you are talking about states in the US (it's a big world out there), you might try. http://www.usps.com/ncsc/lookups/usps_abbreviations.html Good luck, Warren Vail Vail Systems Technology http://www.vailtech.net [EMAIL PROTECTED] > -Original Message- > From: Daevid Vincent [m

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Jim Moseby
> B/c I'm too busy (and lazy) to hand type it all in, wondering > if someone has > an array of state abbreviations to names like so... > > $states = array( > ... > 'NY' => 'New York', > 'WA' => 'Washington', > ... > ); > I have one somewhere, but I'm too lazy to go find it for you.

[PHP] I need an array of state abbrev to names...

2006-08-17 Thread Daevid Vincent
B/c I'm too busy (and lazy) to hand type it all in, wondering if someone has an array of state abbreviations to names like so... $states = array( ... 'NY' => 'New York', 'WA' => 'Washington', ... ); ÐÆ5ÏÐ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Re: Session issues

2006-08-17 Thread Robert Cummings
On Thu, 2006-08-17 at 19:19 +0100, Dave Goodchild wrote: > Trust me, there is far too much code to include. The problem is simple. The > app contains a 3-page form cycle that reloads itself, progressing from stage > 1-3 and populating the session array as values are validated and cleaned. > When th

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
Trust me, there is far too much code to include. The problem is simple. The app contains a 3-page form cycle that reloads itself, progressing from stage 1-3 and populating the session array as values are validated and cleaned. When the process is complete, the values held in the session array are

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: On 17/08/06, John Nichel <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: >> >> >> How does the user "go back one page"? If it by using the browser's >> back-button, the php script has no way of knowing it. > > > > Yes, but the session variables have already been set, and

[PHP] Can a PHP 5 Object Be Persisted Past Script End?

2006-08-17 Thread Bruce Bailey
Hi In order to improve performance for a socket-based PHP 5 object, I would like to persist an object beyond the end of a script. Is there any way to make this work? Will PHP 5 automatically destroy the object sometime after the script ends? Thanks in Advance, Bruce _

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: How does the user "go back one page"? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. All the session variables in the world a

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
On 17/08/06, John Nichel <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: >> >> >> How does the user "go back one page"? If it by using the browser's >> back-button, the php script has no way of knowing it. > > > > Yes, but the session variables have already been set, and are configured to > di

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
How does the user "go back one page"? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Session issues

2006-08-17 Thread Al
Dave Goodchild wrote: Dave Goodchild wrote: Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the r

[PHP] Session issues

2006-08-17 Thread Dave Goodchild
Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the relevant session values are inserted into the da

Re: [PHP] active directory and PHP

2006-08-17 Thread Michael B Allen
On Thu, 17 Aug 2006 11:54:53 -0500 Ray Hauge <[EMAIL PROTECTED]> wrote: > > [1] You could proxy the user's username and password to ldap_sasl_bind but > > aside from being a hack it's not SSO and doesn't scale because it requires > > communication with the DC whereas Kerberos does not. And it's in

[PHP] PHP 4.4.4 and 5.1.5 Released!

2006-08-17 Thread Derick Rethans
Hello, PHP development team would like to announce the immediate availability of PHP 5.1.5 and PHP 4.4.4. The two releases address a series of security problems discovered since PHP 5.1.4 and 4.4.3, respectively. These include the following: - Added missing safe_mode/open_basedir checks insid

Re: [PHP] active directory and PHP

2006-08-17 Thread Michael B Allen
Hi Alain, PlexSSO is by far the best and easiest solution available for PHP SSO with Active Directory. We provide: o Windows Integerated Authentication (WIA) o Script level access to user info like username, home drive, etc. o Script level access control using windows group names Someone e

Re: [PHP] active directory and PHP

2006-08-17 Thread Ray Hauge
On Thursday 17 August 2006 11:35, Michael B Allen wrote: > Hi Alain, > > PlexSSO is by far the best and easiest solution available for PHP SSO > with Active Directory. We provide: > > o Windows Integerated Authentication (WIA) > o Script level access to user info like username, home drive, etc.

RE: [PHP] Creating User Friendly URLS

2006-08-17 Thread Chris W. Parker
tedd on Thursday, August 17, 2006 8:29 AM said: >> And then stripping out the "index.php", and using the remainder for >> both the URL and the database lookup. > > Why not just place all your pages inside folders with the names you > want and then link to the folde

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread Jochem Maas
1. assign a 'page' a 'friendly url' - this is probably done in your CMS 2. write a routine that will generate a 'friendly url' for a given 'page' in your cms; this allows you to stick the 'friendly urls' in a menu for instance. 3. write a routine for taking any given url and trying to match i

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-17 Thread Adam Zey
[EMAIL PROTECTED] wrote: There are 24 check boxes, and each selection triggers a graphical display of radiation levels in a specific area over the last hour. David So, if the user deletes the cookie, they grow a third eye? At last, a viable method of preventing privacy nazis from deleting my

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread tedd
At 11:43 PM +0900 8/17/06, Dave M G wrote: PHP List, My goal is to create user and search engine friendly URLs like: mysite.com/my_web_page_title Instead of: mysite.com/index.php?pageID=1 The "?" doesn't cut it for SE's. I thought I could do this by simply making my link into: My Web Page T

Re: [PHP] Creating User Friendly URLS

2006-08-17 Thread Ray Hauge
On Thursday 17 August 2006 09:43, Dave M G wrote: > PHP List, > > My goal is to create user and search engine friendly URLs like: > mysite.com/my_web_page_title > > Instead of: > mysite.com/index.php?pageID=1 > > I asked about this before: > http://marc.theaimsgroup.com/?l=php-general&m=11359798802

[PHP] Re: select colum in array.

2006-08-17 Thread Jo�o C�ndido de Souza Neto
I found another solution myself. Thanks four your answer Robert. ""João Cândido de Souza Neto"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi everyone, > > I´m not sure if it´s the right place to get such answer, but if someone > know, please, help me. > > In a select

[PHP] Creating User Friendly URLS

2006-08-17 Thread Dave M G
PHP List, My goal is to create user and search engine friendly URLs like: mysite.com/my_web_page_title Instead of: mysite.com/index.php?pageID=1 I asked about this before: http://marc.theaimsgroup.com/?l=php-general&m=113597988027012&w=2 And there is this helpful tutorial: http://agachi.name/w

Re: [PHP] select colum in array.

2006-08-17 Thread Robert Cummings
On Thu, 2006-08-17 at 11:02 -0300, João Cândido de Souza Neto wrote: > Hi everyone, > > Im not sure if its the right place to get such answer, but if someone > know, please, help me. > > In a select id,name,picture1,picture2,picture3 from product where id="10" i > get an array with each colum i

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-17 Thread dpgirago
On Wed, August 16, 2006 9:00 am, [EMAIL PROTECTED] wrote: > Does IE6 limit somehow/somewhere the number of cookie variables I can > create and store? Richard Lynch responded: > Yes. > > Read the Cookie spec. > > There's no need for any site to ever send more than ONE Cookie anyway. > > Just use s

[PHP] select colum in array.

2006-08-17 Thread Jo�o C�ndido de Souza Neto
Hi everyone, I´m not sure if it´s the right place to get such answer, but if someone know, please, help me. In a select id,name,picture1,picture2,picture3 from product where id="10" i get an array with each colum in each element like this $result ("id" => "10", "name" => "name of product", "

Re: [PHP] active directory and PHP

2006-08-17 Thread chris smith
On 8/17/06, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I'm new to PHP, so sorry if my question looks like stupid. I have a web application which use authorization and authentication process to log-in. I would like to know if it exists a way to synchronize the authentication with our Active Dire

[PHP] active directory and PHP

2006-08-17 Thread Alain Roger
Hi, I'm new to PHP, so sorry if my question looks like stupid. I have a web application which use authorization and authentication process to log-in. I would like to know if it exists a way to synchronize the authentication with our Active Directory domain ? Something like a single side-on. In

Re: [PHP] PHPSESSID used sporatically

2006-08-17 Thread Michael B Allen
On Thu, 17 Aug 2006 12:06:08 +1000 Chris <[EMAIL PROTECTED]> wrote: > Michael B Allen wrote: > > Searching through the logs and browsing my site (see sig) I sometimes see > > PHPSESSID is used as opposed to cookies. I know it's not simply that the > > client doesn't support cookies because I can s

Re: [PHP] simple scrip to stop email injection

2006-08-17 Thread Ivo F.A.C. Fokkema
On Wed, 16 Aug 2006 15:54:32 -0500, Richard Lynch wrote: > On Wed, August 16, 2006 4:53 am, Ross wrote: >> >> Been having loads of problems with this and have solved it using the >> phpmailer. The only problem is I cannot get the class working on the >> remote >> host I am working on. I am back to