RE: [PHP] Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Schwartz [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 18:52 The PHP site (under Servers-Apache 2.0) says Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows Well, that's a clumsily-worded sentence all around (I

RE: [PHP] have some free time?

2003-07-02 Thread Ford, Mike [LSS]
-Original Message- From: Kyle Babich [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 00:19 I think this is short example of my problem... ?php $name = 'kyle'; function hello() { print 'hello ' . $name; $x = 1; } function bye() { if ($x == 1) print 'x = 1';

RE: [PHP] list() with unknown number of values

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 21:40 I want to write a function that manipulates each piece of data in an array (except for the first). Right now I'm using list as follows from this array: $cdata = array(

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 22:47 On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: Having said this, I suspect that you and I will continue to disagree, which is perfectly okay. If this list changes the default I will

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 12:55 On Tuesday 01 July 2003 18:08, Ford, Mike [LSS] wrote: Watch your quoting attributions -- I didn't say this first bit, Derick did: You'll have to learn to adjust then I guess. And do those

RE: [PHP] Reg Ex to search for both Integer and Comma-spaced Integer

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 18:07 $string = Mark's average score was 544.; preg_match(/average score was ([0-9]+)/, $string, $matches); $score = $matches(1); $string = Julie's average score was 10,443.; preg_match(/average

RE: [PHP] Re: IsSet() and $_SESSION

2003-06-30 Thread Ford, Mike [LSS]
-Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 15:14 To: [EMAIL PROTECTED] Subject: [PHP] Re: IsSet() and $_SESSION None of these worked for me. ok, if you look at the code, the part where echo $_SESSION['uid']; is actually works. I get a

RE: [PHP] MySQL Query

2003-06-30 Thread Ford, Mike [LSS]
-Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 19:10 Can someone tell me what is wrong with the following querys ? I am pretty sure its got something to do with the quotes around $_POST[] variables. $sql1 = SELECT * from `admin`

RE: [PHP] Strange output issue

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: John Luxford [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 18:15 Thanks for the info. The problem is that I'm trying to output an M3U file to stream a series of MP3s, and some players won't properly parse the output due to the first line containing that

RE: [PHP] Impossible bug! (fwd)

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 22:14 Hmph, just not quite doing the trick... If you'd be so kind here is the complete source to give you a little bigger picture. As you can probably see the point of the script is to generate a

RE: [PHP] unexpected return from $_POST['foo']

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 09:51 If I type blueberry_muffins into the text field and click submit, the resulting output is as follows... blueberry_muffinswakka=blueberry_muffins However the output I expected was, of

RE: [PHP] Sessions Question

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Bob Irwin [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 08:01 Oops. Forgot to remove the Re: - it was a new thread - I just replied to an old message to get the php list email address That's exactly what you shouldn't do. Most newsreaders, and some

RE: [PHP] [] operator not supported for strings

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 11:18 Can anyone tell me why i'm getting this error? Fatal error: [] operator not supported for strings in c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41 [code]:

RE: [PHP] Setting focus on a textfield

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Marek Kilimajer A little corection Ernest E Vogelsinger wrote: At 09:42 20.03.2003, Angelo Zanetti said: [snip] Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page

RE: [PHP] Constants in heredoc strings?

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Stewart Is there a way to expand constants in heredoc strings without assigning the constant's value to a variable first? -- No. Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Weird mktime problem

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Glenn [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 14:58 [] Here is what's weired. I use these lines to get the specifics: $StartHour = substr($StartTime, 0, 2); $StartMinute = substr($StartTime, 3, 2); $EndHour = substr($EndTime, 0, 2);

RE: [PHP] quotes

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Lso . [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:32 ok i see why i didnt work but i dont know why. can anyone tell me why this works: input name=testfield type=text value=? echo htmlentities($company) ? but this doesn't: echo input

RE: [PHP] Re:[PHP] Array Info

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Haseeb [mailto:[EMAIL PROTECTED] Sent: 26 June 2001 22:56 ps. sprry for beaking thread but i am not subscribed to any news server.using outlook exp and don't know how to configure it. At least configure your system's clock, please -- it's currently 2 years

RE: [PHP] Weird mktime problem

2003-06-26 Thread Ford, Mike [LSS]
Ooops! Make that: ?php $timestamp = 1056405600; echo GMT = , gmdate(Y-m-d H:i:s, $timestamp), br /\n; echo local = , date(Y-m-d H:i:s, $timestamp), br /\n; ? -Original Message- From: Ford, Mike [LSS] Sent: 26 June 2003 10:53 UNIX timestamps are *always* GMT -- it's

RE: [PHP] Impossible bug!

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 15:16 To: John Wulff; [EMAIL PROTECTED] Subject: Re: [PHP] Impossible bug! In additon to the previous comment about resetting $*_color, you're multiplying the decimal value by 100 to get a percentage. But

RE: [PHP] Strange output issue

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: John Luxford [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 16:44 I'm having a really strange output problem that I can't figure out. The problem is that a few characters appear prepended and appended to the body of the server response. I'm running PHP

RE: [PHP] correct syntax

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Harry Wiens [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 09:04 What would be the correct syntax? 1. $_SESSION[test] 2. $_SESSION['test'] 3. $_SESSION[test] All of these are correct depending on the context. What's your context? Cheers! Mike

RE: [PHP] Error reporting at runtime

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 12:36 I have error reporting turned off in my php.ini file on my production server. I have an app I'm writing that I need to run on the same server (no one can see it though). Anyway. I want to turn

RE: [PHP] Re: correct syntax

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 12:02 At 10:08 25-6-03, you wrote: Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case test is a constant and must be defined by calling define(test,

RE: [PHP] Manners and Heritage

2003-06-24 Thread Ford, Mike [LSS]
-Original Message- From: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 08:48 According to Hackers Jargon RTFM: /R·T·F·M/, imp. [Unix] Abbreviation for 'Read The Fucking Manual'. 1. Used by gurus to brush off questions they consider trivial or annoying.

RE: [PHP] PHP parser extension?

2003-06-24 Thread Ford, Mike [LSS]
-Original Message- From: anzenews [mailto:[EMAIL PROTECTED] Sent: 23 June 2003 11:21 I hope this is the right newsgroup for posting this... PHP.dev doesn't seem to be alive anymore? It was renamed 'internals' a while ago (see http://www.php.net/mailing-lists.php). Cheers! Mike

RE: [PHP] Passing Date/Time

2003-06-23 Thread Ford, Mike [LSS]
-Original Message- From: Kyle Babich [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 17:55 I have a input field in a form that is disabled by javascript but is assigned a value in the code that is the RFC 822 formated date. Why is this field not included in the $HTTP_POST_VARS?

RE: [PHP] Convert KB to MB?

2003-06-23 Thread Ford, Mike [LSS]
-Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: 22 June 2003 01:27 Actually, if we want too go into details, according to the international standard for units, there is a big difference in 'M' and 'm'. 'M' means Mega and 'm' means milli. You are probably

RE: [PHP] Getting at $_POST values using a loop

2003-06-23 Thread Ford, Mike [LSS]
-Original Message- From: Dave Alger [mailto:[EMAIL PROTECTED] Sent: 23 June 2003 05:12 This one is causing me a few headaches. How should I be doing this? On my previous page I've created a series of fields using a loop so that a field is created like this: echo

RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on

2003-06-20 Thread Ford, Mike [LSS]
-Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 20:31 To: [EMAIL PROTECTED] Subject: [PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on A heads-up to those who are moving old code with register_globals on to a server

RE: [PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Ford, Mike [LSS]
-Original Message- From: Robby Ku [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 08:25 Thanks for the fast response given. I tried both Jan's and Martin's method but it won't solve the problem. I've tried to change register_globals = On in php.ini and i got the same result.

RE: [PHP] error with null $HTTP_GET_VARS['field']

2003-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Logan McKinley [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 19:55 right now if a the 'field' key does not exist at all in the querystring it returns the following error: Notice: Undefined index: Register in c:\inetpub\wwwroot\PHP\Register.php on line 3

RE: [PHP] Array in a $_session

2003-06-17 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 07:48 Maybe you can make it a little bit clear for me? You have not defined $i, so what did you expect to see here? session_start(); $aantalpers=$_SESSION[aantalpers]; $test1 =

RE: [PHP] go through array

2003-06-17 Thread Ford, Mike [LSS]
-Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 17:43 I have this array: Array ( [2] = 6 [1] = 2 [3] = 2 ) how do I go through it and get the key and the value in this order? foreach ($array as $key=$value) (See www.php.net/foreach).

RE: [PHP] Variable variables question?

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas [mailto:[EMAIL PROTECTED] Sent: 14 June 2003 00:57 Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. Then why not just make it: $var =

RE: [PHP] Very Weird Problem Continued

2003-06-16 Thread Ford, Mike [LSS]
-Original Message- From: James Hicks [mailto:[EMAIL PROTECTED] Sent: 15 June 2003 14:44 The following variable needs to be escaped before it can be submitted as an MySQL query. It seems that the \0 in this string is causing me the problem. I have tried several functions in an

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.

<    1   2   3   4   5   6   7   >