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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] need help converting code to more efficient loop

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]] Sent: 09 March 2002 10:08 To: PHP Mailing List Subject: [PHP] need help converting code to more efficient loop Hello! I am trying to reduce the size of the code below, which I believe can be simplified. I

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] 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] 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] 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] 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] Setting Cookies

2002-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Scott 'INtense!' Reismanis [mailto:[EMAIL PROTECTED]] Sent: 08 June 2002 04:52 Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username,

RE: [PHP] vars and ocibindbyname

2002-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Laurent Drouet To: [EMAIL PROTECTED] I use Php 4.0.6 with oci and when I try to use OcibindByname php function I receive the following warning : Warning: Call-time pass-by-reference has been deprecated . The problem is that this function requires the use of

RE: [PHP] Newbie problem with POST vars

2002-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Remy Dufour [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 14:34 If you do this, it should work function foo() { global $_POST; That's unnecessary -- the $_ arrays are automatically global (superglobal). reset($_POST); That's unnecessary --

RE: [PHP] Extracting Variables

2002-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 15:54 I hope that someone will be kind enough to help me on this. snip I want to do something like the following, but it does not work: testinput(); function testinput(){ GLOBAL

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]] Sent: 13 June 2002 17:27 How can I access the value of a variable whose name is stored in another variable? Example: $field=artist; How can I access the value of $artist ? $$field Cheers! Mike

RE: [PHP] question about ? :

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Lee Doolan [mailto:[EMAIL PROTECTED]] Sent: 14 June 2002 01:25 Miguel == Miguel Cruz [EMAIL PROTECTED] writes: Miguel Why does this: Miguel $x = 3 + 5 * 7; Miguel produce different results from this: Miguel $x = (3 + 5) * 7;

RE: [PHP] PHP Installation Win98/Apache error....

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: 14 June 2002 22:01 So I'm trying to install PHP on win98 with Apache2. I got these nice instructions from... http://www.webmasterbase.com/article.php?pid=30aid=525 After I make the following

RE: [PHP] PLEASE HELP! session variable fails to persist!!

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Zlutarch G. [mailto:[EMAIL PROTECTED]] Sent: 15 June 2002 00:54 My session variables won't persist, could someone help me with this problem? PHP version? (If =4.0.6, $_SESSION doesn't exist.) Which Web server? Version? I spent all day trying to

RE: Re[2]: [PHP] beginner in PHP

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Stuart Dallas [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:53 PM To: Phillip Perry Cc: Tim Ward; Martin Towell; Tom Rogers; Php Subject: Re[2]: [PHP] beginner in PHP On Thursday, June 13, 2002 at 7:44:39 PM, you wrote: Yes, here is the

RE: [PHP] substr?

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: 17 June 2002 21:24 To: 'Chris Knipe'; [EMAIL PROTECTED] Subject: RE: [PHP] substr? Here's another way of writing that code that may be easier to work with: $TestValues = array(072, 073, 082, 083, 084);

RE: [PHP] substr?

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: 17 June 2002 09:28 Is this right? It seems to me that substr is working in reverse? $string = 1234567890; // Always numerical, always 10 chars. if (!substr($string, 0, -7) == 083) { echo not 083\n; } else

RE: [PHP] sessions trouble

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Leston Drake [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 18:48 I am unable to retrieve session variables on my local server. [snp] On another server (http://www.lpsoftware.com/phptest/test5.php) it works as expected. But I can't figure out why it

RE: [PHP] session code in class problem

2002-06-20 Thread Ford, Mike [LSS]
-Original Message- From: Mark Colvin [mailto:[EMAIL PROTECTED]] Sent: 20 June 2002 16:48 I have the following .php script and .inc file which doesn't work: = .inc file = ?PHP class Sessions { function Check_Session() session_start(); if

RE: [PHP] Error(Newbie)

2002-06-24 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 June 2002 15:19 when I try and view stat.php I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To PHP)\includes\stat.php on

RE: [PHP] function definition causing problems?

2002-06-24 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 24 June 2002 18:12 On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote: When you echo out an array element, the name needs to be enclosed in curlies, e.g., echo {$_SERVER['PHP_SELF']} I think

RE: [PHP] Need Help with $_SESSION.

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 20:58 Still working on the script. Here what I found out so far. Why does the example #1 work and example #2 doesn't? Example #1 Page 1 $_SESSION[0] = Zero; $_SESSION[1] = One;

RE: [PHP] Re: Does Location: headers constantly

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 21:17 [...] It's a good idea to get in the habit of doing: header(Location: xxx); exit; There's no point in sending any more data after the Location: header anyway, I can't let this go

RE: [PHP] adding a variable to a variable name

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 21:41 For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't

RE: [PHP] Re: if syntax

2002-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 10:54 The alternate syntax with the colons is passe -- I think you'd have to dig pretty deep to find a script old enough that uses it for anything other than demonstration purposes. (Rasmus?)

RE: [PHP] another splice?

2002-07-11 Thread Ford, Mike [LSS]
-Original Message- From: David Duong [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 22:57 Is their 1 function method to remove an element within an array using its key instead of its position within the element? You mean like unset($arr[$n]) ?? Cheers! Mike

RE: [PHP] Re: if syntax

2002-07-12 Thread Ford, Mike [LSS]
-Original Message- From: Chris Earle [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 18:28 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: if syntax when it would be just as easy, and more functional, to write this (even saves a few characters, too!): if (x):

RE: [PHP] Re: if syntax

2002-07-12 Thread Ford, Mike [LSS]
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 23:38 [] I apologize profusely to the fans of the alternative syntax who are still using it. I personally find the endxxx; to be more of an eyesore, but that's a religious argument. :-)

RE: [PHP] php + javascript hard day together ?

2002-07-16 Thread Ford, Mike [LSS]
-Original Message- From: David D [mailto:[EMAIL PROTECTED]] Sent: 13 July 2002 16:38 I can manage this script to work. Js warn about listid[], he doesnt like [] in a var name ! Php needs them to collect an array from form checkboxes. form name=test action=check.php input

RE: [PHP] IF inside LOOP?

2002-07-17 Thread Ford, Mike [LSS]
-Original Message- From: C├ęsar Aracena [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 03:04 This is what I have so far: for ($m=0; $m$num_rows2; $m++) { $row2 = mysql_fetch_array($result2); echo $row2[devlanguage]; if ($m $num_rows2) { echo , ; } else { echo .; }

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] 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] 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] 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] 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] 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] windows development - linux production

