Re: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread Robert Cummings
tedd wrote: At 10:11 AM +0100 6/18/09, Ford, Mike wrote: On 17 June 2009 22:12, tedd advised: -snip- > Now, let's say you want to sort the $d array, but you also want the > arrays $a, $b, and $c to be arranged in the same resultant order as $d. > For example, please follow this: Befor

Re: [PHP] Multi-Sort -- how to do this?

2009-06-18 Thread Robert Cummings
tedd wrote: At 1:45 PM -0400 6/18/09, Robert Cummings wrote: Thanks to Rob and Daniel for also playing, better luck next time. :-) <- note smiley -- I do appreciate your time. Mine version retains key associations. It wasn't a complete waste of time. Cheers, Rob. Rob: Nothing you

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Robert Cummings
Jason Pruim wrote: Wow dan, must be nice to have the time to read all that :P I could rant about how hard it is to find a job when you don't have much verifiable experience But instead I put together a website which has links to everywhere that I'm watching. So if anyone is in central

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Robert Cummings
Daniel Brown wrote: On Fri, Jun 19, 2009 at 15:05, Robert Cummings wrote: I'm self-employed. I don't plan on ever laying myself off. Mind out of the gutter, Rob. Words like "self," "laying," and "off" will get you flagged. Gutter? It'

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Per Jessen wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 already.

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Manuel Aude wrote: The thing is, that part of the planned course was to develop a small framework, so that they could see the dynamic and OOP posibilities that PHP offers. With PHP 5.3, there are namespaces, which change a lot the design of a framework, as well as true lambdas with closures. So,

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Per Jessen wrote: Robert Cummings wrote: Per Jessen wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Michael A. Peters wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 alrea

Re: [PHP] Convert \x3d \x3b \x3c to ASCII

2009-06-23 Thread Robert Cummings
ioan...@btinternet.com wrote: Is there a function which will convert characters like \x3d \x3b \x3c to ASCII. Or is there a full list of conversions, eg \x3c=\x3e=>, \x27=' etc. What are these, hex? I tried hexdec() but am not sure that is right. These are hex escaped for a string: This w

Re: [PHP] modifying within foreach

2009-06-23 Thread Robert Cummings
Ashley Sheridan wrote: On Tue, 2009-06-23 at 15:07 -0400, Eddie Drapkin wrote: It's just foreach($foo as $key => &$item) { } You can't assign the key by reference >.> On Tue, Jun 23, 2009 at 3:04 PM, Ashley Sheridan wrote: On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: An

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Michael A. Peters wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to c

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Michael A. Peters wrote: Robert Cummings wrote: Michael A. Peters wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). S

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Robert Cummings
Per Jessen wrote: Robert Cummings wrote: It's hard to create a helpful application when fort knox is your delivery location. I'm not saying there's a problem with Fort Knoxes in the world, but this isn't necessary for everyone. if it were we wouldn't have banks

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Robert Cummings
Per Jessen wrote: Robert Cummings wrote: Personally, I prefer having my code outside the DocumentRoot also, but I do not believe it is the simplest solution, and I do not think it is "wrong" to place such information within the DocumentRoot. The feature exists, application devel

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: * snip * No. It is not. The web root should be read only. Please cite references as to why it should be read only. Please explain why the feature exists if it should not be so. The feature exists because the web server runs as a standard user

Re: [PHP] Removing empty values from array

2009-06-25 Thread Robert Cummings
Martin Scotta wrote: Hi all I have this in a simple routine... for($i=0, $if=count($array); $i<$if; ++$i) if( $array[$i] == '' ) { array_splice( $array, $i, 1); --$i; --$if; } My question: is this t

Re: [PHP] Removing empty values from array

