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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] Break, Exit, Die, Kill, Maime and Stab

2003-07-03 Thread Ford, Mike [LSS]
-Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 22:47 Technically you are not outside of a function. you need to use one of the include or require functions to include the file right? include and require are not functions -- they are language

RE: [PHP] Calculating Largest Member of Array

2003-07-03 Thread Ford, Mike [LSS]
-Original Message- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 21:26 Sorry for the multiple post!! Apparently when pasting I hit some magic send key.I'd like to calculate the largest member of this array without taking into account the first value which is

RE: [PHP] stupidity check: (to disable transparent session id)

2003-07-03 Thread Ford, Mike [LSS]
-Original Message- From: Jason k Larson [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 01:21 I'm almost perfectly certain this *should* work ... can anybody shed some light on why it doesn't? $retval1 = ini_set ('session.use_trans_sid',false); or $retval1 = ini_set

RE: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-03 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Moser [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 13:07 So...why not write the entire included file as a function and then call that function instead of using include? I'd be interested, though, to hear if the return broke out of the include.

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] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 04:34 Here's My question, a variable is not actually global is not actually global until I make it global through global $make_this_global and then I can assess it using

RE: [PHP] php pages without .php extension on linux and windows

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Heiko Mundle [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 11:08 I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). On Linux I can access the PHP scripts without adding the .php extension. E.g. http://mydomain/myscript?para1=TRUE

RE: [PHP] New to PHP

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Harris [mailto:[EMAIL PROTECTED] Sent: 07 July 2003 23:27 After coding for a while, I would suggest that while you're reading through coding excercises, you find a coding style that works for you and keep it consistant. One of the least fun parts of

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 15:53 Here's the thing.. I declared $page_title = My Page Title in a file called config.php which is included in the index.php page. when I tried to - echo $page_title - Nothing comes out.

RE: [PHP] preg_replace - understanding

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 00:43 $filevalue = str_replace(\\, /, $filevalue); it is reversing the \\ to // but not replacing them with just a single /. I think you need to escape your \ so each \ is \\ so your

RE: [PHP] session data missing

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: ulf sundin [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 01:01 After creating a new session with session_start() and inserting a few values e.g $HTTP_SESSION_VARS['foo'] = 'bar'; a file /tmp/sess_{session_id} is created. The problem is that this file is

RE: [PHP] seeing strange things?

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Micah Montoy [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 01:37 A couple more things and I'll stop bugging everyone. I'm trying to get the file name of the string. If it includes the extension that's fine as well. I thought the code below would do

RE: [PHP] include/require inside of function

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Ow Mun Heng [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 03:44 I finally got it. Thanks. All I needed to do was just define global $page_title inside the function to denote that I wanted to use that variable. One other quick question, in my

RE: [PHP] PHP4 and PHP5 at one machine

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Milan Reznicek [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 07:38 Yes all these things I know, because already I'm running these two servers, but both with PHP4. But now I came accros the problem of php4ts.dll. Because in both versiones it has the same

RE: [PHP] PHP Bug or just a strange behaivor?

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: Marcus Hufvudsson [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 13:56 Hi, Let's get right to it... When I try to do this: ? echo $_COOKIE['test.1']; ? It doesn't work (needless to say there is a cookie that goes by this name) So, when I did this:

RE: [PHP] Antithesis to array_unique

2003-07-09 Thread Ford, Mike [LSS]
-Original Message- From: David Nicholson [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 15:08 This is a reply to an e-mail that you wrote on Wed, 9 Jul 2003 at 14:55, lines prefixed by '' were originally written by you. Having STFM I am wondering if anyone knows of a quick

RE: [PHP] What did I do wrong to cause a parse error?

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 05:54 foreach ($profileArray[$i][attributes] as $key = $val) { $singleProfileHTML .= $key . =\ . str_replace(', '#039;', str_replace('', 'quot;', $val)) . \\n; } The parsing error occurs

RE: [PHP] session data missing

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 20:30 - Original Message - From: ulf sundin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 1:00 PM Subject: Re: [PHP] session data missing ok, so now the

RE: [PHP] /etc/passwd

2003-07-11 Thread Ford, Mike [LSS]
-Original Message- From: Fejes Jozsef [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 12:33 My method is: 1. check if id starts with / if(ereg(^\/, $id)) goaway; That's a rather expensive (and slightly obscure) way of performing that check. Try: if ($id{0}=='/') goaway;

RE: [PHP] session data missing

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: ulf sundin [mailto:[EMAIL PROTECTED] Sent: 13 July 2003 23:37 I'm not the admin on the server, so I'll have to manage with the software provided. And that is php 4.0.6. Ah, right. Me, too, actually, which is why I still have the 4.0.6 manual on my PC!

RE: [PHP] REGULAR EXPRESSION HELP

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: 12 July 2003 07:31 I need to match a pattern, not in a single-line but from a HTML page, which obviously has loads of lines. I need to match 2 lines from this HTML page: 1) HTMLTITLEFirstVariable - Second

RE: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 18:49 I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt seem to get my answer. I am creating a basic set of functions that will form the

RE: [PHP] Moving Files/ Temporary Names

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 21:05 If you want the file to go into a holding location until your administrator can approve it and move it to its real final location, then the holding location should be the target of

RE: [PHP] Text file manipulation question.

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: Lloyd Bayley [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 00:21 I'm still in the learning stages of PHP and require some help with a small problem. I need to take a text file which looks like this (and no I can't get it output in CSV - damn and

RE: [PHP] headers already sent and cookie problem

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 09:45 This is what i get: Warning: Cannot add header information - headers already sent by (output started at /home/u/r/html/store/cart.php:188) in

RE: [PHP] Carrying a variable

2003-07-15 Thread Ford, Mike [LSS]
-Original Message- From: Ron Allen [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 10:55 I am using PHP 4.3.0 The way that I usually carry variables from one page to another is $Unit = ($_GET['Unit']); This is the page that is referencing it! ?PHP echo brbr; $DBName = SIGO;

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 10:21 One nasty thing to debug is that the error only shows up from time to time. So now everything seems OK. What do i have now? I start my code with session_start Then include some files. The

RE: [PHP] getallheaders() in PHP 4.2.3

2003-07-16 Thread Ford, Mike [LSS]
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 10:40 I believe getallheaders() has been supported since v4.0.0 Ananth Kesari wrote: *** This Email Has Been Virus Swept

RE: [PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ford, Mike [LSS]
-Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 15:17 Justin French [EMAIL PROTECTED] wrote: If you care about performance at all, try and find away around the problem without regular expressions... I tested if( (strlen($str) == 6)

RE: [PHP] Default mode -- Output buffering ??

2003-07-17 Thread Ford, Mike [LSS]
-Original Message- From: Alain Williams [mailto:[EMAIL PROTECTED] Sent: 17 July 2003 16:02 I recently upgraded from RedHat 9 supplied 4.1.2 to from_the_net 4.3.2. I am running the command line version (#!/usr/bin/php) as a .cgi rather than CLI != CGI directly in apache as a

RE: [PHP] How unsafe is register_globals?

2003-07-17 Thread Ford, Mike [LSS]
-Original Message- From: Paul Chvostek [mailto:[EMAIL PROTECTED] Sent: 17 July 2003 16:55 But those are APACHE directives. What I'm looking for is finer-grained control over what php_flag lines will be accepted. A quick test wrapped in a Directory APPEARS not to be at risk,

RE: [PHP] Re: Value for entire file

2003-07-18 Thread Ford, Mike [LSS]
-Original Message- From: Bobby Patel [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 06:11 it should be in the $_GET or $HTTP_GET_VARS array in the index.php script. put this at the top of your index.php script var_dump ($_GET); # or $HTTP_GET_VARS depending on PHP version and

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys To: 'Ford, Mike [LSS]'; [EMAIL PROTECTED] Here's the URL: http://www.aurelis.org/store/cart.txt and the get_cartID: http://www.aurelis.org/store/includes/functions/get_cartID.txt -- I've only had time

RE: [PHP] Register Globals

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: stfmoreau [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 13:23 include this code in your header file : // _GET if (isset($_GET)) while (list($key, $val) = each($_GET)) { eval ($.$key. =

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 14:29 echo(date('U',strtotime('next Friday'))); Actually, for this upcoming Friday, that'd just be echo(date('U',strtotime('Friday'))); Slightly confusingly, 'next Friday' would be the Friday after

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
-Original Message- From: Elliot Tobin [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 14:08 I need a function to create the dates of previous Fridays, in 21-JUL-2003 format. I figure this has already been done, so I wanted to ask before I continued writing my own. Take a look

RE: [PHP] Array Sorting, 2 items...

2003-07-22 Thread Ford, Mike [LSS]
-Original Message- From: Dan Joseph [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 16:29 Yeah, I did get it from a mysql_fetch_array(). I have: ORDER BY payment_methods.ba_type ASC, loan_info.loan_number ASC However,

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] conditional statement problems

2002-10-01 Thread Ford, Mike [LSS]
-Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 08:11 To: [EMAIL PROTECTED] Subject: [PHP] conditional statement problems $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; Can anyone tell me why this is not evaluating

<    1   2   3   4   5   6   7   >