RE: [PHP] If value is odd or not

2006-06-02 Thread Ford, Mike
On 02 June 2006 14:32, Jonas Rosling wrote: Hi all, is there any easy why to check if a value is odd or not? if ($value%2): // $value is odd endif; Cheers! Mike - Mike Ford, Electronic Information Services

RE: [PHP] Escaping quotes for DB Entry

2006-05-26 Thread Ford, Mike
From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: Fri 26/05/2006 15:41 A lot has been said recently about the dangers of the family of magic_quotes... I understand the dangers. The question is, for those of us using a database that does not have a *real_escape_string function...Oracle

RE: [PHP] Escaping quotes for DB Entry

2006-05-26 Thread Ford, Mike
From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Fri 26/05/2006 15:54 Brad Bonkoski wrote: All... A lot has been said recently about the dangers of the family of magic_quotes... I understand the dangers. The question is, for those of us using a database that does not have a

RE: [PHP] storing single and double quote in MySQL

2006-05-22 Thread Ford, Mike
On 22 May 2006 17:37, Brad Bonkoski wrote: Looks good to me, just make sure you use: http://www.php.net/manual/en/function.stripslashes.php if you have to dump that information back to the users. (you might want to check out: addslashes() to add the slashes before your DB insert, just to

RE: [PHP] selecting current month from a database

2006-05-22 Thread Ford, Mike
On , [EMAIL PROTECTED] wrote: I see Paul N. solved your selection problem. But I'm wondering why you need to store month names in a database. You could get them using date() and mktime() and avoid a db hit: foreach (range(1, 12) as $i) { echo date('F', mktime(0, 0, 0, $i)); }

RE: [PHP] array insights

2006-05-04 Thread Ford, Mike
On 03 May 2006 18:27, Jason Gerfen wrote: I am looking for some information on how to do this the correct way, here is the data I am working with: Array ( [hostname-0] = hostname [mac-0] = 00:0a:b3:aa:00:5d [ip-0] = 192.168.0.1 [subnet] = MMC-Subnet [group] =

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Ford, Mike
On 04 May 2006 13:52, John Wells wrote: On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote: Will this also work with an associative array? If this is what he is talking about, I tried it and it does not work I think you're correct. This is because PHP arrays are a mash-up (as

RE: [PHP] preg_replace_callback

2006-05-04 Thread Ford, Mike
On 04 May 2006 14:04, tJey wrote: Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error. Pattern : this pattern is intended to find strings like [field], [ fi12_eld]... but every time I get warning message Warning:

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Ford, Mike
On 02 May 2006 10:07, Barry wrote: Richard Lynch schrieb: On Tue, May 2, 2006 3:02 am, Barry wrote: Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I

RE: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Ford, Mike
On 02 May 2006 14:19, Barry wrote: Oh my god -- curly brackets and excessive indentation -- and curly brackets. Just a mo, where did I put my curly-brackets-and-whitespace-glasses? Aaaahhh, that's better!! As you might have guessed, I *HATE* curly brackets with a vengeance, which is

RE: [PHP] php_gd2.dll not found

2006-04-27 Thread Ford, Mike
On 26 April 2006 22:46, Ari Davidow wrote: Anomaly 2: When I do a phpinfo(); to see what is actually loaded (and to ensure that the correct php.ini is being loaded, etc.), among the info is the notice that I am using php 5.0.3-dev. I get the same info when I telnet to

RE: [PHP] session

2006-04-27 Thread Ford, Mike
On 26 April 2006 15:02, chris smith wrote: Can you explicitly pass the sessionid across: FRAMESET rows=100, 200 FRAME src=blah1.php?session_id=?php echo SID; ? FRAME src=blah2.php?session_id=?php echo SID; ? /FRAMESET ? That technique may or may not be the solution,

RE: [PHP] how to get the absolute path of an included file?

2006-04-27 Thread Ford, Mike
On 27 April 2006 15:25, Brad Bonkoski wrote: Bing Du wrote: Hello, Here are the two scripts. The result is 'var is' rather than 'var is foo'. My suspect is I did not set the file path right in 'include'. So in file2.php, how should I get the actual absolute path it really gets

RE: [PHP] how should MS Access DATETIME be handled in PHP?

2006-04-13 Thread Ford, Mike
On 13 April 2006 17:08, Bing Du wrote: Hi! Bing Du wrote: Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 )

RE: [PHP] php error reporting problem

2006-03-30 Thread Ford, Mike
On 29 March 2006 15:25, ngwarai zed wrote: phpinfo says Configuration File (php.ini) Path /etc/php.ini And the file I am editing is /etc/php.ini Is this not the one Iam supposed to edit? On list please! H'mmm -- file permissions? You've stopped and restarted Apache? Which operating

FW: [PHP] php error reporting problem

2006-03-30 Thread Ford, Mike
-Original Message- From: ngwarai zed [mailto:[EMAIL PROTECTED] Sent: 30 March 2006 13:36 I am using Fedora core 4. yes I stopped and restarted apache On 3/30/06, Ford, Mike wrote: On 29 March 2006 15:25, ngwarai zed wrote: phpinfo says Configuration File (php.ini) Path

RE: [PHP] Date addition problem

2006-03-29 Thread Ford, Mike
-Original Message- From: Adrian Bruce [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 13:52 I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by on each run an increasing number of weeks is added to

RE: [PHP] php error reporting problem

2006-03-29 Thread Ford, Mike
-Original Message- From: ngwarai zed [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 14:39 To: Christopher Murtagh The problem is I know what the error is. What I want is for the error to be shown when I run the script not to be just written to the error log. I tried changing

RE: [PHP] Letters in Loops

2006-03-23 Thread Ford, Mike
-Original Message- From: Ben Miller [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:08 To: php-general@lists.php.net Subject: [PHP] Letters in Loops In trying to make an alpha list, using the following: for($i=A;$i=Z;$i++) { echo $i; } Produces: A B C... X Y

RE: [PHP] making a tutorial

2006-03-17 Thread Ford, Mike
On 17 March 2006 07:39, Gustav Wiberg wrote: - Original Message - From: John Taylor-Johnston [EMAIL PROTECTED] To: PHP-General php-general@lists.php.net Sent: Friday, March 17, 2006 7:51 AM Subject: [PHP] making a tutorial I'm making a tutorial and don't really understand how

RE: [PHP] Re: How does one obtain the resolution of an image inPHP?

2006-03-17 Thread Ford, Mike
On 17 March 2006 11:15, - Edwin - wrote: A 15-inch monitor at 800x600 will have around 53ppi x 40ppi (800 pixels divided by 15 inches, etc.) and *the same* monitor at 1024x768 will have around 68ppi x 51ppi. Er, no. The 15inches is a diagonal measure, so the screen is actually about 12x9,

RE: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Ford, Mike
On 13 February 2006 14:38, zedleon wrote: I am using php as a cgi. The data from my html is piped through stdin using this code: ? $fp=popen(cat,r); $str=fgets($fp); print $str; The result I am getting looks like this: (which is correct) sender_name=zedleon[EMAIL PROTECTED]sender

RE: [PHP] PHP 4.2.2 Float-Mysql addition problem

2006-02-03 Thread Ford, Mike
On 03 February 2006 13:14, Andrei wrote: Welcome, Please note that using bc function variables will be of type string. So a code working with numeric values like: $a = 1; if( $a ) { ... } it's ok but with bc functions: $a = 14.5; $b = -14.5; $c = bcadd( $a, $b ); if( $c )

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 11:24, James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date(M, strtotime(next month)); outputs: Mar while echo date(r,time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? Because 1

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:13, Barry Krein wrote: Ford, Mike wrote: Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date(M ...). 2 months from now is 31-Mar, which is ok; 3 months from now would be 31-Apr, which would likewise be taken to mean

RE: [PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:29, Barry wrote: James Benson wrote: The case makes no difference, because... echo date('r', strtotime (next Month)).\n; echo date('r', strtotime (next month)).\n; I was referring here to a note on php.net - For those upgrading from PHP 4 to PHP 5 there are

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:50, James Benson wrote: Barry wrote: Ford, Mike wrote: Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date(M ...). 2 months from now is 31-Mar, which is ok; 3 months from now would be 31-Apr, which would

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:04, James Benson wrote: Because 1 month from 31-Jan is 31-Feb -- which is taken to mean 02-Mar, hence the output of date(M ...). why though, one month from now is 31 Feb, why would it take it as something else? That does not make sense to me! Well does 31st

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 14:12, Barry wrote: Barry wrote: Last try: Edit: also 31st January - +2 Month - is for me 3rd April 31st March is not true because i miss 3 (!!) days. Huh? Are you saying that, for you: strtotime(+2 months); gives 3rd April? If so, I would be

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 14:52, Barry wrote: Ford, Mike wrote: On 31 January 2006 14:12, Barry wrote: Barry wrote: Last try: Edit: also 31st January - +2 Month - is for me 3rd April 31st March is not true because i miss 3 (!!) days. Huh? Are you saying

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 15:41, Barry wrote: Ford, Mike wrote: Yes, but 1 apple is 1 apple is 1 apple. 1 month can be 28 days, or 31 days, or anything in between. 2 months can be anything from 59 to 62 days. A month is an imprecise measure, and adding them together will get you an even

RE: [PHP] html forms and php

2006-01-31 Thread Ford, Mike
On 31 January 2006 16:08, Philippe Reynolds wrote: I added the square brakets to the name...now when I select all the options on the list I can read all values individually. Here is problem...my javascripts have stopped working, I can't move options from one list to the next. Here is the

RE: [PHP] Warning: Missing argument 7 calling a function

2006-01-10 Thread Ford, Mike
On 09 January 2006 16:14, enediel gonzalez wrote: thanks everybody who answered me, the segment bellow is the code that gave me problems, the $app_name was the 7th parameter neccesary for me to call the GetCommandDeclaration function, the solution I had for a while was to declare the

RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-13 Thread Ford, Mike
On 13 December 2005 04:22, Ray wrote: Hello, Thanks Matt, I appreciate your help. your solution is a lot easier than mine. even easier: extract($_POST); -Original Message- From: Matt Babineau [EMAIL PROTECTED] To: 'Ray' [EMAIL PROTECTED], php-general@lists.php.net Date:

RE: [PHP] Re: array carrying from one php page to another

2005-12-09 Thread Ford, Mike
On 08 December 2005 16:47, Sandy Keathley wrote: I have an array $journal that I want to carry from a page (where it was created) to another page (a popup that shows the variables contents). Is this automatically available? or do I have to do something special to php?? One way:

RE: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-08 Thread Ford, Mike
-Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: 07 December 2005 19:34 To: comex Cc: php-general@lists.php.net Subject: Re: [PHP] Preventing Cross Site Scripting Vulnerbilities function chk_input( $string ) { if( eregi( ^[0-9a-z_ -]$, $string ) ) {

RE: [PHP] Database problem?

2005-11-29 Thread Ford, Mike
On 28 November 2005 19:28, Jim Moseby wrote: Damn! It Worked. Thanks :) Even so, John's excellent advice should still be taken. You should not generally code with a dependence on register_globals, for reasons you have just seen. Also, it seems likely that register_globals will go

RE: [PHP] understanding session vars ?

2005-11-24 Thread Ford, Mike
On 24 November 2005 10:24, Gregory Machin wrote: I have a test script.. What i'm trying to achieve is once the user has clicked on link1 the value of item must equal x and if the user clicks on link2 the value of items must stay equal to x while setting action equal to y .. ?php

RE: [PHP] Wierd error

2005-11-17 Thread Ford, Mike
On 17 November 2005 14:31, Chris Boget wrote: I'm seeing the following line showing up in my logs: 08:08:30 [warning] [Unknown][0]: Unknown(): Unable to call () - function does not exist The line to concentrate on is this one: $dbObject = new IPI_OfficeDetailsInterface();

RE: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Ford, Mike
-Original Message- From: Leonard Burton [mailto:[EMAIL PROTECTED] Sent: 16 November 2005 03:39 To: php-general@lists.php.net Basically here is the regex I used (I am not the best with regexes): $pattern = /^[0-9]?[A-Z]{1,2}[0-9][A-Z]{1,3}/; Here are how they look W1W W1AW

RE: [PHP] fopen on windows

2005-11-14 Thread Ford, Mike
On 11 November 2005 20:52, Jay Blanchard wrote: $theFile = fopen(docs/InstallationInstructionMaster.txt, r) || die; You need or not || here. The operator priorities are such that the above means $theFile = (fopen(docs/InstallationInstructionMaster.txt, r) || die); which assigns TRUE to

RE: [PHP] fopen on windows

2005-11-14 Thread Ford, Mike
On 11 November 2005 21:21, Nathan Tobik wrote: I've always used: fopen(C:\\dir\\dir\\file.txt); on windows, I'm not sure how PHP interprets the slashes internally though... On Windows, / in filenames is internally translated by PHP to \ -- which means you can write code that works on

RE: [PHP] php session in ie

2005-11-14 Thread Ford, Mike
On 11 November 2005 18:47, sunaram patir wrote: array(1) { [PHPSESSID]= string(32) 337a44c0d6c9ed3cf4ba4e97d707589e } is returned by firefox on calling var_dump($_COOKIE). NULL in ie. If the very same piece of PHP produces different results in different browsers, this *MUST* be due to

RE: [PHP] PHP 5.1 release ?

2005-11-07 Thread Ford, Mike
On 07 November 2005 00:51, Dan Rossi wrote: Hi there just wondering when there may be a php 5.1 release ? I just went into the downloads on the php site and the link to RC1 has been removed ?? Current Release candidate is 5.1.0RC4,so I guess RC1 was removed as too out of date. Last I saw,

RE: [PHP] if statement help

2005-11-04 Thread Ford, Mike
On 03 November 2005 15:26, Brent Baisley wrote: You only need one if. The parenthesis will evaluation order. if( ( !empty( $var1 ) || ( !empty( $var2 ) !empty( $var3 ) ) || $var1 == something ) However, the $var1==something test is redundant in this, since if that is true the

RE: [PHP] Sessions and register_long_arrays

2005-11-02 Thread Ford, Mike
-Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: 29 October 2005 14:48 Strange behaviour that's taken me ages to track down. I have the situation where I can create a session, but any changes to it are not saved. session_write_close() didn't help. Eventually I

RE: [PHP] Type of form element

2005-11-02 Thread Ford, Mike
-Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: 31 October 2005 17:19 To: Marcus Bointon Marcus Bointon wrote: The thing I was wrong on is that PHP converts unset parameters (as opposed to nonexistent ones which it obviously can't do anything about) to

RE: [PHP] re: some problems with php form

2005-10-20 Thread Ford, Mike
On 19 October 2005 19:24, Jay Blanchard wrote: [snip] input class=?PHP if ($error_msg) {echo error} else {echo normal}? id=firstname name=firstname type=text value=?php echo $_POST['firstname'] ? how would I fix this error? [/snip] You are missing several semi-colons; input

RE: [PHP] re: some problems with php form

2005-10-18 Thread Ford, Mike
On 18 October 2005 15:50, Bruce Gilbert wrote: I think so Minuk. Here is the *entire* form code below. Maybe someone can also point out why the email regex validation code isn't working? TIA /begin PHP form code*/ ?php

RE: [PHP] mktime

2005-09-13 Thread Ford, Mike
On 13 September 2005 00:08, Dan Brow wrote: A little confused with mktime, I'm trying to get how many days are in a year. $year = 2006; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 You're asking for the 0th day of the first month here, which is (guess what!) the last day of

RE: [PHP] preg_match help please

2005-09-08 Thread Ford, Mike
On 08 September 2005 09:15, Steve Turnbull wrote: On Thu, 08 Sep 2005 19:27:49 +1200, Jasper Bryant-Greene wrote: Steve Turnbull wrote: I am trying to find a regular expression to match a variable, what I think should work (but doesn't) is; preg_match ('^/[\w],[\w],/',

RE: [PHP] String format problem

2005-09-01 Thread Ford, Mike
On 31 August 2005 16:56, [EMAIL PROTECTED] wrote: $varname = '$firstname $lastname told me to find the file in folder C:\newtext\'; echo $varname; Yields.. $firstname $lastname told me to find the file in folder C:\newtext\ Actually, that'll give you an error as well, since \' is also

RE: [PHP] foreach loop changed after 4.3 - 4.4 upgrade

2005-08-23 Thread Ford, Mike
-Original Message- From: Larry Brown To: php Sent: 23/08/05 02:28 Subject: [PHP] foreach loop changed after 4.3 - 4.4 upgrade I had a foreach loop working on an array as such: $multiarray = array(array('person','person'),array('another','another')) the array was put through

RE: [PHP] rename an uploaded file.

2005-08-11 Thread Ford, Mike
On 10 August 2005 22:19, Richard Lynch wrote: You can also, in some versions, get away with having \ inside of so long as the following character isn't special: $string = C:\homedirectory\uploadedfiles\\newfile.gif; Note that the 'n' character is special (newline) but 'h' and 'u' are not

RE: [PHP] Multipage form redux

2005-07-28 Thread Ford, Mike
On 28 July 2005 13:39, Jack Jackson wrote: What I wanted to do was this: p. 1 : I send client page one, they send answers. SUBMIT sends to page 2 script. p 2. Before displaying anything to the client, Page 2 script validates input from page 1. If there are problems, page 2 script

RE: [PHP] Re: gloabl reference behavior question?

2005-07-26 Thread Ford, Mike
On 22 July 2005 19:47, Surendra Singhi wrote: I don't think it will make the code confusing, but the person looking at the code should understand how reference and global variables work. Using reference variables avoids unnecessary extra copying of objects, and while using large arrays it

RE: [PHP] Help with a home-grown function

2005-07-26 Thread Ford, Mike
On 21 July 2005 22:19, Chris W. Parker wrote: 2. It will be a good idea to get out of the habit of breaking in and out of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost exclusively. In my 10,000s of lines of

RE: [PHP] cURL - is it best for me?

2005-07-26 Thread Ford, Mike
On 26 July 2005 14:38, George Pitcher wrote: So my questions are: Is there a way for me to (using cURL) ask COPAC how many records match the search and if 0, return the data in a way that I can use it as I wish? If not, is there another tool that I should be using? Maybe you should be

RE: [PHP] gloabl reference behavior question?

2005-07-21 Thread Ford, Mike
On 20 July 2005 23:40, Surendra Singhi wrote: Hello, (1) When I try this code: ?php $var_global = stuff; function f1() { global $var_global; This is equivalent to creating a $var_global which is local to the function, and making it be a reference to the global

RE: [PHP] Oracle Interface

2005-07-12 Thread Ford, Mike
Hi guys!! I'm just getting back into harness after 4 months off work following major surgery, so I'm well behind on all the PHP groups. It's nice to be back! Forgive me for responding to this one over a month later, but I haven't seen anybody else pointing this out: On 13 June 2005 13:30,

RE: [PHP] Re: Strange notation to create object

2005-07-12 Thread Ford, Mike
On 24 June 2005 15:03, Jason Barnett wrote: Robert Cummings wrote: ... There's a difference between a reference to a reference and a copy of a reference *hehehe*. Cheers, Rob. Dear diary: jackpot! Now that makes sense. And am I correctly filling in the blanks when I

RE: [PHP] php and javascript

2005-04-12 Thread Ford, Mike
-Original Message- From: Richard Lynch To: Marek Kilimajer On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said: Assuming your form is named Selection, you will have a javascript array document.forms['Selection'].elements['distID[]'] available. You can try:

RE: [PHP] passing return value from fucntion

2005-03-18 Thread Ford, Mike
-Original Message- From: William Stokes Sent: 18/03/05 07:33 Hello, Just simple question (I think?) How to pass return value from function to the main program? Here's example: do some code in funtion to set the $res value: } elseif ($rightsid == $oik6) { $res = ok;

RE: [PHP] combining values

2005-03-02 Thread Ford, Mike
-Original Message- From: Bret Hughes Sent: 01/03/05 18:43 On Tue, 2005-03-01 at 11:44, Sascha Kaufmann wrote: $birthday = $day.'.'.$month.'.'.$year; why wouldn't $birthday = $day.$month.$year; work as well. --- It would -- which to use is a matter of

RE: [PHP] String - Number Automatic Conversion

2005-02-04 Thread Ford, Mike
On 03 February 2005 19:40, Nuzzo Art-CINT116 wrote: Is this a bug or am I missing something. It's a bug -- see http://bugs.php.net/bug.php?id=30726 Reported fixed on 18-Jan-2005, so I guess you're looking at 4.3.11/5.0.4 to actually contain the fix. Are there patches

RE: [PHP] String - Number Automatic Conversion

2005-02-03 Thread Ford, Mike
On 03 February 2005 16:07, Nuzzo Art-CINT116 wrote: I am not sure if this is a bug or I am just doing something dumb but I am having a problem with automatic converting of strings to a number between 0 and -1. For example: 1 = -.15 + 0, [1] = 0 Is this a bug or am I

RE: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 26 January 2005 19:56, [EMAIL PROTECTED] wrote: On 26 Jan 2005 Jason Barnett wrote: if (isset($_POST['checkboxfieldname'])) { /** do stuff */ } Sorry, I should

RE: [PHP] escaping quotes

2005-01-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 27 January 2005 12:14, Giles wrote: Hi Guys Really simple question. How do I change the following: print(value=' . $attributes[messageSubject] . '); to have double

RE: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Ben Edwards [mailto:[EMAIL PROTECTED] Sent: 26 January 2005 10:15 On Tue, 25 Jan 2005 17:02:21 -0800, Chris [EMAIL PROTECTED] wrote: You

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-25 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 25 January 2005 00:25, Ben Edwards wrote: On Mon, 24 Jan 2005 20:15:15 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed

RE: [PHP] sorting associative array

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 23 January 2005 22:37, Jeffery Fernandez wrote: Kurt Yoder wrote: Use usort (stealing from php docs): function cmp($a['score'], $b['score']) That should be:

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 21 January 2005 22:01, Potter, Jeff wrote: Hello, Could someone help me understand why later versions of PHP (4.3.9, 4.3.10, 5.0.3) do not maintain the same ordering for

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 16:42, Potter, Jeff wrote: Hi Mike, I would seem so, but the patch (in snapshot php4-200501201930) only seems to work when the output_buffering is set to 0.

RE: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 17:04, Ben Edwards wrote: On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] String to Date Function

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 19:01, Ben Edwards wrote: On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function?

RE: [PHP] Seemingly weird regex problem

2005-01-21 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 20 January 2005 20:36, Tim Boring wrote: On Thu, 2005-01-20 at 14:40, Bret Hughes wrote: On Thu, 2005-01-20 at 12:43, Jason Wong wrote: On Friday 21 January 2005 02:16,

RE: [PHP] my for loop's gone bananas.. has yours?

2005-01-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Tim Burgan [mailto:[EMAIL PROTECTED] Sent: 19 January 2005 06:19 I have a for loop to create a HTML combo box that displays the 10 year

RE: [PHP] regex help

2005-01-14 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Jason Morehouse Sent: 13/01/05 21:06 I normally can take a bit of regex fun, but not this time. Simple enough, in theory... I need to match

RE: [PHP] Preventing execution without inclusion

2005-01-14 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Adam Hubscher Sent: 13/01/05 22:25 From within the application, I use one page to include classes/variables and so on. Is there a way (I

RE: [PHP] delete part of array

2005-01-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 January 2005 05:28, Matthew Fonda wrote: use the unset() function. for ($i = 0; $i count($array); $i++) { if (empty($array[$i]) {

RE: [PHP] weird upload problem

2005-01-12 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: 12 January 2005 01:59 form action=/ enctype=multipart/form-data method=post 1: input type=file

RE: [PHP] Comparison Operator

2005-01-11 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 January 2005 21:20, Chadwick, Russell wrote: The function this is from sometimes uses $_POST or $_GET input, so sometimes its comparing 1337 with '1337' and === would break

RE: [PHP] On large application organization [long and possibly bo ring]

2005-01-07 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 07 January 2005 00:37, Josh Whiting wrote: Correction: include() statements are executed at *run time*, which means that if the case is not executed, the include will not be

RE: [PHP] Re: On large application organization [long and possibl y boring]

2005-01-07 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 January 2005 23:40, Jason Barnett wrote: I thought there was a difference for include and require for conditionals. But apparently not. :) There used to be, somewhere

RE: [PHP] On large application organization [long and possibly bo ring]

2005-01-07 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 07 January 2005 00:20, Jason Barnett wrote: That was what I thought also. However just to add to the confusion: I think require'd files were evaluated no matter what back in

RE: [PHP] Re: negative numbers

2004-12-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Jason Wong Sent: 27/12/04 10:16 On Monday 27 December 2004 12:40, Richard Lynch wrote: If you want to mimic the behaviour of abs (allowing

RE: [PHP] String: Arrays of arrays.

2004-12-23 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 23 December 2004 07:39, Song Ken Vern-E11804 wrote: Hi, I have an array of array of strings :- $g1 = array(453, 592); $g2 = array(e14, e15, e13); $groups = array($g1,

RE: [PHP] Parse Error... how to fix?

2004-12-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 December 2004 17:39, GH wrote: Hi All... Got a problem... here is the error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in

RE: [PHP] Byte Array

2004-12-14 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Ian Firla Sent: 14/12/04 17:52 On Tue, 2004-12-14 at 08:40 -0800, Richard Lynch wrote: Ian Firla wrote: Just a follow-up to myself...

RE: [PHP] allow_url_fopen ini directive not enough

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 22:07, Richard Lynch wrote: This is a MUCH BIGGER PROBLEM than remote include working or not. You've *GOT* to get those files *OUT* of the web-tree. The

RE: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 12 December 2004 14:27, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind; $Ind

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 December 2004 16:14, Steve wrote: Seems like this is something that either the GD lib or PHP should be doing and not the user. Shouldn't this be reported as a bug?

RE: [PHP] I'm Back i'm beginner and i couldn't solve the prob lem

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm Please keep this conversation on-list. Not only would you probably have got a much faster response, it also lets anybody else reading this thread follow it to its conclusion. On

RE: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 December 2004 14:00, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: If in doubt, print it out (TM) echo '$Indbr', $Indbr, $Ind

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 22:41, Ben C wrote: I have a form which has a text box which then stores in MySQL. When I write seperate paragraphs and try and then view what I wrote it

RE: [PHP] baffled - please explain

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 00:06, Malcolm Mill wrote: Hi, I just came across a sniplet of code in a book I'm reading and I'm not sure what point the author is trying to make. The

RE: [PHP] baffled - please explain

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 00:15, adwin wijaya wrote: but { ? My function was called ?php } is not correct :) Why do you say that? Looks perfectly fine to me. Cheers!

RE: [PHP] I'm Back i'm beginner and i couldn't solve the prob lem

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 02:57, Mecnun wrote: hi again, I tried all the corrections that you showed me. Nothing worked and I uploaded my scripts to a web hosting server and I saw

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 13:27, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Now in an earlier response I asked you to track your variables and see at which

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 20:10, Stuart Felenstein wrote: Sorry, I'm not following you. Where are my GET parameters ? The way I've built my present script is the reults page is

<    1   2   3   4   5   6   7   8   9   10   >