RE: [PHP] Regular Expression

2002-10-01 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 02:21 To: 'Daren Cotter'; 'PHP General Mailing List' City: Just ' ?? I'd allow space and period, too, for Ft. Gordon for example. ^[-a-zA-Z0-9' .]+$ Well, there's an English west

RE: [PHP] eregi_replace / preg_match_all

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Jennifer Swofford [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 21:21 To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace / preg_match_all Why does this work: $contents = eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg), \blah.gif, $contents);

RE: [PHP] php question

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: michael saxbury [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 22:57 I am trying to understand in deatil exactly what PHP is, I know that it is a scripting markup type language, but. Is it correct to say that PHP is essentially just C++ code

RE: [PHP] backwards compat for newly developed scripts ($_GET / $HTTP_GET_VARS)

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Paul Nicholson [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 02:11 Hey gang, I've been wondering about developing scripts that the end-user might run on php 4.1.0. I've heard allot of ways except for one that I recently thought of. How about

RE: [PHP] Recursive Replace

2002-10-02 Thread Ford, Mike [LSS]
-Original Message- From: Rick Beckman [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 12:12 ? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ? That line of code successfully will display lines 7 and on of an included text file into my HTML boilerplate. However, in

RE: [PHP] Re: MySQL Problem

2002-10-03 Thread Ford, Mike [LSS]
-Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: 03 October 2002 09:39 Here's a simplier version...and I'm still having a problem with it. It's driving me insane!!! :) class MySQL { function SET ( ) { $this-MYVAR = Hello World!; }

RE: [PHP] Win 98 Apache - Directory style Query Strings on PHP Files without extensions

2002-10-15 Thread Ford, Mike [LSS]
-Original Message- From: Andy White [mailto:[EMAIL PROTECTED]] Sent: 15 October 2002 16:08 To: [EMAIL PROTECTED] I'm trying to allow my Apache webserver, on Win 98 to run PHP files without extensions. Where the file is index without an extension and xxx and yyy are the

RE: [PHP] Installing PHP 4.2.3 with Apache 2.0.43 on WinXP Home Edition

2002-10-16 Thread Ford, Mike [LSS]
-Original Message- From: Reginald Alex Mullin [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 05:27 To: '[EMAIL PROTECTED]' LoadModule php4_module C:/PHP/sapi/php4apache.dll AddModule mod_php4.c As you're trying to use Apache 2.0.43, this won't work -- there's a different .dll

RE: [PHP] $_SESSION

2002-10-16 Thread Ford, Mike [LSS]
-Original Message- From: Paonarong Buachaiyo [mailto:[EMAIL PROTECTED]] Sent: 16 October 2002 09:04 To: [EMAIL PROTECTED] Simple, how can we earse all $SESSION variable except one or two variables. Any way to do it except unset($_SESSION['xx1']); unset($_SESSION['xx2']);

RE: [PHP] A newbie on Board!

2002-10-28 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:justin;indent.com.au] Sent: 28 October 2002 07:27 Please start by looking in the manual... I simply typed http://php.net/oracle into my browser, which resulted in this page: http://www.php.net/manual/en/ref.oracle.php Seems to

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Ford, Mike [LSS]
-Original Message- From: Faisal Abdullah [mailto:faisal;magnifix.com.my] Sent: 28 October 2002 09:51 To: Subodh Gupta; [EMAIL PROTECTED] Subject: RE: [PHP] error connecting to oracle. -Original Message- From: Subodh Gupta [mailto:Subodh.Gupta;seepz.tcs.co.in] Sent:

RE: [PHP] Array Question

2002-10-29 Thread Ford, Mike [LSS]
-Original Message- From: PHP List [mailto:php_list;ibcnetwork.net] Sent: 28 October 2002 22:48 To: php Subject: [PHP] Array Question Hi, Lets say I have a simple array like this: $myarray = array(a=b,d=c); echo $myarray[0] will return 'b'; How can I get the name of the

RE: [PHP] Select values in an array???

2002-10-29 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:remery;emeryloftus.com] Sent: 29 October 2002 16:15 To: [EMAIL PROTECTED] Subject: Re: [PHP] Select values in an array??? I HAVE selected multiple items without including MULTIPLE. The following link displays a form in which there

RE: [PHP] Array Question

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: PHP List [mailto:php_list;ibcnetwork.net] Sent: 29 October 2002 17:20 To: php Subject: Re: [PHP] Array Question No, array_keys does not do what I want, in order to user array_keys, it assumes I know the value of the key, but I don't, Er -- no. Go

RE: [PHP] Cutting off first 4 characters using array input names??

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:holmes072000;charter.net] Sent: 30 October 2002 01:15 To: 'Jarrad Kabral'; [EMAIL PROTECTED] Pretty sure this is a known bug; it's been discussed on here a few times. Do a search for it. Oh yeah, at least half a dozen -- I found them

RE: [PHP] POST-ing or GET-ing an array

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Paul Nicholson [mailto:paul;dtnicholson.com] Sent: 29 October 2002 19:10 To: Sascha Cunz; Petre Agenbag; [EMAIL PROTECTED] Hey, I think you should be able to serialize and urlencode the array and then pass that via get/post.post would be a lot better

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 13:46 I never noticed before...there is no easy way to perform random-access read and WRITE on a file. I vote/recommend/suggest that this most basic functionality be added to the next release of

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: David Russell [mailto:DavidR;BarloworldOptimus.com] Sent: 30 October 2002 14:32 I am having problems unsetting Session Variables - where I know it should work. I have a form. It contains both links with GET variables, and also a POST form. They all go to

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 14:35 You are correct. In fact, simply r+ works; I just tried it. Thanks Yes, but that's not guaranteed to be binary-safe on Windows -- if your data happens to include null bytes, you might get

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: David Russell [mailto:DavidR;BarloworldOptimus.com] Sent: 30 October 2002 15:30 To: 'Ford, Mike [LSS]' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Unsetting Session Variables PHP 4.2.2 Register Globals Off Using only $_SESSION No session_register() calls

RE: [PHP] Capitalizing names etc. part II - found a solution

2002-10-31 Thread Ford, Mike [LSS]
-Original Message- From: -[ Rene Brehmer ]- [mailto:metalbunny;metalbunny.net] Sent: 30 October 2002 19:54 [snip, snip, snip...] My structure also ensure that if someone's called something like Mackenzie for first name, it will not be incorrectly cap'ed, as it only does the

RE: [PHP] Require_once problem

2002-11-01 Thread Ford, Mike [LSS]
-Original Message- From: Darwin [mailto:superbus22;attbi.com] Sent: 01 November 2002 10:17 Well, the way I've read it is that if you use require within control structures then all files are included, regardless of whether the script exits before it reaches its next

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent [mailto:daevid;daevid.com] Sent: 06 November 2002 12:23 To: [EMAIL PROTECTED] That's the EASY part John! The hard part is converting the array (which was a checkbox array from a form submission) into the binary string (as per the

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:kevin;helpelf.com] Sent: 06 November 2002 18:32 The method that you have described below is going to produce a numerical Key which is going to result in several errors. Huh? What on earth does this mean? -Kevin - Original

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:kevin;helpelf.com] Sent: 06 November 2002 18:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] Code Advice All I have to go by is what I see. The method was this.. ? $get_allow = array('foo', 'bar', 'add', 'takeovertheworld'); while

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
-Original Message- From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at] Sent: 06 November 2002 18:49 To: [EMAIL PROTECTED] Subject: Re: [PHP] Code Advice Ever had a headache with posted parameters, as to where to look for the value, in _GET or _POST? Try this:

