[PHP] SDO_DAS_Relational limitations

2006-08-18 Thread Jeroen Olthof
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

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

2006-08-18 Thread tedd
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

[PHP] Re: Session issues

2006-08-18 Thread Al
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

[PHP] RELEASE ANNOUNCEMENT: PhpDocumentor 1.3.0 *stable*

2006-08-18 Thread Greg Beaver
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=11194package_id=10450release_id=440432 Information and documentation: http://www.phpdoc.org The

Re: [PHP] pear constants

2006-08-18 Thread Javier Ruiz
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

[PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
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

[PHP] Re: Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Jo�o C�ndido de Souza Neto
Hi. There´s many ways to do it, could you suply us with more information about that to led us in a straight line of thinking? Thanks. -- João Cândido de Souza Neto Curitiba Online [EMAIL PROTECTED] (41) 3324-2294 (41) 9985-6894 http://www.curitibaonline.com.br Ryan A [EMAIL PROTECTED]

Re: [PHP] Re: Session issues

2006-08-18 Thread Richard Lynch
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

[PHP] dynamic case statements?

2006-08-18 Thread Tom Cruickshank
Hello, Would anyone know if it's possible to have dynamic case statements? For example. Theform = new form(); $temp = $_POST['var1']; switch ($temp) { case status: $theform-status(); break; case $temp: $theform-form($temp);

Re: [PHP] PHPSESSID used sporatically

2006-08-18 Thread Richard Lynch
On Wed, August 16, 2006 8:44 pm, 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 see the same IP transition to and from

[PHP] How can one run libapache-mod-php5 and pgp-cgi in the same time on the same physicaly Server

2006-08-18 Thread Michelle Konzack
Hello Geeks and Nerds, How can one run libapache-mod-php5 and pgp-cgi in the same time on the same physicaly Server? I am using Debian GNU/Linux 3.1 (Sarge) and a php5 backport. This problem is generaly the su-php problem, but now it seems the there is an exclusion between the

[PHP] Downloading of PgSQL data for use local (crappy subject line)

2006-08-18 Thread Michelle Konzack
Hello, I have: 1) PostgreSQL 7.4/8.1 2) PHP5 3) Apache 1.3 The client have 1) A web browser 2) PHP4/5 3) PostgreSQL X.XX The clients can surf my website/database and collect data for Off-Line working,

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ray Hauge
On Friday 18 August 2006 10:30, Ryan A wrote: 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

[PHP] Re: suphp problem

2006-08-18 Thread Michelle Konzack
Am 2006-08-12 17:04:45, schrieb Richard Lynch: I need suphp only on those 7 VHosts, since the must write to some files OUTSIDE of the $DOCUMENTROOT but in the USERSPACE of the VHost. suphp should allow this, in theory, as I understand it... Right it is described on several websites and

Re: [PHP] Creating User Friendly URLS

2006-08-18 Thread Richard Lynch
As a general rule, if you want to see everything useful that is available to you in your script: http://php.net/phpinfo In particular, this will show you the PATH_INFO if it's there, and the REQUEST_URI if that's there, and... If neither of those are available, I don't think you'll be able to

Re: [PHP] Cookie Variables Maxing Out Using IE6

2006-08-18 Thread Richard Lynch
Set your session time out to, oh, 2 years or less (as in the spec, they are gonna ignore you if you try more than 2 years). You could even set *ONE* cookie with all the values serialized in an array, and probably stay under the 4K limit. Then you get people like me who, if a cookie value looks

Re: [PHP] active directory and PHP

2006-08-18 Thread Richard Lynch
Active Directory is a bastardized LDAP with goofy idiosyncracies to drive you crazy. If you Google for Active Directory LDAP PHP you should find solutions fairly easily... Or so I'm told... Never use AD myself. On Thu, August 17, 2006 5:14 am, Alain Roger wrote: Hi, I'm new to PHP, so sorry

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

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 12:14 pm, Bruce Bailey wrote: 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

Re: [PHP] Session issues

2006-08-18 Thread Richard Lynch
Configure the problem browser to prompt you when it gets a cookie. You'll probably find that it's rejecting the cookies, so it's not preserving the state of the session, so you get a new session every page hit. On Thu, August 17, 2006 12:35 pm, Dave Goodchild wrote: Hi all, I am currently

Re: [PHP] Downloading of PgSQL data for use local (crappy subject line)

2006-08-18 Thread Richard Lynch
For LARGE datasets, CSV or tab-delimited transfers are probably going to be easiest to suck in to the DB. Another option is to just use pg_dump, if you want whole tables. Otherwise, honestly, I'd suggest you just export your data to RSS or XML and let the user choose how to open it up. Even CSV

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

2006-08-18 Thread Ford, Mike
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

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Robert Cummings
On Fri, 2006-08-18 at 08:30 -0700, Ryan A wrote: 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)

RE: [PHP] Re: Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Some might suggest using JavaScript and storing the hint and solution with that. However, then it is easy for the student to cheat. You could use AJAX for this to load the info from the server upon request and put it into an alert or into a div with a specific id using innerHTML (JS). /Peter

Re: [PHP] Re: Session issues

2006-08-18 Thread Dave Goodchild
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

RE: [PHP] active directory and PHP

2006-08-18 Thread Richard Lynch
On Fri, August 18, 2006 3:42 pm, Chris W. Parker wrote: Richard Lynch mailto:[EMAIL PROTECTED] on Friday, August 18, 2006 9:47 AM said: Active Directory is a bastardized LDAP with goofy idiosyncracies to drive you crazy. And you're speaking from experience? No, from the umpteen

