php-general Digest 18 Aug 2006 16:29:51 -0000 Issue 4300

Topics (messages 240841 through 240849):

Re: I need an array of state abbrev to names... [solved]
        240841 by: Daevid Vincent

SDO_DAS_Relational limitations
        240842 by: Jeroen Olthof

Re: Looking for caveats to the following code
        240843 by: Ford, Mike

Re: Session issues
        240844 by: Al
        240849 by: Dave Goodchild

Re: I need an array of state abbrev to names...
        240845 by: tedd

RELEASE ANNOUNCEMENT: PhpDocumentor 1.3.0 *stable*
        240846 by: Greg Beaver

Re: pear constants
        240847 by: Javier Ruiz

Dhtml/javasript layer tips or software (0.T)
        240848 by: Ryan A

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
> -----Original Message-----
> From: Chris W. Parker [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 1:26 PM
> To: Daevid Vincent; [email protected]
> Subject: RE: [PHP] I need an array of state abbrev to names...
> 
> Daevid Vincent <mailto:[EMAIL PROTECTED]>
>     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' => 'Washington',
> > ...
> > );
> 
> HERE LAZY!
> 
>     $GLOBALS['usps_states_list'] = array(
> 0 => array('name'=>'Alaska','code'=>'AK','contiguous'=>true),
...
> Please send me a check $250. Thanks!
>
> Chris.

Thanks, for the help, here is the list formatted as I needed it for anyone
else that may need this in the future.

$states = array(
'AL' => 'Alabama',
'AK' => 'Alaska',
'AS' => 'American Samoa',
'AZ' => 'Arizona',
'AR' => 'Arkansas',
'CA' => 'California',
'CO' => 'Colorado',
'CT' => 'Connecticut',
'DE' => 'Delaware',
'DC' => 'District Of Columbia',
'FM' => 'Federated States Of Micronesia',
'FL' => 'Florida',
'GA' => 'Georgia',
'GU' => 'Guam',
'HI' => 'Hawaii',
'ID' => 'Idaho',
'IL' => 'Illinois',
'IN' => 'Indiana',
'IA' => 'Iowa',
'KS' => 'Kansas',
'KY' => 'Kentucky',
'LA' => 'Louisiana',
'ME' => 'Maine',
'MH' => 'Marshall Islands',
'MD' => 'Maryland',
'MA' => 'Massachusetts',
'MI' => 'Michigan',
'MN' => 'Minnesota',
'MS' => 'Mississippi',
'MO' => 'Missouri',
'MT' => 'Montana',
'NE' => 'Nebraska',
'NV' => 'Nevada',
'NH' => 'New Hampshire',
'NJ' => 'New Jersey',
'NM' => 'New Mexico',
'NY' => 'New York',
'NC' => 'North Carolina',
'ND' => 'North Dakota',
'MP' => 'Northern Mariana Islands',
'OH' => 'Ohio',
'OK' => 'Oklahoma',
'OR' => 'Oregon',
'PW' => 'Palau',
'PA' => 'Pennsylvania',
'PR' => 'Puerto Rico',
'RI' => 'Rhode Island',
'SC' => 'South Carolina',
'SD' => 'South Dakota',
'TN' => 'Tennessee',
'TX' => 'Texas',
'UT' => 'Utah',
'VT' => 'Vermont',
'VI' => 'Virgin Islands',
'VA' => 'Virginia',
'WA' => 'Washington',
'WV' => 'West Virginia',
'WI' => 'Wisconsin',
'WY' => 'Wyoming'
);

DÆVID 

--- End Message ---
--- Begin Message ---
Hi,

I'm looking into the SDO implementations and walked into the limitations 
very quickly.

Limitations:
- No composite key possible
- Only one Foreign key per table
- No way of setting up a many to many relationschip

My models violates mostly and most likely all of this limitations. So I ask 
myself. Is it usefull or don't I understand the stratergy?

what to do with the many to many relationships, the composite keys and 
multiple foreignkeys per table ???

kind regards

Jeroen Olthof 

--- End Message ---
--- Begin Message ---
On 17 August 2006 23:28, Adam Zey wrote:

> 
> Better to do this:
> 
> if ( ($result = do_something('hello')) !== false )
> {
>    // do something with $result
> }
> else
> {
>    // do some other stuff
> }
> 
> The result of an assignment like "$result = do_something('hello')" is
> itself the result you assigned, so you can still compare on that. The
> reason I put it in more brackets was just for readability. I
> don't think
> you actually need the extra set, but I'm not sure.

Of course you do -- without them, it's the equivalent of:

    if ( $result = (do_something('hello') !== false) )

which will only assign TRUE or FALSE to $result.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--- End Message ---
--- Begin Message ---
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 relevant session values are inserted into the
database. I have tested it on three different machines in FF, IE and Opera
and all expected values were entered ok.

However, a remote user has started testing and all values are blank,
suggesting the session is not being populated. I noticed it at their office
last week when data values were not showing up when the user went back one
page (ie fields are pre-populated with existing session values).

Anyone had this problem before?


$i= 0; first time. Then $i++; so you can see the increment. Or instead of $i, include something unique in your code for each pass.

Try putting a var_dump($_SESSION, $i) at the top of your page. That will show 
you what is happening.

--- End Message ---
--- Begin Message ---
Don't be sorry, that's not what I meant. The fields are completed by the
user, they submit and the cleaned and validated values are put into the
session. So when they go back their entered values are displayed. I made
sure of it by making sure these pages are never cached.

That issue is resolved. Now the only problem is that when the client
completes the cycle blank or default values are entered into the db, whereas
the other 4 remote testers have entered the data without issue.

On 18/08/06, Richard Lynch <[EMAIL PROTECTED]> wrote:

On Thu, August 17, 2006 12:56 pm, 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.

Ah, but some browsers just don't work like that.

They assume that the user wants to re-use the values THEY entered, not
the ones that were the original default.

That's what an <input type="reset" /> was designed for into the HTML
spec in the first place, after all.

You can get them to switch to a browser that behaves like they expect.

You can educate them to understand that their browser is supposed to
work that way.

You can give them a "reset" form button to put things back the way
they were.

But you can't change the browser to misbehave from the way that
particular browser manufacturer thinks browsers should work.  Sorry.

--
Like Music?
http://l-i-e.com/artists.htm





--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk

--- End Message ---
--- Begin Message ---
At 8:55 PM -0700 8/17/06, Daevid Vincent wrote:

Excellent Thanks!

Glad to actually help (this time).  :-)

