RE: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:39 I'm not sure that there is a way beyond this to show the line within the function but I don't see that this would be necessary - at least not for resolving errors. i'm building a class

RE: [PHP] How to find if a string is an integer?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Alex Earl [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 21:13 Jumping in a little late here, but what about is_numeric()? Haven't tried it, but the php manual for is_int says: Note: To test if a variable is a number or a numeric string (such as form

RE: [PHP] make a variable not exist?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Amanda McComb [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 22:21 Is there a way to make a variable not exist? There are several places where I test (!$variable), and I want to be able to change the variable to pass that test, even though it exists, under

RE: [PHP] POST detection

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Johnny Martinez [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 00:49 Will this work for $_GET as well? Yup. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:14 PM if ($_POST) {

RE: [PHP] regarding ?php ? tags

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Ulrik NIelsen [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 13:25 Does any og you know why it's not possible to use the syntax: ?php=$something? when you can use this: ?=$something? This has been discussed more than once by the PHP developers, and

RE: [PHP] Variable variables question?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas To: [EMAIL PROTECTED] To get the superglobal array ($_GET or $_POST), I try to build these strings '_'.$method. I'm sure this part works, PHP builds the string _GET or _POST according to the $method parameter. I use ${'_'.$method} to get the

RE: [PHP] Sessions and login

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 14:09 session_register('user'); $_SESSION['user'] = ebusUser; Just one other quick point here: if you use the $_SESSION array, you don't need to -- and, in fact, should not -- use

RE: [PHP] undefined variable: action

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Ryan M [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 20:22 Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the

RE: [PHP] PHP Email....

2003-06-12 Thread Ford, Mike [LSS]
-Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED] Sent: 12 June 2003 11:42 Kinda... I get it to return one line... The code: ?php define('STDIN',fopen(php://stdin,r)); $str = fgets(STDIN); mail([EMAIL PROTECTED],Test,Test Test...\n\nOriginal

RE: [PHP] Switch function problem

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Stephen Goddard [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 12:48 To: [EMAIL PROTECTED] Subject: [PHP] Switch function problem Hi Folks, Anyone know if you can use operators in a switch function? eg. No. Do this: switch ($category){ case

RE: [PHP] shorthand if notation

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: adrian GREEMAN [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 15:23 I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum ? $bkgndClass = $bkgndClass == darkBkgnd ? liteBkgnd : darkBkgnd; } ? I think

RE: [PHP] Sessions and login

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Wim Paulussen [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 14:28 page 1 : login.php input user name - Post veriable input password- post variable page 2 : verify.php session_start() // supposing name is entered if (!$_POST['password'] == )

RE: [PHP] sessions, IE and pop-up windows

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason k Larson [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 22:23 Try adding the SessionID to the URL. openEdit(add=eventamp;cellid=10amp;?PHP echo Session_Name ().'='.Session_ID();?); or a little better: $thisSession =

RE: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 09 June 2003 23:54 - Original Message - From: Emma Jane Hogbin [EMAIL PROTECTED] To: [EMAIL PROTECTED] What ended up working was passing the session ID to the pop-up window manually by including it

RE: [PHP] PHP/Javascript Help

2003-06-10 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 15:48 Thanks for your reply. I had actually made a mistake in the code. It looks like this now: How could I still use the id thing on this? Well, the addition of the stripslashes() call

RE: [PHP] Advice on script length please!

2003-06-06 Thread Ford, Mike [LSS]
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 13:36 [snip] If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than

RE: [PHP] Using the .htaccess file to extend the php.ini include path entry

2003-06-06 Thread Ford, Mike [LSS]
-Original Message- From: Saint Urho [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 20:14 I want to add some directories to the include path entry in the php.ini file. I have to do this via the .htaccess file because I do not have access to the php.ini file on the server. Will

RE: [PHP] PHP/Javascript Help

2003-06-06 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 19:15 Here's my javascript link code for each day of the month in the calendar script: print a href=\#\ onClick=\window.opener.document..$HTTP_GET_VARS['name']..da te.value='$y-$m-$d';\$d/a;

RE: [PHP] Re: move_uploaded_file 1MB

2003-06-06 Thread Ford, Mike [LSS]
-Original Message- From: MaurĂ­cio Valente [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 21:56 I couldn't find the option max_body_request somebody knows where it is? There's no such option -- you could be looking for post_max_size in php.ini, or the LimitRequestBody directive in

RE: [PHP] insert loop logic

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 23:25 I am getting values from a form's checkboxes (eg input type=checkbox name='id[]' value=1 input type=checkbox name='id[]' value=2 etc) When i get these values I want to enter them into the

RE: [PHP] Registered sessions.

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 13:37 You need to append the session name and id to the header location everytime you redirect that way. So your header redirect should read: header('Location:

RE: [PHP] setlocale() changes?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 14:33 I've been getting a warning on one of my scripts since I upgraded from 4.1.2 to the most recent version of PHP. The warning is: Warning: setlocale(): Passing locale category name

RE: [PHP] Is gd present?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Esteban Fernandez [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:09 Also works... :) ?php $array = get_loaded_extensions(); for ($i=0;$i=count($array);$i++) { if (gd == $array[$i]) $installed = true; else $installed = false; } This will only

RE: [PHP] function re-defined | WorkAround? [and some more Q's]

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: esctoday.com | wouter van vliet [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:11 I'm working on quite a large website with a lot of php pages.. And a lot of includable functions (modules).. Sometimes one of those modules gets included twice accidently

RE: [PHP] Is gd present?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Svein Larsen [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:22 $gd_loaded = (extension_loaded('gd'))?1:0; Well, this also fails the simple-as-possible test: if the value returned by extension_loaded() can be used to drive the ?: operator, it must be

RE: [PHP] CR in MySQL?

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: 30 May 2003 18:03 Just did a bit of checking.. NL == ASCII 010, CR == ASCII 015.. Ahh ok, so nl2br() would work. Cool, I guess you learn something new everyday. Is there a one for CR's? I noticed

RE: [PHP] Re: regex problem

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Monty [mailto:[EMAIL PROTECTED] Sent: 31 May 2003 21:21 If you want the entire string to be tested for digits, you need to add the length of the string to the regex pattern: $length = strlen($data); preg_match([0-9]{$length}, $data); Or anchor

RE: [PHP] Shipping Rates

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 18:07 To: Jim Lucas; Rasmus Lerdorf; Ralph Answering my own answer. I see now how you are extracting the sub array information. My mistake. Notwithstanding that, I think your question was a good

RE: [PHP] general questions

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Dale [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 19:43 I am new to php and I just have some general questions. 1. when you create a new variable such as an integer, is it automatically initialized or is it considered empty similar to asp? In PHP,

RE: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 06:34 To: Monty; [EMAIL PROTECTED] Subject: Re: [PHP] Cookies and Sessions: What's the Best Recipe? H, Theory only here: If there is a GET value of PHPSESSID (or whatever your sessions

RE: [PHP] Validating user input

2003-06-03 Thread Ford, Mike [LSS]
-Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 10:21 I am creating a timesheet application, how can I make sure that a user has entered a number, and that the number is a whole number or a decimal up to 2 places, and that the number is less than 24?

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Wendell Brown [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:18 On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: Well, how about references, then? (And me, personally, I'd use isset() rather than is_array().) if (isset

RE: [PHP] Date question

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:40 of course ;) but i couldn't find a reference to this particular problem... Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Have you checked the date functions at

RE: [PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Dave O Keeffe [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:28 I read in the ChangeLog for v4.3.2 that GD2 is bundled with this release. I downloaded and installed the Windows Installer version but my sample imagecreate code still doesn't work, it

RE: [PHP] id name when identifying html elements

2003-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Roland Tarver [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 10:07 I've got a question about about naming html components (text fields, select boxes etc) when submitting a form to a php page. First I tried identifying an element using the id attribute and

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
-Original Message- From: David Grant [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 12:47 To: Leif K-Brooks Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Variables don't pass... *sniff* Leif K-Brooks wrote: To maintain absolute compatibility, just use

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
-Original Message- From: Wendell Brown [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 15:02 On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: I would've thought that $HTTP_*_VARS will be deprecated sometime in the future. It might be an idea to write your own accessor

RE: [PHP] magic quotes

2003-04-04 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 09:26 To: Justin French [snip] What I have done is to do the addslashes/stripslashes assuming magic_quotes_runtime is off then force it off within my code beforehand with: if

RE: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283

2003-04-04 Thread Ford, Mike [LSS]
-Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: 04 April 2003 15:42 Also why can I not place these variables in line with the echo statement. If I do it doesn't work. I thought I could just echo face=$_POST['type_sel'] - but it does not work. Please read

RE: [PHP] Cookies not being read - begging php 4 chapter 8 pg 283

2003-04-04 Thread Ford, Mike [LSS]
-Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: 04 April 2003 15:44 Also when I first run this at the top I get this error... Notice: Undefined index: typeset in c:\inetpub\wwwroot\testing\cookies.php on line 4 Notice: Undefined index: size_sel in

RE: Re[2]: [PHP] newbie help, pressing the submit button returns nothing

2003-04-04 Thread Ford, Mike [LSS]
-Original Message- From: Centras [mailto:[EMAIL PROTECTED] Sent: 04 April 2003 18:58 Friday, April 4, 2003, 6:47:38 PM, you wrote: DM On Friday 04 April 2003 08:54 am, Eugene Mah wrote: At 08:24 04-04-03 -0500, you wrote: On Friday 04 April 2003 07:43 am, Petre Agenbag wrote:

RE: [PHP] Submit Image Button

2003-04-03 Thread Ford, Mike [LSS]
-Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 15:28 On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about RE: [PHP] Submit Image Button what the universal translator turned into this: Well you can ignore it if you don't need

RE: [PHP] Zip to postcode[Scanned]

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 13:05 There are some ready made scripts for dealing with UK post codes on the relevant page on the PHP site: http://www.php.net/manual/en/function.ereg.php And not one of them is 100% correct!!

RE: [PHP] getting values from objects

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: 01 April 2003 21:21 To: Dan Joseph Cc: [EMAIL PROTECTED] Subject: Re: [PHP] getting values from objects My objective was to try and NOT use a temporary variable. for example I can do this: foreach

RE: [PHP] Returning a variable from a function problem

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: ODCS [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 08:10 I have a form where the user inputs information - the code below is the error checking for one of the fields. The first IF statement just checks that the filed is not empty and works fine. Then

RE: [PHP] Html forms to php scripts

2003-04-02 Thread Ford, Mike [LSS]
-Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was

RE: [PHP] GMT strtotime() problem today!!

2003-04-01 Thread Ford, Mike [LSS]
-Original Message- From: Stuart Cochrane [mailto:[EMAIL PROTECTED] Sent: 31 March 2003 15:45 I have a script that runs on over 250 Servers, all are running NT4. here is the script: [php] function last_sunday() { return gmdate(Y-m-d, strtotime(Last Sunday)); } echo Last

RE: [PHP] Grid edit form

2003-03-28 Thread Ford, Mike [LSS]
-Original Message- From: Daniel Harik [mailto:[EMAIL PROTECTED] Sent: 28 March 2003 18:55 Jim Lucas wrote: This is untested, but I seem to recall doing something like this on a project last year. form method='post' action='/process.php' !-- row #1 -- input type=text

RE: [PHP] Sessions question

2003-03-21 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: 21 March 2003 15:59 on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote: What about cookies - someone said if you put no time limit on a cookie it dies when you leave the site - I'm not sure about

RE: [PHP] including files in PHP-pdf development

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Bill Hudspeth [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 20:07 I am developing an application that ouputs the results of a database query to a PDF file using PHP. The only real problem I have encountered is in trying to use the include and/or require

RE: [PHP] Re: str_replace

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 06:23 doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the

RE: [PHP] How to convert an array to variables?

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Charles Kline [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 18:52 I have an array that gives me this when I do: print_r($my_array); Array ( [0] = Array ( [dra_id] = 5 ) [1] = Array (

RE: [PHP] checking array

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: joe [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 23:50 what is the best way to check, if a value is NOT in an array? the purpose is to take results from a webpage and check one-by-one if they are in the txt file already. if they are not, i have to write

RE: [PHP] re: variables with

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Ian A. Gray [mailto:[EMAIL PROTECTED] Sent: 17 March 2003 15:11 Using the \ or using single quotes instead of double is great. However I am now finding a problem if someone inputs either single or double quotes on a form which uses php. The user

RE: [PHP] IF statement madness

2003-03-14 Thread Ford, Mike [LSS]
-Original Message- From: James E Hicks III [mailto:[EMAIL PROTECTED] Sent: 14 March 2003 18:22 Help save my sanity! What can I do to the IF statement in the following code to make it print the line that says By God they are equal in value.? I have tried the following changes;

RE: [PHP] Pagination Part 2

2003-03-13 Thread Ford, Mike [LSS]
-Original Message- From: conbud [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 19:12 Hi, Ive been trying to get this to work but I keep getting this error Parse error: parse error, unexpected $ in /home/conbud/nrlug/test3.php on line 72 line 72 is just the ending php

RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-13 Thread Ford, Mike [LSS]
-Original Message- From: chris [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 00:24 To: [EMAIL PROTECTED] 1. Registered globals are off. 2. Using super globals ($_SESSION instead of $HTTP_SESSION_VARS) 3. Setting via $_SESSION['var'] = $var instead of session_register('var')

RE: [PHP] sessions garbadge

2003-03-13 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 10:24 My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for testing . When i create a session on my site and i dont log out , the session var will still remain on the server

RE: [PHP] array question

2003-03-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 15:35 To: [EMAIL PROTECTED] Subject: Re: [PHP] array question On Monday 10 March 2003 21:13, Diana Castillo wrote: If I sort an array, and now the keys are not in numerical order, how can I

RE: [PHP] Undefined offset notices

2003-02-20 Thread Ford, Mike [LSS]
-Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:55 While debugging my code, that seems to work fine, I see hundreds of these notices, many different ones with different offset numbers same line number. Notice: Undefined offset: 2

RE: [PHP] sorting multi-dimensional array

2003-02-20 Thread Ford, Mike [LSS]
-Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:25 Ahhhfinally did it with usort. Thanks to those who gave me that answer. Now here is a question for that. I would like to re-use my cmp function without having to rewrite it

RE: [PHP] escaping quotes for redisplay

2003-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 18:11 PS: I am using htmlentities() on the output before displaying it in the browser, but it doesn't apply to singlequotes. Ahem! I quote from

RE: [PHP] Best way to sort a multidimentional array....

2003-02-19 Thread Ford, Mike [LSS]
-Original Message- From: Mark Cubitt [mailto:[EMAIL PROTECTED]] Sent: 19 February 2003 12:43 I need to manipulate, the following data in a number of diffierent ways I'm storing the data in a multidemensional array, the stucture of which is below, and I need to sort it by

RE: [PHP] function getting redeclared

2003-02-18 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 15:14 I have a script, registration.php, which calls require_once on the Registrant.class file mentioned in the above error message. The Registrant::setPhone() method is called more than once.

RE: [PHP] Echo # problem

2003-02-12 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED]] Sent: 12 February 2003 13:02 At 13:46 12-2-03, you wrote: The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to

RE: [PHP] Why does this happen?

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] Sent: 09 February 2003 14:39 [OP snipped] I don't know much about CF, but in plain HTML as you show here you have 3 different form input (select) fields sharing the same name. Thus the browser will transmit

RE: [PHP] Why does this happen?

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: CF High [mailto:[EMAIL PROTECTED]] Sent: 09 February 2003 20:52 Here's the deal: Let's say I have a form that requests the season schedule of a baseball team, and the team in question has twenty scheduled games all on different days. Each form row

RE: [PHP] PHP and Serach Engines...

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED]] Sent: 09 February 2003 21:12 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Serach Engines... At 22:00 9-2-2003, you wrote: Hello, How do search engines react to PHP pages? If every page of a site

RE: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003 14:13 Precisely where did you get the b in your second parameter to fopen? I didn't see it on the fopen manual page at: http://www.php.net/fopen http://www.php.net/fopen Er -- quoting from that

RE: [PHP] empty variables from a form

2003-02-07 Thread Ford, Mike [LSS]
- Original Message - From: Erich Beyrent [EMAIL PROTECTED] To: Sunfire [EMAIL PROTECTED] hi.. how would you test for an empty (unused) variable from a form.. i have a phone number split into 3 different vairiables and want to test to see if they were used in the

RE: [PHP] empty and isset

2003-02-07 Thread Ford, Mike [LSS]
-Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 21:27 actually so does empty end up testing true on an empty var... thats because empty thinks or string(0) is actually a string just blank... a trick to do with empty is use !empty which will

RE: [PHP] Sorting multidimensional arrays..

2003-02-03 Thread Ford, Mike [LSS]
-Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 19:29 I'm struggling with array_multisort, was hoping someone could give me some help. I have a multidim array, such as: $myarray[0][FIRSTNAME] = JOE $myarray[1][FIRSTNAME] = TIM

RE: [PHP] $HTTP_USER_AGENT

2003-01-30 Thread Ford, Mike [LSS]
-Original Message- From: Jan Mikes [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 15:23 do anyone know where I can get a full list of $HTTP_USER_AGENT strings ?? Try http://www.psychedelix.com/agents.html -- it's about as comprehensive as they come! Cheers! Mike

RE: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 09:13 [EMAIL PROTECTED] wrote: I modifiy my php.ini to redirect error message in log of server web and I change error_reporting = E_ALL ~E_NOTICE by error_reporting = E_ALL Now, I get

RE: [PHP] file upload question

2003-01-24 Thread Ford, Mike [LSS]
-Original Message- From: Andrew Rench [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 17:05 the following code: html body form enctype=multipart/form-data action=?= $PHP_SELF ? method =post input type=hidden name=MAX_FILE_SIZE value=1000 Send this file: input name=userfile

RE: [PHP] PHP Sessions

2003-01-21 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 10:20 Wasn't it 4.1.2 that had broken sessions? I remember one version that came out that was just broke and you had to do a bunch of workarounds to get things to work normally. Was that it?

RE: [PHP] Adding a variable to oracle that contains quotation mar ks??

2003-01-21 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 15:05 Thanks Rick Henry, but I am still unable to add single quotation marks '. When I added the \' to the variable as given below (thanks again Rick) I get the following error when

RE: [PHP] Select multiple boxes

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 18 January 2003 14:41 use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP

RE: [PHP] $_POST vars problem

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Kenneth Brill [mailto:[EMAIL PROTECTED]] Sent: 20 January 2003 15:53 I just changed my server to SSL, everything worked before that. now if I have a form with an input box (named searchstring for example) with a value of TEST, when that form is posted

RE: [PHP] Meta Refresh

2003-01-17 Thread Ford, Mike [LSS]
On Friday 17 January 2003 11:25, Edson Waite wrote: Hi All, I am trying to make an automated tour as a section of my site, using the following. ?php $NewID = $colname_earlytour + 1; ? META HTTP-EQUIV=refresh CONTENT=15 URL=early-tour.php?ID= ?php echo $NewID;?

RE: [PHP] Problems with require() and variables

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 04:33 I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself. So in view.php I have: require('/.../.../display.php');

RE: RE: [PHP] Problems with require() and variables

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 14:35 To: [EMAIL PROTECTED] Copying this back to the list, in case anyone else can contribute (although I think the attachments will be stripped -- can you make them available on a URL?).

RE: [PHP] No constants being set. HUH?

2003-01-16 Thread Ford, Mike [LSS]
-Original Message- From: Mako Shark [mailto:[EMAIL PROTECTED]] Sent: 16 January 2003 15:26 To: [EMAIL PROTECTED] Subject: [PHP] No constants being set. HUH? I just JUST installed PHP onto a new server (my first--kinda scary, new foray) and my pre-defined constants (HTTP_SERVER,

RE: [PHP] dynamic variables in a while loop?

2003-01-15 Thread Ford, Mike [LSS]
-Original Message- From: Philipp Hartmann [mailto:[EMAIL PROTECTED]] Sent: 15 January 2003 12:50 Here is what I want to do: I am getting several variables into a Php Script such as: help1 = yes / no help2 = yes / no . . . helpX = yes / no I need to check whether the

RE: [PHP] Data type issues

2003-01-14 Thread Ford, Mike [LSS]
-Original Message- From: Peter Hutnick [mailto:[EMAIL PROTECTED]] Sent: 14 January 2003 15:49 I can't get my head around dealing with all the magic that PHP does to my data. You need to read, very carefully, several times, the PHP manual section on Type Juggling:

RE: [PHP] Problem with Search Engine Friendly URLs under PHP Windows XP

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: 11 January 2003 15:48 Jonathan Chum wrote: I'm following various tutorials online that uses the PATH_INFO to do this, As far as I know, this technique doesn't work under windows... As far as I know it

RE: [PHP] Why T_error?

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 21:04 I, once I found out that register_globals isn't always one, have always done HTTP variables as like $_SESSION for session and $_POST for form vars through post. Why, if you have

RE: [PHP] SESSION variable to pass login ID

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Nova [mailto:[EMAIL PROTECTED]] Sent: 12 January 2003 20:04 This statement doesnt look right to me. if(isset($_POST['userid']) isset($_POST['pword'])){ $_SESSION['user'] = $_POST['userid']; $_SESSION['password'] = $_POST['pword']; } Nowt wong wi'

RE: [PHP] form box question

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 17:07 I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS

RE: [PHP] Re: fletcher's checksum

2003-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Dave Gervais [mailto:[EMAIL PROTECTED]] Sent: 09 January 2003 21:36 Here is the C code. There is a decode function, but I don't need it in PHP because I have a C program listening to serial port on the other end that will validate the checksum.

RE: [PHP] HEEELP...please

2003-01-10 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 01:00 All of a sudden, I get the message: Warning: Failed opening '/../lib/somefile.conf' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/www/html/index.php on line 6

RE: [PHP] Re: How can I redirect to another php page

2003-01-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason Sheets [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 02:25 You should always use the exit after a redirect, the browser is not required to go to the new location. If you do not exit your script after you redirect and the browser does not go to

RE: [PHP] fletcher's checksum

2003-01-09 Thread Ford, Mike [LSS]
-Original Message- From: Dave Gervais [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 19:11 Does anybody know how to implement the 8 and 16 bit versions of Fletcher's checksum using PHP? I hit google and came up dry. It's easy enough to find how to do it in C, but PHP if a

RE: [PHP] float precision

2003-01-09 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Avila [mailto:[EMAIL PROTECTED]] Sent: 09 January 2003 04:33 I'm having a weird issue with float precision. I am decrementing the value of a float by 0.1. The problem is when the float I am working with reaches 0.1 and I decrement it again I

RE: [PHP] Sessions error

2003-01-08 Thread Ford, Mike [LSS]
-Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 01:23 I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the

RE: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Ford, Mike [LSS]
-Original Message- From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] Sent: 06 January 2003 17:12 Ok here is what I did but it does not do anything. I verified that is opening the file ok and everything, but it shows nothing. It doesn't even produce an error. I am sure there

RE: [PHP] One more form question

2003-01-04 Thread Ford, Mike [LSS]
-Original Message- From: David Chamberlin To: [EMAIL PROTECTED] Is there an easy way to set something in a select list to be selected? Right now I'm doing a real brute-force method. e.g., echo tdselect name=\disp_address\; $choices = array( 'pub' = 'On Public Page',

RE: [PHP] mktime() and the format of the day number entry

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: 02 January 2003 23:29 The month behaves the same: both '08' and '09' are treated as zero by mktime(). A leading 0 on a number denotes it as octal. 08 and 09 are not valid octal numbers. PHP is interpreting as

RE: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent To: [EMAIL PROTECTED] echo action = .$_POST[action].BR; if ($_POST[action] == 1 || $_POST[action] == 0) echo = UPDATE Company SET Enabled = .!(intval($_POST[action])). WHERE CompanyID = $id; I cannot figure out how to simply make the 0 and 1

RE: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Adam Wilson To: [EMAIL PROTECTED] I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at

<    3   4   5   6   7   8   9   10   11   >