2009-06-25 Thread Robert Cummings
Eddie Drapkin wrote: On Thu, Jun 25, 2009 at 5:00 PM, Ashley Sheridan wrote: On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: Hi all I have this in a simple routine... for($i=0, $if=count($array); $i<$if; ++$i) if( $array[$i] == '' ) { array_splice( $array, $i

Re: [PHP] This Friday's OT Thread

2009-06-26 Thread Robert Cummings
Farah Fawcett has also died. I guess you gotta go sometime :| Björn Bartels wrote: Hello fellow coders... THE 'KING OF POP' IS DEAD ! Tonight (here in Germany), Mr. Michael Joseph Jackson, also known as 'the king of pop', died on heart failure in the age of 50. I just want to express my

Re: [PHP] This Friday's OT Thread

2009-06-26 Thread Robert Cummings
:( Tom Worster wrote: and Kaleem Omar. and 15 people in Baghdad when motorcycle loaded with nails and ball-bearings exploded in a crowded bazaar. On 6/26/09 4:27 AM, "Robert Cummings" wrote: Farah Fawcett has also died. I guess you gotta go sometime :| Björn Bartels wro

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Robert Cummings
tedd wrote: At 10:02 AM +0530 6/26/09, Gautam Bhatia wrote: hello all, Is there anyway in php by which i can get the total play time of a mp3 , I found some information while doing the google thing using some 3rd party plug ins like getID3 but without any luck, Any help in this case

Re: [PHP] dictionary/spell check...

2009-07-16 Thread Robert Cummings
Aspell. Dan Joseph wrote: Hi Everyone, This is slightly off topic... We're building an application, and have a need for an opensource dictionary. Basically a way to match words against a dictionary to see if they are valid, and what type of word they are. noun, adv, etc.. Can anyone point m

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Robert Cummings
rszeus wrote: Hello, I’m tryng to make some replacements on a string. Everything goês fine until the regular expression. $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925, 'temp/',’_([0-9])’), array(“test”,"",””), $file)

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Robert Cummings
.. I just switched a few weeks ago. Cheers, Rob. Robert Cummings wrote: rszeus wrote: Hello, I’m tryng to make some replacements on a string. Everything goês fine until the regular expression. $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; echo $a

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Robert Cummings
Floyd Resler wrote: The nice thing about the database, though, is that you can specify which MySQL user has access to the sessions table. That way you can really lock it down by giving access to only INSERT, SELECT, UPDATE, and DELETE just for that table. Thanks! Floyd On Jul 22, 2009, a

Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Floyd Resler wrote: When I first started programming in PHP I used the second method you mentioned. I had a single file I called utils.php and it contained all the functions I could possibly need throughout my site. Unfortunately, this file grew to be over 10,000 lines and most of the t

Re: [PHP] How to build an FF extension

2009-07-23 Thread Robert Cummings
Ashley Sheridan wrote: > Wikipedia can hardly be accounted an official source of anything, especially considering how it gets the content! If you want official, then http://www.mozilla.com/en-US/firefox/releases/1.5.html is a good link. Wikipedia is the official source of Wikipedia information

Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote: Not that I disagree with your methodology at this time, but you could have just made that single big file, include all those little files and still had a single load statement in each of your consumer

Re: [PHP] Renaming all variables in a repository

2009-07-23 Thread Robert Cummings
Eddie Drapkin wrote: Hey all, we've got a repository here at work, with something like 55,000 files in it. For the last few years, we've been naming $variables_like_this and functions_the_same($way_too). And now we've decided to switch to camelCasing everything and I've been tasked with someho

Re: [PHP] Compare PHP settings of two different servers

2009-07-23 Thread Robert Cummings
Dave M G wrote: PHP Gurus, I'm currently having a problem with PHP writing text to a PNG image on one server. I have various web sites hosted on various servers, and on most of them, the script that generates the image is writing text properly. I have ensured that the same fonts are availab

Re: [PHP] Question on code profiling

2009-07-23 Thread Robert Cummings
Andrew Ballard wrote: I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page. I installed xdebug to use for the profiling, and now I'm really confused. Even though it takes around 4 seconds to build the entire page, the profile

Re: [PHP] This is the kind of [expletives deleted] answer that is certain to prevent bugs being reported.

2009-07-24 Thread Robert Cummings
Per Jessen wrote: Daniel Brown wrote: On Fri, Jul 24, 2009 at 15:25, Per Jessen wrote: Daniel Brown wrote: In reality, those are canned responses. Jani didn't type that up himself, he just selected it from a drop-down that we have. In all honesty, that only makes it worse. To make an effor

Re: [PHP] Formatting plain text file

2009-07-30 Thread Robert Cummings
Skip Evans wrote: Jim Lucas wrote: Skip Evans wrote: Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type stuff... sprintf? or a li

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Robert Cummings
Oh wow, I didn't know your wife had gone into labour or anything :( Sorry to hear of the stress and very glad to hear both are alive and doing well. Congratulations! Cheers, Rob. Daniel Brown wrote: ALL: It's far easier to drop a line to the mailing lists and BCC a few others th

Re: [PHP] Compare PHP settings of two different servers

2009-08-05 Thread Robert Cummings
Dave M G wrote: Bob, Ben, David, Robert, Thank you all for responding. Just to recap, I'm trying to find out why I can write text into a PNG image on one server, but not on another. After much playing around, I have a list of the different configuration modules installed on the two se

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Robert Cummings
John Butler wrote: It is annoying working with arrays sometimes, as some functions work on the actual array, while others return the results of working on the array without changing anything. Is there any particular reason for that? ...you mean what are the reasons for the different ways the

Re: [PHP] php external interfaces

2009-08-08 Thread Robert Cummings
pete123456 wrote: hi, im running php on IIS and im trying to evaluate php's capabilities regarding external interfaces. elg. executing .exe, batch files, com objects. is that all possible? does anyone have any good reference where i can find out more about this? .exe and .bat files should work

Re: [PHP] APC optimization in CLI

2009-08-09 Thread Robert Cummings
Matic Meznar wrote: Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? If I recall correctly, none of the accelerators work in CLI mode. Cheers, Rob. -- http://www.interjinn.com Application an

Re: [PHP] APC optimization in CLI

2009-08-09 Thread Robert Cummings
Mattias Thorslund wrote: Robert Cummings wrote: Matic Meznar wrote: Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? If I recall correctly, none of the accelerators work in CLI mode

Re: [PHP] Array

2009-08-10 Thread Robert Cummings
Ron Piggott wrote: How do I change this ELSEIF into an array? } elseif ( ( $page <> "" ) AND ( $page <> "home_page" ) AND ( $page <> "verse_of_the_day_activate" ) AND ( $page <> "member_services" ) AND ( $page <> "member_services_login" ) AND ( $page <> "member_services_logoff" ) AND ( $page <>

Re: [PHP] Re: Array

2009-08-10 Thread Robert Cummings
Colin Guthrie wrote: 'Twas brillig, and Jim Lucas at 10/08/09 16:29 did gyre and gimble: $d = array( "home_page", "member_services", "member_services_login", "network", "resource_center", "verse_of_the_day_activate", ); Ahh someone else who alway

Re: [PHP] APC optimization in CLI

2009-08-11 Thread Robert Cummings
Daevid Vincent wrote: From: Robert Cummings [mailto:rob...@interjinn.com] However, accelerators don't make scripts faster per se. They merely cut out the script reading and parsing time. Which is a HUGE portion of time since PHP is a two-pass step. One that reads and compiles to op

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread Robert Cummings
Ben Dunlap wrote: # before was $styles = array( 'even', 'odd' ); # after new requirements it is... $styles = array( 'white', 'white', 'gray' ); foreach($items as $item) { printf( '%s', current( $styles ), $item ); next( $styles ) or reset( $styles ); } +5000. I think is by far the most reada

Re: [PHP] Embedding foreach loops

2009-08-11 Thread Robert Cummings
Ben Dunlap wrote: statements, it becomes unmaintainable very quickly, use a templating language, ether with a framework(recomended) or standalone. But he /is/ using a templating language... PHP. ;-) Keep telling yourself that... and be sure to pat your own back. Cheers, Rob. -- http://www

Re: [PHP] Calendar Problem

2009-08-11 Thread Robert Cummings
tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and Sept 4. I'm curious, how would you guys solve this?

Re: [PHP] how to say "inverse your value" (to a boolean)?

2009-08-11 Thread Robert Cummings
John Butler wrote: What a lot of good ideas spawned from the OP! I am learning many things,.. while also actually working (paying bills), so I regularly have to just go with what I know well. Anyway, I already have the forearch { loop (for other reasons it is necessary), and I only needed o

Re: [PHP] Embedding foreach loops

2009-08-11 Thread Robert Cummings
Let me be the first to welcome you to the list!!! Rick Duval wrote: OK, first guys, I'm sorry to have to do this but I can't get off this list!!! I've followed the instructions on a couple of occasions (the ones at the bottom of every email): PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Calendar Problem

2009-08-11 Thread Robert Cummings
Jim Lucas wrote: Robert Cummings wrote: tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and Sept 4.

Re: [PHP] Is select_db necessary?

2009-08-12 Thread Robert Cummings
Jay Blanchard wrote: [snip] Is the database selection necessary, or is that implied with a SELECT or other SQL command? [/snip] It depends on the database (as you have seen in many of the responses), but there is a way to keep from doing this if the database is ANSI compliant using proper SQL sy

Re: [PHP] Calendar Problem

2009-08-12 Thread Robert Cummings
tedd wrote: At 4:08 PM -0400 8/11/09, Robert Cummings wrote: tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21

Re: [PHP] Include Paths

2009-08-12 Thread Robert Cummings
Have you gone here: http://www.php.net/unsub.php Make sure you input the email address with which you registered: r...@duvals.ca It's really not very hard... my 10 month old baby could do it. Cheers, Rob. Rick Duval wrote: SORRY BUT I CAN'T GET OFF THIS LIST, I CAN'T GET OFF T

Re: [PHP] Determining Calling Script Information

2009-08-13 Thread Robert Cummings
Matt Giddings wrote: Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go through to each line that calls it and add the __LINE__ and __FI

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: funny then that I see here serious people discussing the benefit of shortening code and cutting out commends. maby thats a general problem of our society that everybody think higher cheaper faster. this will have a limit guys !!! u can not go smaler then an atom. funny as

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Martin Zvarík wrote: Ralph Deffke napsal(a): NO NO NO OOP is the best ever inventet ! see my comments on this list, I will also come up with an pure oop opensource OMS very soon. I just think a dam big pattern catalog like this one is like an elephant chacing mice. I mean I can think of

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: but what Im asking is that the reality? go and talk to accountant and tell them after spending soansomuch for the new site hes has to buy a new server ! what will acountant say, what u think. another more important point is in reality u take a project on on a specific hardwa

Re: [PHP] design pattern

2009-08-13 Thread Robert Cummings
Ralph Deffke wrote: so guys why u don't discuss Martins outcome? is there no advice, idears? isn't there a need for it? nobody want to use it? I WANT TO LEARN Maybe it's your grasp of the English language, maybe not. But I detect an air of aggression to your posts. ARE YOU JUST TROLLING?

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? There are several: APC, eAccelerator, Zend, PHPAccelerator, and problably more. I think APC and eAccelerator are the most popular.

Re: AW: [PHP] Re: Re: Re: Design Patterns

2009-08-14 Thread Robert Cummings
tedd wrote: At 3:09 PM -0500 8/13/09, Shawn McKenzie wrote: Ralph Deffke wrote: for those of u not being a physician semiconductors are of pretty big atoms, but this is not the main problem, the problem is that u have to cut out structures off these semiconductors > in order to build fast

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummings wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? There are several: APC, eAccelerator,

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 12:24 PM, Robert Cummings wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummings wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has an

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Robert Cummings wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 12:24 PM, Robert Cummings wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummings wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Robert Cummings
Richard Heyes wrote: Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. Might look nice in your driveway... But without the time to drive it... :| ;) -- http://www.interjinn.com Application and Temp

RE: [PHP] Re: Chocked

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 09:48 +0100, Peter Lauri wrote: > Hi, > > I got it working before the post, but I was just curious if there were any > change from php4 to php5 as I have been using that method for a while now. Is the php.ini the same? Make sure it actually uses the php.ini that you think it

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:42 +0200, Angelo Zanetti wrote: > Hi all, > > I receive a text file with a whole bunch of strings. and each line is > terminated by what I presume is \n\r however when I read the string into > PHP, it seems that the last column of the row and the first column of > the n

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:17 +0100, Frank Arensmeier wrote: > If you just want to test for \n\r - > > if ( substr ( -2, $my_string ) == "\n\r" ) { // substr with the > negative value of 2 will give you the last two characters of your string > // do some stuff > } You have your substr() par

Re: [PHP] Javascript detection

2007-01-01 Thread Robert Cummings
On Mon, 2007-01-01 at 16:14 -0500, tedd wrote: > Hi gang: > > I've asked this request on a couple of other list, but considering > that I've done this with a mixture of php and javascript, perhaps > some of you might check this out for me. > > Try this: > > http://sperling.com/js_detect > > D

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
On Tue, 2007-01-02 at 10:06 -0800, Jürgen Wind wrote: > tedd, plz no personal mail, i like better to discuss things in the forum and > thus hear other meanings and experiences. > >Your solution was very simple and worked very well. > tx, i always try to keep things logical and as simple as possibl

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
On Tue, 2007-01-02 at 11:32 -0800, Jürgen Wind wrote: > Robert Cummings wrote: > > > > Out of curiosity, can you guarantee the Javascript redirect will always > > occur before the meta redirect when Javascript is enabled? Otherwise you > > have a race condition. > &g

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
On Tue, 2007-01-02 at 15:24 -0500, tedd wrote: > Rob: > > That's a good point -- even if a delay was added > it's not certain that it wouldn't experience a > race issue. And the longer the delay, the more > problems you have with the user experience. > > Perhaps a token scheme, like prohibitin

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
On Tue, 2007-01-02 at 21:55 +0100, Satyam wrote: > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Jürgen Wind" <[EMAIL PROTECTED]> > Cc: > Sent: Tuesday, January 02, 2007 8:57 PM > Subject: Re: [PHP] Javascript

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Robert Cummings
On Wed, 2007-01-03 at 17:49 +, Roman Neuhauser wrote: > > If you dare to use dynamic features in PHP you're begging to have your > throat cut by some call to undefined method, or hop in to lala land with > an "undefined member variable access" warning... If problems with the > "dynamic typing"

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Robert Cummings
On Wed, 2007-01-03 at 11:57 -0500, Robert Cummings wrote: > On Wed, 2007-01-03 at 17:49 +, Roman Neuhauser wrote: > > if( method_exists( $o, 'f' ) ) > { > $o.f(); That should have been $o->f() btw. Too much JavaS

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 10:15 +, Stut wrote: > Gregory Beaver wrote: > > This is a good example of how the flexibility of PHP can bite you, > > but is also a good example of how bad coding adds both complexity and > > inefficiency to the resulting software. If f() is called often, > > there

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 05:51 -0500, Robert Cummings wrote: > On Thu, 2007-01-04 at 10:15 +, Stut wrote: > > Gregory Beaver wrote: > > > This is a good example of how the flexibility of PHP can bite you, > > > but is also a good example of how bad codi

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 11:13 +, Stut wrote: > Robert Cummings wrote: > > On Thu, 2007-01-04 at 10:15 +, Stut wrote: > > > Gregory Beaver wrote: > > >> This is a good example of how the flexibility of PHP can bite > > >> you, but is also

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 12:29 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-04 05:51:12 -0500: > > On Thu, 2007-01-04 at 10:15 +, Stut wrote: > > > Gregory Beaver wrote: > > > > This is a good example of how the flexibility of PHP can bite you, > > > > but is also a good example

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 11:13 +, Stut wrote: > Robert Cummings wrote: > > On Thu, 2007-01-04 at 10:15 +, Stut wrote: > > > Gregory Beaver wrote: > > >> This is a good example of how the flexibility of PHP can bite > > >> you, but is also

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 10:54 +, Roman Neuhauser wrote: > > echo $blah . "\n" is *not* equivalent to printf("%s\n", $blah) H, could you explain to me how it is different? I would always use the former unless I specifically needed formatting provided by printf(), and since there no formatting

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 14:16 +, Roman Neuhauser wrote: > > > I'm not gonna get a chance to do anything with it today. I'll have a > > look tomorrow. > > Do share your numbers. My wife does statistics for a living, let's > see what she'll have to say. I'm not sure why you guys even bother to r

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Robert Cummings
On Thu, 2007-01-04 at 15:34 +0100, Jochem Maas wrote: > Stut wrote: > > Robert Cummings wrote: > >> On Thu, 2007-01-04 at 14:16 +, Roman Neuhauser wrote: > >> > >>>> I'm not gonna get a chance to do anything with it today. I'll have a >

Re: [PHP] Arrays help

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 18:48 +0200, William Stokes wrote: > Hello, > > I'm making a menu script that uses mysql, php and javascript to build a "on > mouse over" dropdown menu to a page. I ran into some problems and would need > help to get this working. (This is just the top level of the menusyst

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: > reply at the bottom ... > > (Karl Pflästerer) wrote: > > Hi > > let's say we have the follwing directory structure: > > directory test, with to subdirectories: a and b; both have ssi > > subdirectory; a has also a subdirectory c with an index

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: > Hello, > > I have a newbie question regarding URL parameters. The PHP script I > wrote need to read parameters passed in from a URL, so as an example > > http://my.domain/myscript.php?name=me&age=27 > > and my script would use $n

Re: [PHP] newbie question regarding URL parameters

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 13:31 +1100, Ryan Fielding wrote: > Robert Cummings wrote: > > On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: > > > >> Hello, > >> > >> I have a newbie question regarding URL parameters. The PHP script I > >

Re: [PHP] convert w date to l format

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 14:46 +0200, Steven Macintyre wrote: > Um ... can anyone point me to somewhere that it explains this ... > > I am trying to convert a "int" (1 through 7) to a day name (Monday through > Friday) while in a loop with mysql results > > I have tried $day = date('w', $day); > >

Re: [PHP] convert w date to l format

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 12:59 +, Stut wrote: > Steven Macintyre wrote: > > Um ... can anyone point me to somewhere that it explains this ... > > > > I am trying to convert a "int" (1 through 7) to a day name (Monday through > > Friday) while in a loop with mysql results > > What happened to the

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 12:43 -0700, Albert Padley wrote: > Sure. > > $myFilter = new InputFilter('','',0,0); The first two parameters should be arrays (not strings as you have above). Cheers, Rob. -- .. | InterJinn Application Framework

Re: [PHP] reading/editing php file with php script

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 15:12 -0800, jekillen wrote: > Hello; > I have been writing a php script which is supposed to open and edit a > php file on the same server, > in the same directory. But I have not been able to get regex as in > function ereg() to work to match > a line of code to alter. I a

Re: [PHP] Re: Question regarding include() and symlinks to directories

2007-01-07 Thread Robert Cummings
On Sun, 2007-01-07 at 19:39 +0100, [EMAIL PROTECTED] wrote: > On 5 Jan 2007, [EMAIL PROTECTED] wrote: > > > > > On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: > >> reply at the bottom ... > >> > >> (Karl Pflästerer) wrote: > >> > Hi > >> > let's say we have the follwing directory structur

Re: [PHP] unpack on offsets in binary data in variable?

2007-01-08 Thread Robert Cummings
On Mon, 2007-01-08 at 16:20 +0100, Markus Fischer wrote: > Hi, > > I'm searching for an efficient way to use unpack on binary data within a > variable (php 5.1.something). In the past I was doing > > fopen > fseek > unpack( fread(...) > fseek > etc. > > Now this time I need to do the same, but I

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: > Bill Moran wrote: > > With reference to: > > http://bugs.php.net/bug.php?id=40067 > > > > I'm confused as to why this was marked bogus, and the message that > > marked as such doesn't give much insight. > > > > It would seem to me that infin

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Tue, 2007-01-09 at 10:01 +1100, Chris wrote: > Bill Moran wrote: > > With reference to: > > http://bugs.php.net/bug.php?id=40067 > > > > I'm confused as to why this was marked bogus, and the message that > > marked as such doesn't give much insight. > > > > It would seem to me that infinite re

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Tue, 2007-01-09 at 01:11 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: > >> Bill Moran wrote: > >>> With reference to: > >>> http://bugs.php.net/bug.php?id=40067 > >>> >

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Robert Cummings
On Tue, 2007-01-09 at 18:41 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > > Wow, there are some really bitchy, unattractive people here. No wonder some > > people bail out of IT. Don't confuse knowledge for wisdom. > > I don't see anything bitchy in the whole e

Re: [PHP] Normalized Numbers

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 14:40 +, Roman Neuhauser wrote: > > I know it sounds crazy, but (most) comments are evil. Comments are are > excuses for better code, they're often no more than a vague repetition > of what the code says. If the code doesn't describe what it's doing > while it's doing it,

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 11:23 -0500, Beauford wrote: > So the answer is, there is no way to destroy the values. Question then, what > is unset() used for as it doesn't seem to do anything? With a language as > good as PHP I though there would be some way to do this. I have got a > workaround, but th

RE: [PHP] Forms and destroying values

2007-01-12 Thread Robert Cummings
On Fri, 2007-01-12 at 17:36 +0100, Németh Zoltán wrote: > Beauford, > > The unset() function is for session variables, which are remembered by > the server even after the script finished running, that's their > purpose. Your variables are not session variables but normal > variables. Wrong! Pleas

RE: [PHP] Normalized Numbers

2007-01-14 Thread Robert Cummings
On Sun, 2007-01-14 at 11:21 -0800, bruce wrote: > hi... > > haven't followed the entire thread.. just saw this portion that pertains to > comments > > i can only assume you guys are relatively young.. if you ever have to pick > up a piece of code that was developed 10 years ago, and you need

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > Hi, > > I think its easier to explain what I want to do.. so here goes: > I want to store values in arrays for one minute and then write them to file. > > For example, everytime someone logs in I want their username to be in an > array > 1 o

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 02:40 -0800, Ryan A wrote: > > > Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > > Hi, > > > > I think its easier to explain what I want to do.. so here &

Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 07:15 -0800, Ryan A wrote: > > Hey! > > Thanks for replying. > > > > Instead of CRON i was thinking of having a file created and check the > > creation time everytime someone logged in... if its less than 1 min > > then don't do anything, if 1 min or more old... write file..

<    10   11   12   13   14   15   16   17   18   19   >