2002-04-30 Thread Ford, Mike [LSS]
-Original Message- From: Lee P Reilly [mailto:[EMAIL PROTECTED]] Sent: 29 April 2002 22:06 Just a quick question. I'm developing on a Windows machine right now, and will later move it onto Linux. Should I expect to run into major difficulty at all? I anticipate a few problems -

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] PHP Editors

2002-05-01 Thread Ford, Mike [LSS]
-Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 30 April 2002 19:11 Does anybody know of any PHP project editors, something that will group together all the PHP, INC, HTML, CSS files together into one logical project? Preferrably freeware/shareware,

RE: [PHP] Cannot add header information

2002-05-01 Thread Ford, Mike [LSS]
-Original Message- From: Bo Pritchard [mailto:[EMAIL PROTECTED]] Sent: 01 May 2002 14:29 Warning: Cannot add header information - headers already sent by (output started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in

RE: [PHP] Hashes in strings

2002-05-02 Thread Ford, Mike [LSS]
-Original Message- From: Ferry van Steen [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 09:42 why do these work: $vars = vars; $ar[0] = arrays; $hash['vars'] = hashes; str = I can use $vars in strings; str = I can use $ar[0] in string; while this one doesn't: str = I can NOT

RE: [PHP] Nitpicking - PHP 4.2.0 for windows says version is 4.1.2

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Garth Dahlstrom [mailto:[EMAIL PROTECTED]] Sent: 09 May 2002 19:48 Anyone notice this... when you do a ? phpinfo(); ? you get PHP Version 4.1.2, while my apache window says Apache/1.3.20 (Win32) PHP/4.2.0 running... Uh -- the response to the bug

RE: [PHP] register_globals in php4

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: 09 May 2002 23:09 Hmm. No offense ..., but I don't believe turning Registered Globals off will have any effect on security. Turning Registered Globals off just provides a more strict environment for coding.

RE: [PHP] Re: why doesn't $books[$val][display] show the value

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 06:40 [] http://www.php.net/manual/en/language.types.string.php#language.types. string.parsing Where I see this example (in complex syntax section): // This is wrong for the same

RE: [PHP] Free array

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 12:01 Hello! I'm working with an array (about 20 MB), which is shifted to several other arrays and so on. When I shift a array to another, I don't need to source-array anymore. PHP is able to

RE: [PHP] Destroying Sessions

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 04:38 Just to clarify myself above... if ($var1 = $var2) { . In my crazy head, I see $var1 and $var2 to be in a sort of read-only state inside the () of the if statement. For a if statement

RE: [PHP] register_globals in php4

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 12:36 You meant it the other way around, didn't you? :) Er, yes! ;) (I cut-and-pasted one example to create the other, and then changed the wrong on to off!!) Cheers! Mike

RE: [PHP] register_globals in php4

2002-05-10 Thread Ford, Mike [LSS]
-Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 12:54 To: 'Zeev Suraski' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] register_globals in php4 -Original Message- From: Zeev Suraski [mailto:[EMAIL PROTECTED]] Sent: 10 May 2002 12:36

RE: [PHP] dynamically named variables?

2002-05-23 Thread Ford, Mike [LSS]
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 17:32 I've been looking at the php manual section on variable variables but I don't think i either a) understand it, or b) it isn't what I need. Here's the coup: I have a bunch of post vars,

RE: [PHP] Leading zeroes

2002-05-23 Thread Ford, Mike [LSS]
-Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 17:26 Does anybody have a clever and efficient way of getting rid of leading zeroes in a string? From version 4.1.0, $str = ltrim($str, '0') (see http://www.php.net/manual/en/function.ltrim.php).

RE: [PHP] Leading zeroes

2002-05-24 Thread Ford, Mike [LSS]
-Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 18:49 From version 4.1.0, $str = ltrim($str, '0') This works excellently. Thanks. One problem that I didn't think of, though: If the number is 0 (only 0), then the string ends up being empty. Is

  1   2   3   4   5   6   7   >