Re: [PHP] checking for duplicate values among five variables

2007-07-07 Thread Kenn Murrah
Thanks, Robert ... that was EXACTLY what I needed. kennM Robert Cummings wrote: On Fri, 2007-07-06 at 23:03 -0400, Robert Cummings wrote: On Fri, 2007-07-06 at 21:51 -0500, Kenn Murrah wrote: Can anyone help me with a way to determine of two or more variables have the same value

[PHP] checking for duplicate values among five variables

2007-07-06 Thread Kenn Murrah
Can anyone help me with a way to determine of two or more variables have the same value? For instance, $a1 = 1000 $a2 = 2000 $a3 = 2000 $a4 = 4000 $a5 = 5000 I want check these five variables and determine whether, as in this case, two or more of the variables have the same value. Any

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Kenn Murrah
pub wrote: which do you think is harder to learn, PHP or bridge? Well, PHP *can* be a lot more complicated, but at least it's more or less predictable, and I've RARELY had a bridge partner that played the game predictably and consistently kennM -- PHP General Mailing List

[PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
Greetings. In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] = bc Object ( [fullname] = Kent Huffman [industry] = Technology Solutions [url] = /tsi [address1] = 2300 W. Plano

Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
[snip] In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] = bc Object ( [fullname] = Kent Huffman [industry] = Technology Solutions [url] = /tsi [address1] = 2300 W. Plano Parkway

Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
... ) ) This is what we see: echo $db['fullname']; // nope echo $db[0]-fullname // ah !!! -- red Kenn Murrah wrote: [snip] [snip] In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] = bc

[PHP] extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
Greetings. I've been RTFM all morning and for the live of me can't figure out how to relate the element name to its data, e.g. if the element name is fullname and the data is John Doe' how do I achieve $fullname = John Doe I must not be understanding how xml_parse works, and my searches have

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
no portability to any future project, it would help me out of a terrible mind in dealing with today's issue :-) thanks. kenn Jason Barnett wrote: Kenn Murrah wrote: Greetings. I've been RTFM all morning and for the live of me can't figure out how to relate the element name to its data, e.g

[PHP] odd, sporatic upload problem ...

2004-03-05 Thread Kenn Murrah
Greetings. I have an odd (to me) problem ... from most computers, the upload code (shown, in part, below) works just fine but from at least one computer, if the user uploads a small file (under 1meg), it works properly . but if he uploads a larger file he gets either a page not found

Re: [PHP] odd, sporatic upload problem ...

2004-03-05 Thread Kenn Murrah
No, it happens immediately upon clicking the submit button on the previous page Sam Masiello wrote: How long is it before the Page Not Found error occurs? Is the browser possibly timing out? --Sam Kenn Murrah wrote: Greetings. I have an odd (to me) problem ... from most computers

[PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Kenn Murrah
Greetings: I can't decide if my problem is PHP or Javascript, but I've been staring at this line of code for too long without being able to see why it's behaving the way it is I'm trying to open a new window on top of the current window, and it does that, but the original (bottom) window

[PHP] passing PHP variables to Javascript ...

2003-11-17 Thread Kenn Murrah
Greetings. I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP -- i.e., $php_name = http://www.somewhere.com/something/3.jpg; , a filename that was generated dynamically in

[PHP] searching for javascript (or others) that can be used in conjunctionwith PHP for file folder uploads

2003-08-29 Thread Kenn Murrah
Greetings. (I've seen this subject discussed, but cannot find a solution in the archives.) I have a file upload site to which I need to add code for uploading of an entire folder/subdirectory ... I realize this can't be done in PHP alone but I'm hoping that a solution (possibly involving

[PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
Greetings. I have a web site which permits my clients to upload a file via php4, and it works great ... however, some clients have requested that they be able to upload entire directories from their windows or macintosh computers ... that is, to select the entire folder rather than doing one file

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-02 Thread Kenn Murrah
... - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Kenn Murrah [EMAIL PROTECTED] Cc: php list [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 7:47 AM Subject: Re: [PHP] uploading entire directory, with or without compression ... Your clients can zip the folder, upload the zip file

Re: [PHP] Is there a PHP for Dummies?

2003-03-28 Thread Kenn Murrah
well, B., i've read a LOT of 'em .. it sort of depends on YOUR background as to which is best ... i like Professional PHP Programming from Wrox ... don't bother with Beginning PHP Programming from Wrox ... it'll probably insult your intelligence ... one of the first i ever read, when i was first

Re: [PHP] Is there a PHP for Dummies?

2003-03-28 Thread Kenn Murrah
oh, and that reminds me ... another O'Reilly title, PHP Cookbook is REALLY helpful if, like a lot of us, you like to learn from examples ... - Original Message - From: Mike [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:10 PM Subject: Re: [PHP] Is there a PHP for

Re: [PHP] Removing columns from a text file

2003-03-27 Thread Kenn Murrah
could you just write a simple awk script to read each line and write out only the columns you wish to keep? - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 9:50 AM Subject: Re: [PHP]

[PHP] need help with parsing form input ...

2003-03-11 Thread Kenn Murrah
Greetings. I'm out of my league here, not knowing enough about regular expressions yet to do this, so I desperately need someone's help ... I need to parse form input to eliminate unwanted characters (punctuation, mostly) ... for instance, if the web site visitor types smith,susan--33 into the

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Kenn Murrah
Chars Joel Kenn Murrah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings. I'm out of my league here, not knowing enough about regular expressions yet to do this, so I desperately need someone's help ... I need to parse form input to eliminate unwanted characters (punctuation

[PHP] problem changing max file upload size

2003-03-05 Thread Kenn Murrah
Greetings. I'm having trouble uploading large files via PHP ... in my php.ini file, i have the lines: post_max_size = 100M upload_max_filesize = 100M yet I still can't get large files to upload. What am I doing wrong? Thanks in advance. -- PHP General Mailing List (http://www.php.net/)

[PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Kenn Murrah
Greetings. My code to upload file is working fine with very small files but not with larger ones Here's what I've tried so far: 1. I've edited my php.ini file to read: upload_max_filesize = 100M 2. I've the following line to my html file: input type=hidden name=MAX_FILE_SIZE

Re: [PHP] problems adjusting size of permissable file uploadRESOLVED

2003-01-06 Thread Kenn Murrah
that worked ... thanks !! - Original Message - From: Adam Voigt To: Kenn Murrah Cc: php list Sent: Monday, January 06, 2003 8:48 AM Subject: Re: [PHP] problems adjusting size of permissable file upload There's also a max POST size variable in the php.ini, try upping

[PHP] loading a different web page ...

2003-01-06 Thread Kenn Murrah
i know this is an elementary question, but i can't even figure out what to search for at php.net i need php code that, when executed, takes you to a different web page, i.e. when browser goes to www.abc.com, he's automatically redirected to www.xyz.com ... thanks in advance for the help.

[PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Kenn Murrah
admitting in advance that this may be a REALLY stupid question .. i've created a page for uploading files using PHP, and it works fine ... is it possible to write that uploaded file to another drive, on another network? for instance, my PHP pages are currently being hosted offsite ... would it

[PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
Greetings. I've written a simple form to allow my clients to upload files to me, and it works fine EXCEPT that the uploaded file is owned by www and I while I can read the file, I don't have the necessary permissions to delete it when done ... Since this site is being hosted elsewhere, is there

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
wrote: exec(/bin/chown newuser:newuser /path/to/file); The user running apache (in this case 'www') will most likely not have the requisite permissions to perform that operation. On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote: Greetings. I've written a simple form to allow my

[PHP] using .htaccess file to set max upload file size

2002-11-13 Thread Kenn Murrah
greetings. a couple of years ago, i used a .htaccess file to specify the maximum size for files i was uploading via html / php ... for the live of me, i can't find that file, or remember exactly how it needed to be written ... can anyone refresh my memory? thanks, kenn

Re: [PHP] using .htaccess file to set max upload file size SOLVED

2002-11-13 Thread Kenn Murrah
Jon: You are absolutely right (and FYI, the units are bytes) ... Thanks so much for your help on this topic (as well as a couple of others lately, when I neglected to writ to thanks ) kennM - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: 'Kenn Murrah' [EMAIL PROTECTED

[PHP] progress bar for use with PHP uploads

2002-11-12 Thread Kenn Murrah
Greetings Can anyone point me in the direction of a Javascript code snippet that would display a progress bar for a PHP upload? I'm sure it can be done that way, but honestly, I lack the Javascript skills to make it happen Any and all help would be appreciated. Thanks. Kenn

[PHP] re-installation problem ...

2002-08-09 Thread Kenn Murrah
Greetings. I've had to reinstall linux/apache/php on my new laptop ... if i browse http://localhost, i'm told that i'm running apache-advancedExtranetServer/1.3.20 (mandrake linux/3mdk) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6. sounded as though i'd successfully recreated my server, yet when i

Re: [PHP] remembering variables between pages when using forms ...

2001-10-18 Thread Kenn Murrah
didn't want to bother everyone with all the code, but here's a mildly edited version ... here's the form: form name=form1 method=post action=main.php target=_top input type=hidden name=city value=?php echo $city; ? input type=hidden name=password value=?php echo $password; ? ?php echo city

RE: [PHP] hosting

2001-07-26 Thread Kenn Murrah
this DOES sound like a nice one ... but has anyone actually used them? can someone give me an idea about realibility for commerical purposes? Thanks, KennM -Original Message- From: Aniceto Lopez [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 10:43 AM To: PHP list Subject:

[PHP] concatentation problems ...

2001-07-19 Thread Kenn Murrah
Greetings. I've searched the manual and can't find what I need ... PLEASE point me in the right direction. I need to concatenate several variables, some of which are text and some of which are integers ... e.g. $desired_string = $number . $text . $number2 . $text where $text and $text2 are

RE: [PHP] concatentation problems ...

2001-07-19 Thread Kenn Murrah
never mind ... one lousy missing double quote on the form ... geez -Original Message- From: Kenn Murrah [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 3:00 PM To: [EMAIL PROTECTED] Subject: [PHP] concatentation problems ... Greetings. I've searched the manual and can't find