Oh, and also that you have to be careful and use the 'save as' feature on
windows machines so as not to get funky "\r\n" instead of "\n" and then the
parser won't work. :)

Windows? Not in my world, I'm Windows challenged.

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
RELEASE ANNOUNCEMENT
PhpDocumentor 1.3.0 *stable*
August 18, 2006
Download:
pear upgrade PhpDocumentor
http://pear.php.net/PhpDocumentor
http://sourceforge.net/project/showfiles.php?group_id=11194&package_id=10450&release_id=440432
Information and documentation:
http://www.phpdoc.org


The PhpDocumentor team would like to announce the release of
PhpDocumentor version 1.3.0.  This is the first stable release since
2003, and marks a dramatic step up from previous releases.

This release adds in:
 - full PHP 5 support, including knowledge of internal classes
   for PHP version 5.1.0+ using the Reflection extension.
 - highlighting of tutorial XML
 - beautifying of output from the XML:DocBook/peardoc2:default
   converter

In addition, the release fixes more than 100 bugs found since version
1.2.3.  Output from source highlighting is much more efficient,
resulting in slightly smaller file size for option sourcecode=on.
Multi-national characters are now allowed in a package name, although
internationalization support is not fully complete.

PhpDocumentor is the standard automatic documentation solution for PHP
written in PHP.  Originally inspired by JavaDoc, PhpDocumentor has over
6 years of battle-testing and is bundled in popular IDEs such as Zend
Studio, PHPEdit, PhpEd, and others.

--- End Message ---
--- Begin Message ---
thank you for the link, I'm already subscribed to the pear general list and
I sent the same email to that list, but I got no any answer yet... I just
sent it to the PHP list in case anybody in this list has or had the same
problem...

I put here the problem I'm having:

I have a problem with some pear constants. I made a new installation of
php + pear + propel (http://propel.phpdb.org) and now in my scripts the
constant PEAR_INSTALL_DIR is not defined when in my previous
installation it used to be...

Other constants like the error ones (PEAR_ERROR_DIE,
PEAR_ERROR_RETURN ...) are defined correctly

Am I missing anything in the new installation?

thanks a lot!



On 8/17/06, Chris <[EMAIL PROTECTED]> wrote:

JRuiz wrote:
> Hi All,
>
> I have a problem with some pear constants.

The pear lists live here: http://pear.php.net/support/lists.php

--
Postgresql & php tutorials
http://www.designmagick.com/


--- End Message ---
--- Begin Message ---
Hello,
I am working on a php project that needs a little
extra JS/DHTML solution. I am sure some of you might
have come to use something like this before, please
recommend a solution (commerial solutions are fine /
willing to pay)

Basically, I will have a page with around 10 questions
for students and then two buttons for [HINT] and
[SOLUTION]

When either of these buttons/text is clicked the
resulting text should be displayed in the side/bottom
cell, the user should also be able to 'close' this
resulting explanation.

Note, on each page there will be around 10 questions,
so each of these questions will have a hint & solution
button/text.

Thanks in advance,
Ryan

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---

Reply via email to