RE: [PHP] Most current non-beta version, and bcc

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: Rick Widmer [mailto:php3;developersdesk.com] Sent: 08 November 2002 04:16 To: Jill S; [EMAIL PROTECTED] Subject: Re: [PHP] Most current non-beta version, and bcc At 02:38 PM 11/7/02 -0600, Jill S wrote: so again I'll ask - Are the 4.2.3 downloads at the

RE: [PHP] Quick question

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: Martin Towell [mailto:martin.towell;world.net] Sent: 08 November 2002 06:23 what is the technical difference between using else if Well, technically this starts a new block structure level... and elseif ... and this doesn't. But to all

RE: [PHP] Re: Cookie error after 4.2.3 upgrade

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: Erwin [mailto:erwin;isiz.com] Sent: 08 November 2002 08:55 Jack Sasportas wrote: I get the following error when using a previously working cookie function: expects parameter 3 to be long Code is below... I just don't see the difference then the way

RE: [PHP] For ... = max($myArray) vs For ... = $max

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent [mailto:daevid;daevid.com] Sent: 08 November 2002 11:13 Is PHP smart enough to optimize loops? That is, are these two 'for...loops' equivalent or is one slower than the other? $max = max($myArray); for( $x = 1; $x = $length; $x++ ) {}

RE: [PHP] What am I missing with this code?

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: John Meyer [mailto:johnmeyer_1978;yahoo.com] Sent: 08 November 2002 11:45 for($i=1;$i13;$i++) { ? lia href=categoryresult.php?condition=?=urlencode(where month(UserDOB)= .

RE: [PHP] method chaining

2002-11-11 Thread Ford, Mike [LSS]
-Original Message- From: Terry McBride [mailto:terry;boxitllc.com] Sent: 11 November 2002 15:53 I have a question about php and OO. I want to chain methods together having them performed on the results of the following method. Meaning something like $foo-get(bar)-getBaz().

RE: [PHP] method chaining

2002-11-11 Thread Ford, Mike [LSS]
Apologies for the previous truncated version of this -- dunno what happened there!! -Original Message- From: Terry McBride [mailto:terry;boxitllc.com] Sent: 11 November 2002 15:53 I have a question about php and OO. I want to chain methods together having them performed on the

RE: [PHP] form question ???

2002-11-11 Thread Ford, Mike [LSS]
-Original Message- From: Jim Hatridge [mailto:hatridge;fecundswamp.net] Sent: 11 November 2002 16:27 looking at the code below. It works and I get what I want on the screen. BUT it leaves a gap between the top lines and where the table starts equal to the size of the table,

RE: [PHP] Oracle 7 support

2002-11-12 Thread Ford, Mike [LSS]
-Original Message- From: Dan Field [mailto:danf;ceredigion.gov.uk] Sent: 12 November 2002 12:18 Can anyone tell me if Oracle 7 is supported by PHP 4.2.2 ? Yes. I have found functions specific to Oracle 8i and some more generic functions (are these only for Oracle 9?). No -- the

RE: [PHP] Oracle 7 support

2002-11-12 Thread Ford, Mike [LSS]
-Original Message- From: Dan Field [mailto:danf;ceredigion.gov.uk] Sent: 12 November 2002 13:39 On Tue, 2002-11-12 at 13:03, Ford, Mike [LSS] wrote: -Original Message- From: Dan Field [mailto:danf;ceredigion.gov.uk] Sent: 12 November 2002 12:18 Can anyone tell

RE: [PHP] Would appreciate thoughts on session management

2002-11-12 Thread Ford, Mike [LSS]
-Original Message- From: Charles Wiltgen [mailto:lists;wiltgen.net] Sent: 12 November 2002 18:48 Your method assumes something about your users: that they click on links. This may be unlikely, but what if a user uses the 'copy URL to clipboard' (or equivalent) feature of

RE: [PHP] Would appreciate thoughts on session management

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: Charles Wiltgen [mailto:lists;wiltgen.net] Sent: 12 November 2002 20:14 For example, take my spinner object example. By using Invisible Get, after clicking on the increment spinner button the user sees http://www.getsome.com/ rather than

RE: [PHP] Multiple selections

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: David Rice [mailto:davidrice;rogers.com] Sent: 13 November 2002 01:00 On Tuesday, November 12, 2002, at 07:34 PM, Ernest E Vogelsinger wrote: Sure it is - just name the listbox control myvar[] (note the angle brackets). PHP will recognize this being

RE: [PHP] Multiple selections

2002-11-13 Thread Ford, Mike [LSS]
-Original Message- From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at] Sent: 13 November 2002 07:34 To: David Rice I've made quite a number of JavaScripts controlled PHP dialogs containing the [], they all work like a charm. There's only one thing you cannot do AFAIK:

RE: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Ford, Mike [LSS]
-Original Message- From: Charles Wiltgen [mailto:lists;wiltgen.net] Sent: 13 November 2002 18:28 Here's what I was using: Form: form method=post action=http://domain.com/; name=the_form input type=hidden name=foo value=DUMMY /form Link: a

RE: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Ford, Mike [LSS]
Additionally... -Original Message- From: Charles Wiltgen [mailto:lists;wiltgen.net] Sent: 13 November 2002 18:28 Ford, Mike [LSS] wrote... ...But why would they even see that in the first place If I want them to click on a button to do something, I simply

RE: [PHP] Re: session handling

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: 16 November 2002 07:23 To: [EMAIL PROTECTED] Subject: [PHP] Re: session handling Here's what you need: on page 1.php: ?php session_start(); $temp = 'someValue'; session_register(temp); ? on

RE: [PHP] can I retrieve jsp varibable with get or post???

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] Sent: 17 November 2002 17:50 ok - the more I look at this the more I'm a bit lost. passing the variables from php to java makes sense. however, from your scripts you listed it is only possible to pass jsp

RE: [PHP] running php as cgi script

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: 17 November 2002 20:55 To: php-general Subject: Re: [PHP] running php as cgi script Well, I've got a few test scripts to run by following the suggestions from the posts. There's just one thing that's not quite

RE: [PHP] RE: Problem with Class - incomplete object error

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Paul [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 11:49 To: 'Tim Ward'; [EMAIL PROTECTED] Subject: RE: [PHP] RE: Problem with Class - incomplete object error Yes, I have included class definition on the top of the page. And are you 100% sure it's

RE: [PHP] Post Problem

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Dave J. Hala Jr. [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 17:30 I'm running php-4.2.2-8.0.5 on Redhat 8.0 Lately I've noticed that when doing a form, listbox variables have funky values in certain situations. Unfortunately, I haven't been to

RE: [PHP] Capturing multiple select with Javascript - nearly there

2002-11-19 Thread Ford, Mike [LSS]
-Original Message- From: Phoebe Bright [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 14:20 My remaining problem is that the array that PHP sees only has the final few characters of the values it should have. This is the result of print_r after selecting two items

RE: [PHP] new php version

2002-11-19 Thread Ford, Mike [LSS]
-Original Message- From: Richard Pijnenburg [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 18:48 When will there be a new release of php? Well, http://www.php.net/ says: [14-Nov-2002] PHP 4.3.0RC1 has been released. This is the first release candidate and So, er,

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, but

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 try to

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 FreeBSD

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 following

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

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 what

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

RE: [PHP] removing an element from an array

2003-10-01 Thread Ford, Mike [LSS]
On 01 October 2003 11:25, Angelo Zanetti contributed these pearls of wisdom: Hi If I have an array and want to remove and element from this array. correct me if this is the wrong approach: It's the wrong approach ;) create a temporary array with 1 element less than the origional array,

RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
On 01 October 2003 21:02, [EMAIL PROTECTED] wrote: 1. The PHP manual sais to escape the escape char, it has to be written twice*, but: Yes, it does. But it also says that to put a \ into a string, you need to write it twice (escape it) ***. So: $term = preg_replace('/(\\)/', 'backslash

RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
Ooops, forgot the footnote: *** http://www.php.net/manual/en/language.types.string.php#language.types.string .syntax Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning

RE: [PHP] User authentication

2003-10-02 Thread Ford, Mike [LSS]
On 02 October 2003 17:27, Jeff McKeon wrote: Ok, I've got a login page that has these funtions to set the userid and password to session variables [code start] session_start(); if(!isset($userid)) { login_form(); exit; } else {

RE: [PHP] embedding code

2003-10-03 Thread Ford, Mike [LSS]
On 03 October 2003 05:06, John Taylor-Johnston wrote: Brian or anyone, Ok, supposing I don't want someone to be able to use script language=php and I'm the paranoid sysadmin, (WebCT system see open source moodle.org). What advice would you give me? Students are allowed to upload files to

RE: [PHP] or return problem

2003-10-08 Thread Ford, Mike [LSS]
On 07 October 2003 18:15, Pat Carmody contributed these pearls of wisdom: So far everyone is telling me that it won't work, but no one is telling me why. (btw I did search extensively for the answer to this question but so far have found nothing). Robert, could you be more specific in your

RE: [PHP] shell_exec question

2003-10-08 Thread Ford, Mike [LSS]
On 08 October 2003 15:19, Chris Blake contributed these pearls of wisdom: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file

RE: [PHP] or return problem

2003-10-08 Thread Ford, Mike [LSS]
On 08 October 2003 16:13, Chris Shiflett contributed these pearls of wisdom: --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two operands, both of which must have an actual value. [snip] statements don't have a value

RE: [PHP] or return problem

2003-10-08 Thread Ford, Mike [LSS]
On 08 October 2003 16:43, Robert Cummings contributed these pearls of wisdom: On Wed, 2003-10-08 at 11:43, Curt Zirzow wrote: * Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Firstly, or, as a Boolean operator requires two

RE: [PHP] or return problem

2003-10-09 Thread Ford, Mike [LSS]
On 08 October 2003 17:20, Chris Shiflett wrote: The internals developers probably didn't see a need to provide support for return in conditionals since it can't return a value to the conditional. Ugh. This is the same misconception, again. Let's try some different code: ? function

RE: [PHP] problem transferring a variable using POST

2003-10-09 Thread Ford, Mike [LSS]
On 09 October 2003 16:57, Davy Campano wrote: I am having a problem with a form. I am trying to have a form pass a variable so that I can update an item. I think the problem is that the variable (ticketed) is being read as text instead of a number. These are the tests I have run. This

RE: [PHP] Major wierdness - ack!

2003-10-13 Thread Ford, Mike [LSS]
On 10 October 2003 21:28, James Johnson wrote: Hi, I'm getting so frustrated with this. I have put some error trapping code in my site with the following code (an included file): ?php ob_start(); error_reporting(E_ALL); set_error_handler('pc_error_handler');

RE: [PHP] Sessions

2003-10-13 Thread Ford, Mike [LSS]
On 11 October 2003 02:23, Lowell Allen wrote: I'm trying to track down some issues with my site, and am trying to decide if it's a session variable issue. On a random basis, it appears that session vars are being dumped, deleted, or unset, as the site will break. Queries based on session

RE: [PHP] newbie question

2003-10-13 Thread Ford, Mike [LSS]
On 12 October 2003 23:36, Eugene Lee wrote: On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: 1. An optional padding specifier that says what character will be used for padding the results to the right string size. This may be a space character or a 0 (zero character). The

RE: [PHP] newbie question

2003-10-14 Thread Ford, Mike [LSS]
On 13 October 2003 13:49, 'Eugene Lee' wrote: On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: On 12 October 2003 23:36, Eugene Lee wrote: The PHP manual is vague in several sections. I wonder how bug reports get submitted for it? http://bugs.php.net

RE: [PHP] where is my session data on my new server?

2003-10-14 Thread Ford, Mike [LSS]
On 14 October 2003 11:26, David T-G wrote: On the first server when you enter the password and hit the button the page comes back up with $pw set and in you go. On the second server $pw is always empty and we are endlessly prompted. I ran a phpinfo() comparison and didn't see anything

RE: [PHP] Pulling variables from a URL

2003-10-15 Thread Ford, Mike [LSS]
On 14 October 2003 18:59, Carl Furst contributed these pearls of wisdom: double quotes say interpolate $variables. However I have discovered (at least in php 4.2.3) that you cannot use subarrays in double quotes like my var in the subarray subarray: $array['subarray']['subarray'] That

RE: [PHP] header() refresh vs location

2003-10-15 Thread Ford, Mike [LSS]
On 14 October 2003 20:11, Chris Hubbard contributed these pearls of wisdom: All, I have done a number of searches. I have read the online documentation and user supplied comments. I recently ran into problem using: -some code here to create session and set variables- header('Location:

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
On 15 October 2003 01:31, Mike Brum contributed these pearls of wisdom: One quick note - if you're starting a session then you can't user the header() function afterwards. You'll get the lovel headers already sent error. Actually, so long as you do both *before* outputting any actual page

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
On 15 October 2003 05:25, Jake McHenry contributed these pearls of wisdom: Yes, submit, inout, username and password all come from the index.php form submission, but username changes throughout the different pages, that was one of my problems. I'm not sure what I did wrong before, but once I

RE: [PHP] where is my session data on my new server?

2003-10-16 Thread Ford, Mike [LSS]
On 14 October 2003 14:45, David T-G wrote: Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 11:26, David T-G wrote: % % I ran a phpinfo() comparison and didn't see anything markedly % different (except for how the output is formatted, which made

RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 18 October 2003 10:10, Wang Feng wrote: I can't uderstand why the number 18 is stored in the $third rather than $first. I tried to change the 18 to 18, that is, change it from a decimal number to a string and by that way, 18 is stored in the $first, which is what I expected. But why

RE: [PHP] best way to use session vars?

2003-10-20 Thread Ford, Mike [LSS]
On 19 October 2003 13:00, David T-G wrote: It seems to me that for a fast fix I could set $pw and other vars in my include file in place of registering them and then, later, take my time to correctly switch over to $_POST['pw'] and $_SESSION['pw'] everywhere. Does that sound like a good

RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 20 October 2003 13:36, Wang Feng wrote: Mike, So, in PHP, when a string is converted to a number to compare with the other decimal input, the compiler doesn't look at the ascii set table *at all*? Instead, it simply convert the string to 0? Yes, if it doesn't start with a valid string

RE: [PHP] sorting

2003-10-20 Thread Ford, Mike [LSS]
On 20 October 2003 13:53, Ford, Mike [LSS] wrote: Yes, if it doesn't start with a valid string representation of a string -- see Oops -- string representation of a *number*, of course... ;) Cheers! Mike - Mike Ford

RE: [PHP] Handling checkboxes that aren't checked!!!

2003-11-05 Thread Ford, Mike [LSS]
On 04 November 2003 20:43, Pablo Gosse contributed these pearls of wisdom: On Tuesday, November 04, 2003 12:45 PM Kevin wrote: [snipped] How can I test for it without getting an error if it is not checked?? [/snipped] Hey Kevin. Use isset($var) to test if a var has been set. So you

RE: [PHP] Changing the php.ini file

2003-11-05 Thread Ford, Mike [LSS]
On 05 November 2003 14:39, Mike At Spy contributed these pearls of wisdom: I re-checked the files - nothing I change in the php.ini files seems to take effect. How do I check apache? I saw the post_max_size thing and changed that to be equal to the upload_max_filesize. I'll make it a

RE: [PHP] passing random variables names

2003-11-07 Thread Ford, Mike [LSS]
On 07 November 2003 08:41, Yonatan Ben-Nes wrote: Hi all, I made a form which pass constant variables which never change (Ex. product_name) and dynamic variables which i withdraw from the db (Ex. attribute_id = 1, value = color). Now my problem is with the passing of the dynamic variables.

RE: [PHP] How to get the key of a specific index of array?

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 12:59, David Strencsev contributed these pearls of wisdom: Wouter Van Vliet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] First of all, you said to use the first three values of the array for anoter reason .. well the, what I'd do is this: $FirstThree =

RE: [PHP] stepping through alphabet

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 14:25, Jay Blanchard contributed these pearls of wisdom: [snip] for ($letter = 'A'; $letter++; $letter = 'Z') echo a href=\?action=alphabetletter=$letter\$letter/a\n; [/snip] I tested this and found two small problems. The code works if you do this (I was myself

RE: [PHP] stepping through alphabet

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 16:15, Jay Blanchard contributed these pearls of wisdom: [snip] 'Z'+1 is defined to be 'AA' (it says that in the manual, too!), so your loop has to be: for($letter = 'A'; $letter = 'AA'; $letter++){ echo $letter . \n; } [/snip] Run this, you'll be

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 14:53, Scott Fletcher wrote: Hi Everyone! Is there a way to get the strpos() to find the next needle in the haystack instead of just the 1st one only? (Where the 1st needle is the same string as the next needle)... Look at the optional 3rd parameter to strpos().

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 17:39, Scott Fletcher wrote: How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start =

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-21 Thread Ford, Mike [LSS]
On 20 November 2003 20:39, Scott Fletcher wrote: Yea, the manual is clear but honestly, don't know what the offset really meant since there is no definition or explaination of how the offset work. Well, I really don't know how much clearer the sentence that says The optional offset parameter

RE: [PHP] Is there a php built-in function to determine the numbe r of dimensions of the array?

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 03:28, [EMAIL PROTECTED] contributed these pearls of wisdom: Hello all mailing list, I am wondering if it exists a PHP built-in function to determine the numbers of dimensions of any type of array (indexed, and associative), thanks for any help, bye. (i) All PHP arrays

RE: [PHP] Object aggregation/composition - Experimental..?

2003-11-26 Thread Ford, Mike [LSS]
On 25 November 2003 18:48, Video Populares et Optimates contributed these pearls of wisdom: Hi! I'm sifting through the possibilities with PHP and naturally one of the first things I searched for was the possibility for OO development. Now, I found chapter LXXII in the PHP manual (file

RE: [PHP] FLAG

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 12:43, Jay Blanchard contributed these pearls of wisdom: [snip] Well, so is there any online resource whereby I can read up on FLAG ???Or any idea how should I go about creating the memory location to store the binary-ish information (e.g. true/false, yes/no, 1/0)? Hope

RE: [PHP] Is there a php built-in function to determine the numbe r of dimensions of the array?

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 13:09, Jay Blanchard contributed these pearls of wisdom: [snip] (ii) All PHP arrays are 1-dimensional. Some elements of an array may themselves contain arrays, but that only makes them nested arrays, not multi-dimensional. If what you want to know is the deepest level

RE: [PHP] trim...

2003-11-26 Thread Ford, Mike [LSS]
On 26 November 2003 16:59, [EMAIL PROTECTED] contributed these pearls of wisdom: Why doesn't this work...? $body = pblurb blah phappy days pend of text; $body = trim($body); $body now should output: pblurb blah\nphappy days\npend of text but it doesn't...? No it shouldn't -- it

RE: [PHP] Is there a php built-in function to determine the numbe r of dimensions of the array?

2003-11-27 Thread Ford, Mike [LSS]
On 26 November 2003 15:23, David T-G wrote: Jay, et al -- ...and then Jay Blanchard said... % % Curious, how is it that you define multi-dimensional? I'm no expert, but I'd say that a multi is addressed as array[x,y,z] while a nested is array[x][y][z] In a nutshell, yes --

RE: [PHP] Re: Capturing $_POST variables

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 14:21, Shaun wrote: Thanks you for your replies, is there a reason why i couldn't use the following? $_POST = $_POST; None whatsoever -- but it's an expensive way of effectively doing nothing! (Which, I suspect, is not what you want to do.) The fact that you are even

RE: [PHP] Forms and Arrays

2003-11-28 Thread Ford, Mike [LSS]
On 28 November 2003 14:36, Dave Carrera wrote: Hi List, I have a dynamically generated form with inputs with names that create arrays i.e.: input name=fname[] input name=flab[] input name=fplc[] The extra bits for the inputs are omitted deliberately for this question but exists in

<    1   2   3   4   5   6   7   >