RE: [PHP] Bug with register_globals on versus 1 and php_value vs php_flag?

2002-11-26 Thread Ford, Mike [LSS]
> -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED]] > Sent: 26 November 2002 19:23 > To: [EMAIL PROTECTED] > Subject: [PHP] Bug with register_globals on versus 1 and php_value vs > php_flag? > > > I don't know if this is a known bug or it's supposed to work > like this

RE: [PHP] dynamic arraynames

2002-11-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Floyd Baker [mailto:[EMAIL PROTECTED]] > Sent: 28 November 2002 17:09 OK, I think I'm finally beginning to understand what you're up to, and it seems to me everyine's been making rather heavy weather of it so far! > The user's choice is made from a drop down

RE: [PHP] Re: Multidimensional arrays (more and more...)

2002-11-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Mako Shark [mailto:[EMAIL PROTECTED]] > Sent: 28 November 2002 18:20 > > A little more info on my count()ing. > I have $issue[0]["number"] to $issue[x]["number"] just > like any other multidimensional array (we'll call them > m-arrays for simplicity). > > If I

RE: [PHP] Sessions not written to db on windows...

2002-12-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: 29 November 2002 20:45 > To: php-gen > Subject: [PHP] Sessions not written to db on windows... > > > I have a bit of code that uses sessions and stores session > data in the > database. > Works flawlessly on F

RE: [PHP] Failed php module load

2002-12-02 Thread Ford, Mike [LSS]
> -Original Message- > From: bob pilly [mailto:[EMAIL PROTECTED]] > Sent: 02 December 2002 11:24 > > Im trying to load php 4.2.3 as a dynamic module into > apache server 2.0.43 but am running into problems. > Everytime i run the configtest or try and start the > apache server i get the fol

RE: [PHP] easiest way to get 1st and last dates of the month?

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 05:31 > > I'm looking to get a unix timestamp for the first and last > day of a month, > given a timestamp. > > But so far everything i've come up with has been wy too > many lines of > t

RE: [PHP] Validating get and post data

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Beth Gore [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 02:12 > > However bizarrely this seems to behave incorrectly, as it > cuts out "0" > as well. Can anyone explain why it does this? > > function stripnum($rawinput) > { > > for($x=0;$x

RE: [PHP] hiding php

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 07:02 > > Because its better to have someone waste time trying known hacks for a > platform I don't have than to have the same person not know > the platform and > start spending time figuring out

RE: [PHP] variable num of function args

2002-12-03 Thread Ford, Mike [LSS]
> -Original Message- > From: christian haines [mailto:[EMAIL PROTECTED]] > Sent: 03 December 2002 13:32 > > > hi all, > > is it possible to somehow have a function which takes a > variable number > of arguments Yes -- look at the manual pages for func_num_args (http://www.php.net/func

RE: [PHP] Whimper, help :)

2002-12-04 Thread Ford, Mike [LSS]
> -Original Message- > From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] > Sent: 04 December 2002 06:28 > > http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bre > ady+maria%26quot%3B > http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bre > ady+maria%26quot%3B > > I

RE: [PHP] PHP Sessions

2002-12-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: 04 December 2002 14:15 > > Good point -- are the included files functions, or other stuff?? > > function myfunc() > { > return $_SESSION['something']; > } > > will not work, but: Oh, yes it will! -

RE: [PHP] Sigh :)

2002-12-06 Thread Ford, Mike [LSS]
OK, I think I've solved this, and you'll probably kick yourself when I explain it!" But first, a teaser: what looks like a double-quote in HTML, but isn't? >-Original Message- >From: John Taylor-Johnston > If I run the SQL in PHPMyAdmin, (a MySQL web interface), it works. > > jdaxell.

RE: [PHP] Looping Addition

2002-12-06 Thread Ford, Mike [LSS]
- Original Message - From: "Chris Wesley" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> > On Wed, 4 Dec 2002, Stephen wrote: > > This is only a snippet, there is more to it but for simplicities sake... > > Then I calculate it. My question is, how would I loop the adding? I hope yo

RE: [PHP] Finding Mode

2002-12-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Widmer > > At 07:12 PM 12/7/02 -0500, Stephen wrote: > >Another math question... How would I find the mode (number that repeats most > >often) of an array? Then, if there isn't a number that repeats most often, > >tell the user that. > > For each entry in

RE: [PHP] date() on two diff. servers

2002-12-09 Thread Ford, Mike [LSS]
> -Original Message- > From: DL Neil [mailto:[EMAIL PROTECTED]] > Sent: 09 December 2002 10:50 [snip...] > =now let's take a look at the UNIX Epoch. Various > 'quotations' have surfaced > in this email, and I don't recall that it is well discussed > within the PHP > manual (it being a

RE: [PHP] Can I check MYSQL version

2002-12-09 Thread Ford, Mike [LSS]
> -Original Message- > From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] > Sent: 08 December 2002 19:57 > > mysql> SELECT VERSION(); > -> '3.23.13-log' > > Ok, how do I PHP it for greater than or equals version 4 :? Simplistic: if ($mysql_version[0]>="4") ... More s

RE: [PHP] update query based on array

2002-12-10 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Dulberg [mailto:[EMAIL PROTECTED]] > Sent: 09 December 2002 23:52 > > So you mean do something like: > > > > > > Doesn't that create 2 additional arrays though? Yes -- but how else are you going to get multiple values for each name from your form to

RE: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-11 Thread Ford, Mike [LSS]
> - Original Message - > From: "Victor" <[EMAIL PROTECTED]> > To: "'Rick Emery'" <[EMAIL PROTECTED]> > Sent: Tuesday, December 10, 2002 1:49 PM > Subject: RE: [PHP] Re: Help please: Unable to get > $_POST["variable"]; to work in a form. > > > Why are you using $_POST[""]? I thought you

RE: [PHP] Flushing Output

2002-12-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Richard Baskett [mailto:[EMAIL PROTECTED]] > Sent: 11 December 2002 00:27 > > Is there a way of flushing output to the browser. So for > example, I have a > script that checks things in a database, every check, or every hundred > checks it would be nice to ou

RE: [PHP] Repeat This...

2002-12-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Stephen [mailto:[EMAIL PROTECTED]] > Sent: 11 December 2002 02:50 > > I want to repeat the following code as many times as the user > specifies in the variable $_POST['x']. I then need to have > the output display as all the numbers found in the sequence. >

RE: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-11 Thread Ford, Mike [LSS]
> -Original Message- > From: KANM MD [mailto:[EMAIL PROTECTED]] > Sent: 11 December 2002 08:55 > > Here is the code in a readable form (alterations for > security, simplicity > ...) > > if > ((stristr($HTTP_SERVER_VARS["remote_address"],"XXX.YYY.ZZZ"))| > |($pwprotect== > 'password')) {

RE: [PHP] date() on two diff. servers

2002-12-11 Thread Ford, Mike [LSS]
> -Original Message- > From: DL Neil [mailto:[EMAIL PROTECTED]] > Sent: 10 December 2002 19:52 > > =as a Windows user I struggle to cope with some of these UNIX > concepts, so I > hit Google - with no joy, and ripped through the SuSE manuals > (I'm a closet > Linux user - will become one

RE: [PHP] Escaping '#' Sign

2002-12-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Mike Smith [mailto:[EMAIL PROTECTED]] > Sent: 12 December 2002 14:47 > > Rendered results of = > > http://company.com/custmaint.php?id=70&class=&cust=company > T/T #29&type=OEM > > id is the record id > class is Null so that's OK. > cust=company T/T #29 > t

RE: [PHP] Odd Strpos Behavior

2002-12-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Steve Keller [mailto:[EMAIL PROTECTED]] > Sent: 12 December 2002 22:09 > > At 12/11/2002 08:09 PM, you wrote: > > >Okay, so how do you know what to replace something like > [author] with? > >What exactly are you doing again? I've forgotten the > original que

RE: [PHP] Escaping '#' Sign

2002-12-13 Thread Ford, Mike [LSS]
>-Original Message- >From: Mike Smith > >Is this fundamentally flawed? You mentioned "...is probably invalid in >itself, but we'll come to that." Were you referring to the space or the >whole pasing of array variables in an URL. Yup, I meant the spaces, not the whole concept -- when I wrot

RE: [PHP] Simple code that won't work

2002-12-17 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: 17 December 2002 14:58 > > On Tuesday 17 December 2002 22:25, Jacob van Zanen wrote: > > Hi All, > > > > > > Reasonably new to PHP and trying to write a code that looks > through my > > logfiles and reports the lin

RE: [PHP] *OK, more eval for today

2002-12-19 Thread Ford, Mike [LSS]
> -Original Message- > From: Alexey Lysenkov [mailto:[EMAIL PROTECTED]] > Sent: 18 December 2002 19:08 > > > I am trying to do this: > > $tempVar1 = '\$HTTP_POST_VARS[\"q4_'.$i.'"]'; > eval("\$tempVar1=\"$tempVar1\";"); > Well, you have the answer right there in front of you -- why n

RE: [PHP] flush output error

2002-12-19 Thread Ford, Mike [LSS]
> -Original Message- > From: electroteque [mailto:[EMAIL PROTECTED]] > Sent: 19 December 2002 07:52 > > sorry about the false alarm , if you go here u will see a > working example > > http://galleries.dyndns.org:1023/progress.php > > i had to add both flush functions together to work ,

RE: [PHP] case statement?

2002-12-19 Thread Ford, Mike [LSS]
> -Original Message- > From: Max Clark [mailto:[EMAIL PROTECTED]] > Sent: 19 December 2002 18:19 > > I was wondering if php had a case function? > > Instead of building a large if/elseif/else block I would like > to do a case > $page in (list). http://www.php.net/control-structures.swit

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Beauford.2002 [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 00:19 > > This should be as simple as breathing, but not today. I have > two variables > $a and $b which I need to compare in a switch statement in > several different > ways, but no matter wha

RE: [PHP] Some discoveries I've made. Anyone care to confirm/deny

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED]] > Sent: 19 December 2002 23:30 > > Firstly, something regarding accessing form/query string variables, on > diffferent versions of PHP. Starts to become a nightmare, but > you also want > to make sure you _aren't_ requiri

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 00:34 > > switch() does not work that way. Switch uses the value in > the parentheses and selects a > CASE based upon that value. Read the manual. > > You will have to use a series of if()-elsei

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 02:36 > To: PHP General > Subject: RE: [PHP] Another problem with conditional statements > > > Nowhere in the documentation does it specify switch should be > used in the > context you are attemp

RE: [PHP] Another problem with conditional statements

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Beauford.2002 [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 03:15 > > > Using switch would be more efficiant as it would stop once a > match is made > (if you use break), but with eleif statements each one is evaluated in > order. Not sure that's true

RE: [PHP] upload_max_filesize + ini_set

2002-12-20 Thread Ford, Mike [LSS]
> -Original Message- > From: electroteque [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 11:35 > To: [EMAIL PROTECTED] > Subject: [PHP] upload_max_filesize + ini_set > > > is there a way to get this setting to work without hard > setting in htaccess > ? i'd like to be able to dynami

RE: [PHP] Re: fgets() question?

2002-12-23 Thread Ford, Mike [LSS]
> -Original Message- > From: Noel Wade [mailto:[EMAIL PROTECTED]] > Sent: 22 December 2002 09:44 > > > A blank line should return the newline (\n or \r\n), > according to > > http://www.php.net/manual/en/function.fgets.php. Also try > using '===' (3 = > > signs) as the operator, whic

RE: [PHP] upload_max_filesize + ini_set

2002-12-23 Thread Ford, Mike [LSS]
> -Original Message- > From: electroteque [mailto:[EMAIL PROTECTED]] > Sent: 20 December 2002 19:34 > > and i just tested the script and it let me upload a 2.5M > file. Well, I was just quoting from the manual, so that sounds worthy of a bug report in itself -- either the manual is wrong

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Ford, Mike [LSS]
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: 24 December 2002 00:44 > > If you want to use some of PHP's special characters in your > expression, Don't you mean "preg's special characters"? Or even "PHP special characters which are also preg special ch

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Ford, Mike [LSS]
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: 24 December 2002 00:44 > > I don't know. I just got that from reading the manual. The very first > user comment on the preg_match page. Sorry, misread this before and took the explanation below as John replying

RE: [PHP] Text repeating problem

2003-01-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Simon Hay [mailto:[EMAIL PROTECTED]] > Sent: 30 December 2002 12:49 > > I have several PHP web applications which have large text boxes (Wiki > sites etc.). Usually, they work fine, but sometimes, if a large-ish > amount of text is entered, the server seems t

RE: [PHP] makeing an array

2003-01-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Sean Malloy [mailto:[EMAIL PROTECTED]] > Sent: 02 January 2003 13:35 > To: Timothy Hitchens (HiTCHO); [EMAIL PROTECTED] > Subject: RE: [PHP] makeing an array > > > see example 2. But that produces the elements in reverse order -- no use if you want them in th

RE: [PHP] makeing an array

2003-01-02 Thread Ford, Mike [LSS]
> -Original Message- > From: Gerald Timothy Quimpo [mailto:[EMAIL PROTECTED]] > Sent: 02 January 2003 14:12 > > alternatively, if you don't want to change to array syntax, > you can use > variable variables. e.g., > > $variable_name="comment_".nIndex; // now comment_1, for example.

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 interpreti

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].""; 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 a

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

RE: [PHP] Baffling output

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Steve Keller To: [EMAIL PROTECTED] At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ;

RE: [PHP] Session Question

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? -- That question doesn't even make sense to me -- cookie functions can't save dat

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 ""; $choices = array( 'pub' => 'On Public Page', 'members' => 'Only

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

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

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 i

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

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 >

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

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

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 > regis

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 wo

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

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: http://www

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

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.ph

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 (HTT

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. > > > > > > > > $NewID = $colname_earlytour + 1; > > > ?> > > > URL=early-tour.php?ID= echo > > > "$NewID";?>> This look

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 PH

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 for

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 th

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

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 >

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: > > > > ="post"> > > Send this file: > > > echo $_FILES['userfile']['tmp_name']; > ?> > > > > produces the following after upload: > > /var/tmp/phplSTEVp

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

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 wh

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 tra

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. > > E

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

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 Er -- quoting from t

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 tha

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 http://www.php.net/manual/en/function.html

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

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 of

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 rewri

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

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 endin

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(

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

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

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_m

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... > > > $name = 'kyle'; > > function hello() { > print 'hello ' . $name; > $x = 1; > } > > function bye() { > if ($x == 1) print '

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 lan

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 wh

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 inclu

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 aro

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 $GLOBAL[$make

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:///?para1=TRUE > for > ht

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 pa

  1   2   3   4   5   6   7   >