Re: [PHP] select colum in array.

2006-08-18 Thread John Nichel
Adam Zey wrote: I must say So you've said. Three times now. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] select colum in array.

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 9:02 am, João Cândido de Souza Neto wrote: 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

Re: [PHP] select colum in array.

2006-08-18 Thread Richard Lynch
On Fri, August 18, 2006 1:32 pm, Adam Zey wrote: I must say, I'm of the opinion that as much data processing should be done in the database server possible. I agree with you 100% in principle... But in this case, we're talking about structuring the data in a PHP-specific data structure for

RE: [PHP] active directory and PHP

2006-08-18 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Friday, August 18, 2006 9:47 AM said: Active Directory is a bastardized LDAP with goofy idiosyncracies to drive you crazy. And you're speaking from experience? Never use AD myself. Oh wait, I guess not... :/ Chris. p.s. I'm just having

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

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 5:19 pm, 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

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Hey Ray/Tedd, Thanks for replying guys. Ray, Checked out the Y! library, not really to my needs and I really doubt I need a whole library to do this. Tedd, Ryan: You said: ... willing to pay. Music to my ears. Happy to have helped ;D This does not do what you want, but I am

[PHP] OT alternate website authentication methods

2006-08-18 Thread Chris W. Parker
Hello, Last night I was reading Chris Shiflett's PHP Security book from O'Reilly and got to thinking about ways to authenticate a user other than using a password. Ideas: 1. Use flash to allow the user to draw an image. If the original image created during signup is within an acceptable range

[PHP] e-Commerce password standards?

2006-08-18 Thread Richard Lynch
My boss has asked me to seek out any reputable Standards-based documentation for end-user passwords for an e-commerce site. In particular, this site allows users to login with username/password and order food with their credit card on file. So we want to force them to use suitable passwords on

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Hey Tedd, Would this be something that would select questions/hints/and solutions from a larger dB? No db, this page would be generated via a DB query but the answers have to already be on the local page and accessable to the JS, I dont want to complicate matters using AJAX either Also,

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Thanks Rob, I think thats exactly what was/is needed. Its real simple and easy to modify. BTW, this is not PHP, Never said it was, didnt you notice my off topic (O.T) in the subject? Theres enough spam on the list and I didnt want to offend anyone so made sure I put it there. Will come back

Re: [PHP] simple scrip to stop email injection

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 2:20 am, Ivo F.A.C. Fokkema wrote: if (preg_match(/\r\n/, array($fname, $sname, $email, $subject))){ die(Spammer!); preg_match(/[\r\n]/, ... You are absolutely correct. Sorry. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

[PHP] Re: call_user_func_array on STATIC method

2006-08-18 Thread Greg Beaver
steve wrote: Does anyone know of a way to call a static method with an array of objects? I thought for sure this would work, but it does not: $v = call_user_func_array($class::$method,$params); Do I have to resort to eval()??? $v = call_user_func_array(array($class, $method), $params);

Re: [PHP] call_user_func_array on STATIC method

2006-08-18 Thread Chris
It's similar to the non-static method call: $v = call_user_func_array(array($class,$method),$params); steve wrote: Does anyone know of a way to call a static method with an array of objects? I thought for sure this would work, but it does not: $v =

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

2006-08-18 Thread Jochem Maas
Chris W. Parker wrote: Hello, ?php if($result = do_something('hello')) { // do something with $result } else { // do some other stuff } ? nothing wrong with this. like Adam mentioned you can check the expression to see if it is exactly false - and if you don't need

Re: [PHP] PHPSESSID used sporatically

2006-08-18 Thread Richard Lynch
On Wed, August 16, 2006 10:56 pm, Michael B Allen wrote: 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

Re: [PHP] select colum in array.

2006-08-18 Thread Adam Zey
Richard Lynch wrote: On Thu, August 17, 2006 9:02 am, João Cândido de Souza Neto wrote: 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

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Robert Cummings
On Sat, 2006-08-19 at 11:54 +0700, Peter Lauri wrote: Robert, Isn't it to easy to cheat if you do like this? Just view the source and you have the answers. But, this is maybe not for examination, maybe just for learning. If it is examination, AJAX would be better, so that they can not find

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Now I get interested, what is KISS? :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, August 19, 2006 12:14 PM To: Peter Lauri Cc: 'Ryan A'; 'php php' Subject: RE: [PHP] Dhtml/javasript layer tips or software (0.T) On Sat, 2006-08-19 at 11:54 +0700,

[PHP] call_user_func_array on STATIC method

2006-08-18 Thread steve
Does anyone know of a way to call a static method with an array of objects? I thought for sure this would work, but it does not: $v = call_user_func_array($class::$method,$params); Do I have to resort to eval()??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Robert, Isn't it to easy to cheat if you do like this? Just view the source and you have the answers. But, this is maybe not for examination, maybe just for learning. If it is examination, AJAX would be better, so that they can not find out the solution by just looking at the source. /Peter

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Larry Garfield
It is a small chocolate candy manufactured by the Hershey's corporation. It's also the act of pressing one's lips against the body or lips of another, in a friendly, romantic, or sexual fashion. It can also be a misspelling of a rock band that was popular a while back. It is also an acronym

RE: [PHP] OT alternate website authentication methods

2006-08-18 Thread bruce
hi chris... it's doable... it's actually quite secure depending on what your app is, and what your user knowledge is... check out www.passmarksecurity.com - -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Friday, August 18, 2006 2:08 PM To: