[PHP] --enable-radius, not found

2006-03-27 Thread Mike Milano
system is WinXP using the platform SDK for Win2k to compile. I get the same results compiling in VC7. Any insight into what might be causing this would be greatly appreciated. Thank you, Mike Milano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Letters in Loops

2006-03-23 Thread Ford, Mike
stops? It's when it reaches "ZA", which is, not surprisingly, the iteration after "YZ". So you need it to exit when you reach the value after "Z", which you can see is "AA", thus you need to write: for($i='A'; $i!='AA'; $i++)

Re: [PHP] Creating a Window without JavaScript that is on top

2006-03-22 Thread Mike Rondeau
I'd like to echo that statement! Mike - Original Message - From: Todd Cary To: php-general@lists.php.net Sent: Wednesday, March 22, 2006 5:49 PM Subject: Re: [PHP] Creating a Window without JavaScript that is on top Thank you! Very helpful indeed! Todd

[PHP] Alright, how do you unsubscribe?

2006-03-17 Thread Mike McGonagle
it works? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-03-17 Thread Ford, Mike
about 12"x9", giving 67ppi in both directions. Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds

RE: [PHP] making a tutorial

2006-03-17 Thread Ford, Mike
in Javascript you could > loop through favourite as an array. I don't know if this works in PHP > as well. It's easy enough to treat it as an array in Javascript with the brackets -- you just have to understand the equivalence between objects and arrays. Cheers! Mike --

Re: [PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
Nevermind - i found the documentation that answers my question - thanks for the help Jeremy and Jochas. - MD ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PROTECTED] [ p ] 323.644.7808 On Mar 15, 2006, at 1

Re: [PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
the time to respond to my question. - MD ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PROTECTED] [ p ] 323.644.7808 On Mar 15, 2006, at 1:17 PM, Jochem Maas wrote: Mike Dunlop wrote: Hi Guys, I am wondering how t

[PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
und this (e.g. direct access to a variable via "::" syntax like myClass::variable). Does PHP5 address this at all? Many thanks on this. Best, Mike D ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PROTECTED] [ p ] 323.644.7808

Re: [PHP] Zoomable map

2006-03-08 Thread Mike Smith
recommend that. -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] __call() and interfaces

2006-02-21 Thread Mike Pfaff
n value types)? Somehow neither a) nor b) seems "the right way" to do what i want, so i would be glad to hear your opinions on this. I would also be interested what the best solution would be from a performance point of view. Regards, Mike -- PHP General Mailing List (http://www.ph

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
wrote: On Thu, Feb 16, 2006 at 01:23:23PM -0600, Richard Lynch wrote: On Thu, February 16, 2006 9:07 am, Mike Tuller wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() a

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
eb 16, 2006, at 9:14 AM, Dan Parry wrote: Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings HTH Dan -Original Message- From: Mike

[PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
I have a page that submits form information into a database, and all is good, but someone testing the page pointed out something to me that I didn't notice. I have a form that sends you to another page that submits the data into a database. If you refresh the page, the information is submitted aga

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

2006-02-13 Thread Ford, Mike
p is appreciated. I should think http://www.php.net/parse_str is what you're looking for. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services,

[PHP] GPG on Safe Mode - Other Options

2006-02-13 Thread Mike Pogue
Hi all, I'm trying to use GPG encryption on a server with Safe Mode on so exec, system ... do not work. Also I can not load any pecl modules. Is any other way I can encrypt/decrypt from PHP using the public/secret key model? Many Thanks, Mike

Re: [PHP] form & get vars

2006-02-03 Thread Mike Smith
Change: blue to: blue//You don't need the value="blue" in this case Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-02-03 Thread Ford, Mike
licitly equivalent to FALSE -- see http://www.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Infor

RE: [PHP] html forms and php

2006-01-31 Thread Ford, Mike
['trucklist[]'], fleetForm['reportinglist[]'])" No need to mess about with the complications of DOM and getElementById -- it's much more backward compatible for older browsers, as well, since that identity has existed since day one of JavaScript. Cheers!

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,

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

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
2 months to 31st Jan. If you want 2 months from today, ask for 2 months from today -- not 1 month from 1 month from today!! Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, L

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
g else? > > That does not make sense to me! Well does 31st February make sense to you?? It *has* to take it as something else, and the most obvious thing to take it as is 3rd March (not 2nd -- I was wrong before as 2006 is not a leap year!) which is the day that wo

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" ...). > > > > >

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

2006-01-31 Thread Ford, Mike
> separate fresh installations of PHP 4.4.1 and PHP 5.1.1. > > 5) Some uppercase and mixed-case strings no longer parse > correctly. In > php4 "Yesterday" would parse correctly. In php5 "Yesterday" > will return > the infamous

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

RE: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
Apr, which would likewise be taken to mean 01-May. This is all as expected -- no bug here. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, J

Re: [PHP] wiki question

2006-01-30 Thread Mike Smith
...dang, hit the reply, not the reply to all...Sorry about that Jay. http://sourceforge.net/projects/phpwiki/ I haven't tried it, but it looks like phpwiki supports adodb/pear, so if you've got you mssql extension loading you should be able to use it. How's that for a product end

Re: [PHP] New to PHP

2006-01-19 Thread Mike Rondeau
browser by typing http://localhost/newpage.php or else http://127.0.0.1/newpage.php then refresh that as you change little details to your css or php code or whatever. Localhost or 127.0.0.1 is your server on your computer. Good luck! Mike - Original Message - From: Jedidiah

Re: [PHP] New to PHP

2006-01-19 Thread Mike Rondeau
I use Xampp because I'm new to all of this also, and it makes setup a breeze. http://www.apachefriends.org/en/ This installs Apache, mysql, php, pearl, ftpzilla, all kinds of stuff, already configured and ready to rock. It doesn't get any easier. Mike - Original Message ---

Re: [PHP] Regex help

2006-01-13 Thread Mike Smith
Eric, thanks for replying. I couldn't quite get that to work. Albert, I'm currently working with what you suggested, though the unit names are not that consistent: $vals = preg_split(' ?X? ',$unit[1]); echo "".$unit[1]."\n"; echo "Panel: ".$vals[0]."Width: ".$vals[1]."Height: ".$vals[2]."\n"; 202

[PHP] Regex help

2006-01-13 Thread Mike Smith
ch); print_r($match); echo "Panel: ".$match[0]; } The $match array is empty. Actually looking at the data there are so many typos (imported from Excel) that I will probably have to update by hand, but out of curiosity now what would be a good regex for the info give

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Mike Smith
ate($format,strtotime($result)).""; } ?> http://us2.php.net/manual/en/function.strtotime.php http://us2.php.net/manual/en/function.date.php Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-01-10 Thread Ford, Mike
minimum']; > $maximum = $row['maximum']; > $sport = $row['$sport']; > > $app_name = $row['app_name']; > > $str_command_declaration = GetProcedureDeclaration($RPM, $var2, > $RFactor, > > $minimum, $maximum, > $sport); > //code he

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Yes, I think we all deserve at least one Mulligan on Mondays. On Jan 9, 2006, at 1:43 PM, John Nichel wrote: Jay Blanchard wrote: [snip] Ah, but then it would be a CSS question, and not a PHP one. ;) [/snip] Touche'! But then we wouldn't be kinder and gentler We'd have an excuse...it i

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Thanks. This is perfect. On Jan 9, 2006, at 12:07 PM, John Nichel wrote: Mike Tuller wrote: I am drawing a blank on how to go about doing this for some reason. I have a page that pulls info from a database, and I want to have a version for viewing, and a version fro printing. Since

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Because I wasn't sure the best way to pass the information to a separate page. What John has is different than the direction I was thinking, but will work. On Jan 9, 2006, at 12:17 PM, Jay Blanchard wrote: [snip] Why don't you make a prit.php file that handles all the dynamic content and

[PHP] CSS Switching

2006-01-09 Thread Mike Tuller
I am drawing a blank on how to go about doing this for some reason. I have a page that pulls info from a database, and I want to have a version for viewing, and a version fro printing. Since the data is dynamic, I need to keep the data, but be able to switch the stylesheet. Can someone give

[PHP] Browser on server doesn't refresh

