RE: [PHP] Insert in database

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 00:04 instead of echo(Hi ,$_POST['fname'],nbsp;,$_POST['lname'],Thank You For Registering !!!); try echo Hi .$_POST['fname'].nbsp;.$_POST['lname'].Thank You For Registering !!!; You

RE: [PHP] regular expressions help please

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: John Fishworld [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 09:32 I'm trying to find files in my array for example =lg_imode.gif and =/db/imodeklein/edgar-IMODE-1-.gif I want to differentiate between the files with slash at the front and ones

RE: [PHP] Sessions with register_globals = off

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Padraig Kitterick [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 20:16 To: [EMAIL PROTECTED] Subject: [PHP] Sessions with register_globals = off Am in need of help or I will loose my sanity!!! Im runnin Php 4.1.2 with Apache 1.3.22 on Win32 with

RE: [PHP] Re: Translation Request--Altavista Babelfish can't do it

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Hugh Bothwell [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 01:15 Vins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if(!ereg(^#(.)*$, $buffer[$i])) { echo ok; } what does this mean? [...] Boiled down,

RE: [PHP] Last time Append line to text file

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 05:34 On Sun, 28 Apr 2002, Richard Emery wrote: The answer is: $file_pointer = fopen('/public_html/emails.txt', a) or exit; The || is a binary operation. You want or, the logical

RE: [PHP] Re: Translation Request--Altavista Babelfish can't do i t

2002-04-29 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 14:12 To: [EMAIL PROTECTED] On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote: Well the ereg is looking for strings beginning with # but then the whole if expression

RE: [PHP] Array function to delete

2002-04-26 Thread Ford, Mike [LSS]
-Original Message- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 21:01 Apparently in 4.1.X this is true... I'd been running 4.0.6 for a long time (until 4.1.2 was released), and must have coded it in the earlier version. I stand corrected! :-) H'mmm, I think you

RE: [PHP] Parse Error - Help? (AGAIN)

2002-04-25 Thread Ford, Mike [LSS]
-Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 05:06 Yike, now I wish I hadn't found it: [Wed Apr 24 19:42:18 2002] [error] PHP Warning: Wrong datatype for second argument in call to in_array in beta_up.asp on line 61 57 function ext_valid

RE: [PHP] Predefined variables in PHP 4.2 vs. older version

2002-04-25 Thread Ford, Mike [LSS]
-Original Message- From: Pekka Saarinen [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 11:05 Is there a way to reliably detect PHP version and have $PHP_SELF replaced with $_SERVER['PHP_SELF'] when executed in 4.2 or newer? What about: if (isset($_SERVER)) $PHP_SELF =

RE: [PHP] how to make array_search start from 0?

2002-04-25 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 18:02 Just looking at the manual here and it explains quite specifically that array_search() is meant to be used with associative arrays, not indexed arrays. No it doesn't. How on earth did

RE: [PHP] how to make array_search start from 0?

2002-04-25 Thread Ford, Mike [LSS]
-Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 25 April 2002 17:30 I am passing an array through the URL with a ',' inbetween: var=php,mysql,super Parsing is done with: explode (',',$var). This gives me an array starting with 0 Later on I have to search for

RE: [PHP] SQL Warning

2002-04-24 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 04:46 Would you please direct your attention to this URL http://testphp.netfirms.com/code1.html Look at the bottom where the big orange commented syntax is and explain what is going on

RE: [PHP] remove last character in a string

2002-04-23 Thread Ford, Mike [LSS]
-Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 04:54 Why get strlen involved??? $string = substr($string, 0, -1); Why get quotes involved??? $string = substr($string, 0, -1); Cheers! Mike

RE: [PHP] Re: Better standards in PHP-coding

2002-04-23 Thread Ford, Mike [LSS]
-Original Message- From: michael kimsal [mailto:[EMAIL PROTECTED]] Sent: 21 April 2002 04:17 Second, *HOW MANY* PHP statements can be followed by a { ? I can think of three if (foo) { function foo () { class foo { Maybe there's one more that I'm missing [...] Off the top

RE: [PHP] variable question...

2002-04-16 Thread Ford, Mike [LSS]
-Original Message- From: Justin Blake [mailto:[EMAIL PROTECTED]] Sent: 16 April 2002 09:43 You can use variable variable names by adding another '$'. so if $i == 1 and $var1 == one, you can do this: $var_name = var.$i; if($$var_name == one) echo Hello!; That should work, So

RE: [PHP] Problem with strtotime() and 2002-03-31

2002-03-22 Thread Ford, Mike [LSS]
-Original Message- From: John Clarke [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 00:40 I have used the following script successfully for a year now, but have just found a problem with the date 2002-03-31. Any ideas why this would be happening? function

RE: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Ford, Mike [LSS]
-Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: 18 March 2002 08:20 $your_timestamp+=gmmktime(0,0,0,1,1,1972); Well, that depends on your definition of year -- the problem here is that it makes no allowances for leap years, so (for example) 2-mar-2003

RE: [PHP] $_SESSION / Windows doesn't work!?

2002-03-18 Thread Ford, Mike [LSS]
-Original Message- From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]] Sent: 18 March 2002 05:11 I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version. But it seems that $_SESSION doesn't work, even in the simplest samples like; I think this is acknowledged as broken

RE: [PHP] require() vs include()

2002-03-15 Thread Ford, Mike [LSS]
-Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: 15 March 2002 00:55 Plus, depending on how you are calling the file. Meaning if the file name that you are calling is a static file name or dynamic file name require() and require_once() will include a

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Ford, Mike [LSS]
-Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 11:51 Hi friend, I need some help on this logic... 1. I have some range (A to B) which is fixed and A,B are very large numbers.(AB) 2. I have X to Y and I want to check this range

RE: [PHP] getting values from multiple select

2002-03-14 Thread Ford, Mike [LSS]
-Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 21:32 I am working on a javascript box that will allow the user to drag values from one select box to another. I will use this box to set the values. This is a standard, multiple select

RE: [PHP] session OR variables

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 21:23 I have a question. I am working on a submit form that will ask you for confirmation of info. I.e. I need to move values submitted via form through 2 different pages. One of the ways to

RE: [PHP] Persistent Links help needed

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 00:51 Hi All, I have multiple PHP pages and make my connection to the MySQl db in one of these pages. When I go to the next one any mysql commands seem not to work - it look like the

RE: [PHP] include() .htaccess

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Patrick Teague [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 10:48 I'm having problems with .htaccess files setting up the php_value include_dir on both my development test servers. I'm using php4 under apache on win2k for development php4 under

RE: [PHP] Array

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 08:40 I have one small problem. I have array e.g $array but I don't know how to finding arguments and values of this array. e.g $array[aa] = 1; $array[ab] = some; ... and script send

RE: [PHP] registering $_REQUEST variables as session variables.

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Gonzalez, Zara E [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 17:54 I was just wondering if anyone knew an easy way to register all $_REQUEST variables as session variables. I haven't seen this solution on the list, but what about: foreach ($_REQUEST

RE: [PHP] register_globals and E_ALL error reporting

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Ellerbrock [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 14:25 The following code generates a warning when register_globals=off and error reporting is set to E_ALL. How do I define the constant in another way not to generate a warning? This is

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 16:02 I have a global array $mtxt that is created in my script. I have a function from which I want to access a value from that array: $mtxt[1] = Test; $text = $GLOBALS['mtxt[1]']; Except

RE: [PHP] Comparing two dynamic dates

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Erick [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 01:47 I've been working on this for a little while now, without success. I want to compare the current date to a certain recurring date (ie: compare todays date to the date of the second Sunday of

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 17:12 Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't understand why you think it is illogical. How else would you dereference a

RE: [PHP] Calling a Variable in a weird Way

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 05:52 for ($i=1; $i 12; $i++) { echo state_$i; // This would print out either Yes No or Maybe. } Close -- it's actually: echo ${state_$i}; (For the record, these are

RE: [PHP] HELP UNIX vs Windows

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 02:26 The problem is that on the windows platform all information is returned. On the linux platform the $Details variable is not populated. The nothing changes...so what could it be.

RE: [PHP] File/Directory Permissions

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Alan McFarlane [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 03:20 I've seen and successfully used the built-in function 'mkdir()' on several occasions, but I am having trouble understanding the mode parameter. I've seen 0771, 0775 and 0777 used on

RE: [PHP] Re: REQUEST QUESTION

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 17:52 [] I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Then you're very

RE: [PHP] include() and paths

2002-03-05 Thread Ford, Mike [LSS]
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 17:30 To: PHP-General Subject: Re: [PHP] include() and paths -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Winfield declared I didn't catch the first part of this

RE: [PHP] Help with Array Walk

2002-02-28 Thread Ford, Mike [LSS]
-Original Message- From: Vidyut Luther [mailto:[EMAIL PROTECTED]] Sent: 28 February 2002 01:27 but when i do. array_walk ($fieldname, '$check-is_allletters'); I get the error. Warning: Unable to call $check-is_allletters() - function does not exist . RTFM:

RE: [PHP] Help with Array Walk

2002-02-28 Thread Ford, Mike [LSS]
-Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]] Sent: 28 February 2002 12:16 So you want: array_walk ($fieldname, array($check,'is_allletters'); OOPS! Make that: array_walk ($fieldname, array($check,'is_allletters')); But you'd have figured that out

RE: [PHP] maximum string length

2002-02-27 Thread Ford, Mike [LSS]
-Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: 27 February 2002 17:26 It may be able to store 8MB, but each line can only hold 1024 characters. I ran into this using a string variable to store the message body of an HTML email. If I did not put a '\n'

RE: [PHP] Fetching the values from previous page

2002-02-26 Thread Ford, Mike [LSS]
-Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: 25 February 2002 18:04 There are global variables that serve this purpose. You must have register_globals turned on: Actually, no -- that's the wrong way round. The associative arrays are always there --

RE: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Ford, Mike [LSS]
-Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] Sent: 25 February 2002 14:09 I put and the POST method but I have the same problem I don't know why, any ideas? Thank you -Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]

RE: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Ford, Mike [LSS]
-Original Message- From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]] Sent: 25 February 2002 14:35 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Problem about Reading input from a Form I set the register_globals On in the php.ini file but when i do php.info it

RE: [PHP] Bizarre problem.

2002-02-21 Thread Ford, Mike [LSS]
-Original Message- From: Andres Plaza R. [mailto:[EMAIL PROTECTED]] Sent: 20 February 2002 20:55 [...] BUT, the other day I used vi to see the debug.log, and the error appears like this: gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI

RE: [PHP] NULL Apache environment variables

2002-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 5:58 PM To: Lars Torben Wilson Hm? I didn't think that this was the case -- I thought that although there is a long-term move to making 'register_globals = off' default,

RE: [PHP] PHP_SELF Undefined

2002-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Matt [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 23:30 To: Lars Torben Wilson $foo = This page is $_SERVER[PHP_SELF]; Or, better: $foo = This page is {$_SERVER['PHP_SELF']}; You do have to concat to do this in single-quoted

RE: [PHP] Novice Question

2002-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 22:44 To: 'JSheble'; [EMAIL PROTECTED] window.document.frmName.elements[poly[]].value !!! This should also work (well, it has for me in the past!): window.document.frmName[poly[]].value

RE: [PHP] What Do You Think?

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 19:52 Not only can I hardly find a place with Tetley's on tap, I can hardly find it in stores! LOVE Tetley's. Er -- should I mention here that I live and work within walking distance of the

RE: [PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Ron Dyck [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 13:38 [... snip working example] but, this doesn't: function myFunction() { foreach($_POST as $key=$value) { if (empty($$key)) { print empty value $keybr; } } }

RE: [PHP] Returning table rows from MySQL

2002-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Scott Saraniero [mailto:[EMAIL PROTECTED]] Sent: 18 February 2002 18:02 To: [EMAIL PROTECTED] I've got a piece of code below that works great for me. Now I would like to modify the rows with alternating colors in the displayed results. Any suggestions

RE: [PHP] Looking for optimal coding

2002-02-15 Thread Ford, Mike [LSS]
-Original Message- From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 09:00 i would try: for($i=01;$i=50;$i++) { if(!empty($content) $row[$content] == $states[$i]) $selected = selected; elseif($dstate == $states[$i])

RE: [PHP] Using functions before they're defined

2002-02-08 Thread Ford, Mike [LSS]
-Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 22:17 To: [EMAIL PROTECTED] Subject: RE: [PHP] Using functions before they're defined I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the

RE: [PHP] Re: One form - Two emails, I need some help please

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Matt Schroebel [mailto:[EMAIL PROTECTED]] Sent: 29 January 2002 16:33 And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing second equal sign. This won't parse: (true = $PHP_MAIL_FORM) Why even bother with the inefficient

RE: [PHP] HTML lists PHP

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 22:02 I keep getting parse error with this code: ($teams[] is a big array that I got by using mysql_fetch_array) $r = game; echo select name='game'; echo option

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Nicolas Costes [mailto:[EMAIL PROTECTED]] Sent: 30 January 2002 10:19 And for more security, I use a JavaScript MD5 function to encrypt the provided password in the user's browser so it goes already encrypted on the net ... Then PHP's just got to

RE: [PHP] quick question

2002-01-11 Thread Ford, Mike [LSS]
']; but unfortunately, this isn't working. No, of course not -- I repeat: On Thursday, January 10, 2002, at 08:18 AM, Ford, Mike [LSS] wrote: But, if you insist on the quotes, it needs to be: case {$_POST['insert']} to ensure that the array index gets processed properly. Please note

RE: [PHP] A variable with a variable

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Yoed [mailto:[EMAIL PROTECTED]] Sent: 10 January 2002 23:01 I never really found the trick to this one yet, and wanted to see what you guys say is the best methods to call a variable that needs a variable. Say I have variables called $Var_1_Stat,

RE: [PHP] Sizeof variable variable arrays

2002-01-11 Thread Ford, Mike [LSS]
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: 11 January 2002 12:03 Who's awake today then? :) What I'm trying to do is create variable variable arrays and then fill these arrays with values. The problem I have though is that the values don't appear to be

RE: [PHP] serial array vs. hash....

2002-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Eric McKeown [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 05:53 I could store the list in a conventional serial array... $valid[0] = Valid One; $valid[1] = Valid Two; $valid[2] = Valid Three; . and so on, and then use a for loop to iterate

RE: [PHP] quick question

2002-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 19:22 I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed with GET and POST forms.

RE: [PHP] Array Creation

2002-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: 09 January 2002 20:56 while (!feof ($fp)) { $line = fgets($fp, 4096); $data = explode(,, str_replace(\, , $line)); //using str_replace to get rid of quote marks //following line to

RE: [PHP] Question about Php/Mysql. Unsure if it's enabled.

2002-01-08 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 January 2002 07:15 Ok, basically I only configured php with apxs However, I noticed the mysql was supported (It said so on php info page) How is that possible? MySQL support is built in to PHP.

RE: [PHP] POSTing HTML into a database

2002-01-08 Thread Ford, Mike [LSS]
-Original Message- From: James Arthur [mailto:[EMAIL PROTECTED]] Sent: 07 January 2002 21:41 snip For example, consider the string $body = I am saying \Hello\; input type=hidden name=body value=?=$body is interpreted by the browser as input type=hidden name=body value=I am

<    2   3   4   5   6   7