2006-01-06 Thread Mike Tuller
This is a perplexing problem. I am running OS X on my laptop, and I have created a script running locally that when I click submit, a page loads to show what was submitted and then I have a link that will take me back to the original page. When I run the script locally, everything works. Wh

Re: [PHP] Re: Set variable outside of scope (redo)

2006-01-06 Thread Mike Tuller
Thanks. That is what I needed. That part works now. On Jan 5, 2006, at 4:09 PM, comex wrote: if ($row[range] != "") This should be $row['range'], not $row[range], although it doesn't make a difference unless you define a constant named range. Your problem isn't actually scope, it's

Re: [PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
It's more like this: if { $x=1; echo $x; } elseif { echo $x; } On Jan 5, 2006, at 1:51 PM, Jay Blanchard wrote: [snip] The list listing is in an if/elseif statement where if something is set, display the table that has the data, and elseif you click on the delete button

[PHP] Set variable outside of scope (redo)

2006-01-05 Thread Mike Tuller
Excuse the last post, I didn't have all the code it there. I have a table listing items in a database, and have a delete button next to each item, and I want to be able to click on the delete and delete only that record in the database and then reload the page where it would display the updated i

Re: [PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
The list listing is in an if/elseif statement where if something is set, display the table that has the data, and elseif you click on the delete button, you would delete the data in the row of the table that is is the if statement. One part of the data is in the if scope, and the other is i

[PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
I have a table listing items in a database, and have a delete button next to each item, and I want to be able to click on the delete and delete only that record in the database and then reload the page where it would display the updated information. Here is part of the code I have.

Re: [PHP] Timezone and DST

2006-01-05 Thread Mike Tuller
ment. > > -Original Message- > From: Mike Tuller [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 05, 2006 11:02 AM > To: Mark Steudel > Cc: php-general@lists.php.net > Subject: Re: [PHP] Timezone and DST > > Are you just displaying the time, or is this for subm

Re: [PHP] Timezone and DST

2006-01-05 Thread Mike Tuller
Are you just displaying the time, or is this for submission in a database? On Jan 5, 2006, at 12:50 PM, Mark Steudel wrote: Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Mike Rondeau
I am still a newbie, but I am suprised that it effects browers at all, since it returns pure HTML to the browser, right? Something so simple as echoing a "hello world" shouldn't cause trouble in so popular a browser as Netscape I would think... Mike PHP Newbie - O

Re: [PHP] Random Images with no duplicates?

2005-12-20 Thread Mike
"Mike" <[EMAIL PROTECTED]> wrote in message news:... I'd just like to thank everyone who helped me our with this. I think it's great that so many people would be so helpful and not expect anything in return. This list is quite a storehouse of info and I'm learni

Re: [PHP] Mathmatical formula

2005-12-20 Thread Mike Smith
> Let's do an experiment. Place these two lines of code in a page, then load > it in a browser; > > > $foo = (36.0*58.0)/144; > echo $foo; > > ?> > > works fine for me. If you change > > > > to > > > Yep, that does work. Thanks

Re: [PHP] Mathmatical formula

2005-12-20 Thread Mike Smith
> Try; > > $foo = preg_replace($find,$replace,$partFormula); > return $foo Unfortunately no. I also tried making the formula look like this: and returning it with: eval('?>' . $a . 'http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mathmatical formula

2005-12-20 Thread Mike Smith
f AS $key => $val){ array_push($find,"[$key]"); array_push($replace,$val); } return preg_replace($find,$replace,$partFormula); //returns (36.0*58.0)/144 eval() doesn't seem to do much for me (parse error, unexpected $end)

[PHP] Re: בעניין: Re: [PHP] Hi!

2005-12-20 Thread Mike Smith
On 12/20/05, Nanu Kalmanovitz <[EMAIL PROTECTED]> wrote: > > Thanks! > > Since I am a newbie with the Apache \ PHP \ MySQL, can u tell me what file > and what shall I add\change in it? > > TIA > > Nanu > Google for install php netware Try: http://developer.novell.com/ndk/whitepapers/namp.htm -- PH

Re: [PHP] Random Images with no duplicates?

2005-12-19 Thread Mike
I'd just like to thank everyone who helped me our with this. I think it's great that so many people would be so helpful and not expect anything in return. This list is quite a storehouse of info and I'm learning just from reading the posts since I joined last week! Again, tha

[PHP] Random Images with no duplicates?

2005-12-15 Thread Mike
hat sometimes, the same image displays twice or more on the same page-load. My page requires 10 different places where my images need to load, but I can't have any duplicate images show up. Any suggestions on what I need to modify here? Thanks in advance! Mike -- PHP General Mailing L

[PHP] Random Images with no duplicates?

2005-12-15 Thread Mike Rondeau
is that sometimes, the same image displays twice or more on the same page-load. My page requires 10 different places where my images need to load, but I can't have any duplicate images show up. Any suggestions on what I need to modify here? Thanks in advance! Mike -- PHP General Mailing L

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

2005-12-13 Thread Ford, Mike
> > > Foreach($_POST as $key => $value) ${$key} = $value; > > > > That will convert all of your post variables to local variables. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Lear

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

2005-12-09 Thread Ford, Mike
ION['array'] = serialize($array); Why on earth would you want to serialize an array you're adding to the session? That's just a terrible waste of good machine cycles. > Zend Certified Engineer Really?? I think I just lost all faith in that "qualification". Chee

RE: [PHP] Preventing Cross Site Scripting Vulnerbilities

2005-12-08 Thread Ford, Mike
e above is effectively the same as (the more readable and more efficient): function chk_input( $string ) { return eregi( "^[0-9a-z_ -]$", $string ); } if (chk_input( $string )) { echo "valid"; else { echo "invalid"; } And, personall

[PHP] Re: [PHP-DEV] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-05 Thread Mike Bretz
ZendOptimizer will be available for PHP5.1 within "a few weeks" - that's what you get from zend support. mike Joseph Crawford wrote: i keep getting an error that zend optimizer doesnt work with this version of PHP, can anyone explain why that would be? i have gone into zend

RE: [PHP] Database problem?

2005-11-29 Thread Ford, Mike
ems likely that register_globals will go away completely in PHP 6, so writing new code now that depends on it being on is just foolish. Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services,

RE: [PHP] understanding session vars ?

2005-11-24 Thread Ford, Mike
ng of your output page, and one tag at the end. Additionally, you shouldn't need to strip_tags(SID) -- if the constant SID exists, it will be well-formed. What are the value of your session.use_trans_sid, session.use_cookies and session.use_only_cookies settings? Cheers! Mike ---

Re: [PHP] Decision table/business rule parser?

2005-11-21 Thread Mike Smith
know. All that to say, if your requirements are modest it may be worth it to "roll your own". With jBPM I "hope" I'll be able to change "routing"/approval of electronic documents more easily than it is currently. Good luck, Mike -- PHP General Mailing List

RE: [PHP] Wierd error

2005-11-17 Thread Ford, Mike
ng to do a bitwise and operation, which isn't terribly meaningful when an object is involved! Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Servi

[PHP] Suppressing Notices from imap_headerinfo()?

2005-11-17 Thread Mike Walsh
derinfo() is dumping it's notices directly. Any suggestions on how to suppress these notices? I don't even use the email field in my application. Thanks, Mike -- Mike Walsh -- mike underscore walsh at mindspring dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Ford, Mike
ble, to merge this with the first form, due to the requirement for exactly 3 letters vs 1-3; some kind of complicated look-behind might do it, but I don't think I even want to try! Cheers! Mike Mike Fo

RE: [PHP] php session in ie

2005-11-14 Thread Ford, Mike
PHP to allow for the difference. ;) Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Heading

RE: [PHP] fopen on windows

2005-11-14 Thread Ford, Mike
by PHP to "\" -- which means you can write code that works on both Windows and *n*x using "/". *Really* portable code uses the DIRECTORY_SEPARATOR constant, however. Cheers! Mike ----- Mike Ford, Electron

RE: [PHP] fopen on windows

2005-11-14 Thread Ford, Mike
"or" works out to be: ($theFile = fopen("docs/InstallationInstructionMaster.txt", "r")) or die; which assigns the result of fopen() to $theFile, and then executes die if it's false -- which is much more satisfactory. ;) Cheers! Mike -

RE: [PHP] Text between two tags

2005-11-10 Thread mike bellerby
try explode using then on array index[1] explode your answer will then be in index[0] Hope this helps Mike Message Received: Nov 10 2005, 03:01 PM From: "Normmy2k" <[EMAIL PROTECTED]> To: php-general@lists.php.net Cc: Sub

RE: [PHP] PHP 5.1 release ?

2005-11-07 Thread Ford, Mike
ast I saw, target release date was end of this week. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds

RE: [PHP] if statement help

2005-11-04 Thread Ford, Mike
test is redundant in this, since if that is true the !empty($var1) test will also be true and the rest of the test will not be evaluated. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Servi

RE: [PHP] Type of form element

2005-11-02 Thread Ford, Mike
ot; are not the same thing (sort of like how > "untie" and "not tied" are also not the same). Well, yes, except that "unset" and "not set" also *ARE* the same thing, sort of like how "untied" and "

RE: [PHP] Sessions and register_long_arrays

2005-11-02 Thread Ford, Mike
entually I tracked it down: if you have register_long_arrays disabled (as is the default in PHP5), this can happen. Anyone else seen this? Any idea why it might be happening? -- Have you seen http://bugs.php.net/bug.php?id=34542? Che

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

2005-10-20 Thread Ford, Mike
P doesn't let you omit that semicolon ;) > value=""> Nope, that one's definitely not necessary -- I actually think it looks ugly, so never put one in just before ?> Cheers! Mike - Mike Ford, Ele

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*/ > > $f

[PHP] Remove X-PHP-SCRIPT from mail header

2005-10-10 Thread Mike Pogue
Hello! I'm looking for a way to remove or disable X-PHP-SCRIPT from mail headers, then sending emails from a PHP script. (now just shows the location of my php script) Do I have to recompile PHP for this? or just set a param in php.ini? Any ideas are very appreciated. many thanks, Mike

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Mike Dunlop
My bad - that doesn't work - that came off the top off my head. It sure did look sexy though, no ? - MD echo ${"array".$prefix}; really? did you test that? doesn't work when I do it (the second expression does - but doesn't answer the OPs question actually imho the answer is not eval() e

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread Mike Dunlop
Thanks for the thoughts -- some good points! I will let you know if I come up with anything that works, please let me you know if you do the same :) Best, Mike D ... Mike Dunlop Director of Technology Development [ e ] [EMAIL

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Mike Dunlop
On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote: [code] $array = array(); $array['col1']['col2'] = "Test #1"; $array['col3']['col2'] = "Test #2"; $prefix = "['col3']['col2']"; echo $array.$prefix; //Spitted out result as "Test #2"... [/code] This is the simple code that I'm try

[PHP] URL Referral Tracking with AIM

2005-09-27 Thread Mike Dunlop
I know that referrer is an ENV variable carried by web browsers but I am wondering if any of you guru's have figured out a way to track any referrer al information from a link pasted into an instant messenger (AIM) window. Anyone have any ideas on this? Much Thanks, M

Re: [PHP] array simple question

2005-09-13 Thread Mike Bellerby
If you want to print the keys for all the arrays in the main array then use allkeys. matt VanDeWalle wrote: hello, I have a simple question, not really a problem this time. I know that the function print_r() will print an array but if that array has sub-arrays it prints everything and if yo

RE: [PHP] mktime

2005-09-13 Thread Ford, Mike
o, either of these should get what you want: $epoch = mktime(0, 0, 0, 1, 0, $year+1); $epoch = mktime(0, 0, 0, 13, 0, $year); Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Le

RE: [PHP] preg_match help please

2005-09-08 Thread Ford, Mike
ightly to '/^\w+,\w+,' because at the end there is the > possibility of an alpha-numeric character(s) OR nothing at > all with the > exception of a possible line break (note possible) > > It's the 'possibly nothing at all' which I am slightly stuck on The * tak

RE: [PHP] String format problem

2005-09-01 Thread Ford, Mike
line: always double your backslashes, even in single-quoted strings, to be completely safe and future-proof. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Informa

[PHP] Re: Form Processor?

2005-08-26 Thread Mike Walsh
; > TIA! > > A I like phpHtmlLib's form processor as well as the rest of the stuff included in the library. http://phphtmllib.sourceforge.net Mike -- Mike Walsh - mike_walsh at mindspring.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-08-23 Thread Ford, Mike
e, for instance, http://bugs.php.net/bug.php?id=30914, http://bugs.php.net/bug.php?id=31194, and at least a couple of dozen others). Cheers! Mike To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?

2005-08-19 Thread Mike Walsh
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Wrapping ob_start() / ob_get_contents() / ob_end_clean() around the > IMAP calls MIGHT let you catch the output and throw it away... > > That is a good idea, I will give tha

[PHP] Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?

2005-08-15 Thread Mike Walsh
ing similar? Any idea how to suppress the Notice? The oddly formed e-mail address isn't something I use so I don't really care how it is formatted but the IMAP library seems care enough to generate the notices. Thanks, Mike -- Mike Walsh - mike_walsh at mindspring dot com -- PHP General

RE: [PHP] rename an uploaded file.

2005-08-11 Thread Ford, Mike
at the 'n' character is special (newline) but 'h' and 'u' are > not (I don't think) so this "should work" > > That doesn't make it Good Practice. Especially as \u is likely to be a special sequence in the Unicode-enabled PHP 6.0 wh

RE: [PHP] display error line in object method

2005-08-10 Thread Mike Johnson
re isn't, necessarily. That was pseudo-code to demonstrate what I thought you were asking about. The point of my reply was "I don't think it's possible to do what you want to do here," and offer up an alternative in passing __LINE__ as an argument to error(). Good luck! -

RE: [PHP] display error line in object method

2005-08-10 Thread Mike Johnson
y be to pass __LINE__ as an arg to error() and use it there as you please. I don't know of any $parent::__LINE__ syntax, which is what it sounds like you're asking about... -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECT

[PHP] Re: Error Suppression with '@'

2005-08-08 Thread Mike Milano
my guess is that he is just trying to avoid errors in case the variable is not an actual array. arrays can easily be tested for by using: is_array( $myarray ); another way to manage arrays is to initialize them before you do anything with them. i.e.: $myarray = array(); this way if you need

RE: [PHP] PHP error on form

2005-07-28 Thread Mike Johnson
ct_Form > _test.php > on line 58 > > the above code is just the php form part of the page not the entire > code, so it would be impossible to determine line 58, but I was hoping > someone would be able to spot the problem or at least explain the > error to a relative newbie.

RE: [PHP] Multipage form redux

2005-07-28 Thread Ford, Mike
my answers to your 2 questions are: Yes. And exactly as you have described it. So what part of the implementation in PHP do you *really* not understand? Cheers! Mike - Mike Ford, Electronic Information Services Adviser, L

RE: [PHP] preg_match - help please

2005-07-27 Thread Mike Johnson
From: André Medeiros [mailto:[EMAIL PROTECTED] > On Wed, 2005-07-27 at 11:41 -0400, Mike Johnson wrote: > > From: André Medeiros [mailto:[EMAIL PROTECTED] > > > > > On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: > > > > > > > Or even four

RE: [PHP] preg_match - help please

2005-07-27 Thread Mike Johnson
> > well as ' as in John O'Kane > > > > Yeah, that's why strpos will make his life much easier :) Can you explain how you'd use strpos() in this situation? I was going to ask earlier, but didn't bother, but now I'm curious... -- Mike Johnson

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

2005-07-26 Thread Ford, Mike
should be using? Maybe you should be looking at the YAZ (Z39.50) extension? See http://pecl.php.net/package/yaz and http://indexdata.dk/phpyaz/. I don't know off the top of my head whether COPAC supports Z39.50, but it seems likely. Failing that, I'm absolutely sure the British Librar

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 o

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

2005-07-26 Thread Ford, Mike
l "deep" copy of all the array's element values before the modification is done. Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services,

[PHP] Re: Character Encoding problem

2005-07-21 Thread Mike Magat
Are characters such as àâáâãäåèéêë and others like them considered UTF-8 characters? If it is considered UTF-8 characters, it still manages itself to be displayed correctly under ISO-8859-1. The page contains those type of characters and it is being displayed under ISO-8859-1. However, if I c

<    3   4   5   6   7   8   9   10   11   12   >