Re: [nyphp-talk] GIT! (was: CentOS v Ubuntu)

2013-06-22 Thread Ken Robinson
How about OOP vs Procedural coding? Ken Sent from my iPhone On Jun 22, 2013, at 12:41 PM, Hans Z wrote: > >> I agree with Hans. > > :) > >> I've never wanted to be one of those people who over the years refused to >> adapt to something new. But the reality is that it has to really be an

Re: [nyphp-talk] Web and Mobile Video Codecs

2012-04-26 Thread Ken Robinson
At 02:51 PM 4/26/2012, Hans Zaunere wrote: Hi all, Thought this would be useful in unraveling the "web" of video "standards" out there: http://www.appleinsider.com/articles/12/03/14/mozilla_considers_h264_video_s upport_after_googles_vp8_fails_to_gain_traction.html Here's a shortened link: ht

Re: [nyphp-talk] Dev on Windows7

2010-04-17 Thread Ken Robinson
At 03:33 PM 4/17/2010, Gary Mort wrote (in part): Gah, So, after years of fighting to learn Mac...hating the one button mouse, etc etc I finally had gotten an environment I was comfortable in. Mercurial for Version Control. Apache + PHP 5.3 + Passenger/Ruby on Rails MySQL Navicat Netbeans Tex

Re: [nyphp-talk] .... speaking of Drupal

2009-03-27 Thread Ken Robinson
Yay. I've been learning Drupal on the job for the last year, so another way of answering questions would be welcome. Ken -Original Message- From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Friday, March 27, 2009 9:20 AM To: 'NYPHP Ta

Re: [nyphp-talk] PHP FTP function...

2008-12-08 Thread Ken Robinson
At 11:10 PM 12/8/2008, [EMAIL PROTECTED] wrote: Hello and Greetings, NYPHP, I have a potential project that requires the ability to do file transfers from one website to another using FTP, i.e. the files and folders are on an ftp server and need to be downloaded to a folder /director

Re: [nyphp-talk] OT - announce list

2008-11-03 Thread Ken Robinson
At 12:58 PM 11/3/2008, Hans Zaunere wrote: Hello all, just a quick question: has anyone seen the announce list posting from this morning? I think there may be something wrong (again) with mailman. Yes, I saw the announcement at 12:35 PM. Ken ___

[nyphp-talk] Integrating Drupal 6 & KnowledgeTree

2008-10-08 Thread Ken Robinson
Hi, Does anyone on the list have experience integrating Drupal 6 & KnowledgeTree? I've installed Knowledge Tree and the KT Module. It seems to work, except that when I connect from within Drupal, the output is restricted to a very small area of the screen and there are no scrollbars. Ken

Re: [nyphp-talk] Re: Weird Switch Behavior

2008-09-09 Thread Ken Robinson
At 10:44 PM 9/9/2008, Michael B Allen wrote: On Tue, Sep 9, 2008 at 10:31 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: > Can someone explain why the below switch matches the 0 element? > > $ cat switch.php > > $tmp = array( >'foo' => 1, >'bar' => 2, >'zap', > ); > > for

Re[2]: [nyphp-talk] Need suggestions on building a hacker trap...

2008-08-12 Thread Ken Robinson
At 07:26 AM 8/12/2008, [EMAIL PROTECTED] wrote: Hello David, > So what exactly does the parameter Mode do? Isn't this line showing that a > parameter with value got passed to a script with GET? In that case, which > input validation / processing do your scripts have? > David > _

Re: [nyphp-talk] string function

2008-07-03 Thread Ken Robinson
"$Parts[$Sub1] $Parts[Sub2]\n"; This works (tested) $Parts[$Sub1] $Parts[$i]\n"; } ?> Ken Robinson ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://w

Re: [nyphp-talk] url pass array as parameter

2008-07-01 Thread Ken Robinson
At 12:13 AM 7/1/2008, Anirudh Zala wrote: On Tuesday 01 Jul 2008 03:09:48 Tim Lieberman wrote: > Passing arrays in a query string is the wrong way to do it. Too many > things can go wrong. True. It is not proper way. But if you still want to pass such data using GET method then you can build Qu

Re: [nyphp-talk] OT: webmaster test

2008-04-14 Thread Ken Robinson
Quoting Allen Shaw <[EMAIL PROTECTED]>: André Pitanga wrote: 4) Which is the correct CSS syntax? a) body {color: black} b) body:color=black c) {body:color=black} d) {body color:black} Doesn't correct CSS syntax require a semicolon? body {color: black;} CSS only requires

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-19 Thread Ken Robinson
At 11:58 PM 2/18/2008, Susan Shemin wrote: thanks, Mike and Ken first off, I'm not using a form (so no POST); the link is in an anchor tag. I could put a form around it, but that seems to me making a simple link complex. You don't understand. The POST method is defined in the AJAX code you

Re: [nyphp-talk] javascript calling php function -- now question on Ajax

2008-02-18 Thread Ken Robinson
At 11:20 PM 2/18/2008, Susan Shemin wrote: My quick fix didn't work because it put entries into the database as the page loaded -- but they were there... Anyway, Ajax is usually used to open an external file into a div, and it uses a form to send the request. What I want to do is trigger a p

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
At 08:11 PM 2/5/2008, Dan Cech wrote: chad qian wrote: I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started a

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
Quoting shaiju davis <[EMAIL PROTECTED]>: Hi please add ob_start() at the top of the php page. IMHO using ob_start() just masks the problem, it doesn't fix it. The real solution is to find out why the script is sending output before starting the session and start the session before doin

Re: [nyphp-talk] warning message on the php page

2008-02-05 Thread Ken Robinson
Quoting chad qian <[EMAIL PROTECTED]>: Hi, I try to debug one php page.Everything is fine but I always get this error message on top when I load the web page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at

Re: [nyphp-talk] about check box

2008-01-28 Thread Ken Robinson
Quoting chad qian <[EMAIL PROTECTED]>: Hi, Here is my current code: I want: When checkbox is checked,i want to insert the value"1" to mysql database. When checkbox is unchecked,i want to insert the value "0" to mysql database. Only checked checkbox values are returned to your php script, s

Re: [nyphp-talk] Transitioning from Beginner to Intermediate PHP

2008-01-16 Thread Ken Robinson
At 08:00 PM 1/16/2008, B.A.S. wrote: Hi Everyone, I'm trying to move from being a rank beginner to an intermediate level of programming PHP. While practicing & trying to learn something new every day, I'm also reading up on security (Essential PHP Security by O'Reilly & Pro PHP Security by Ap

Re: [nyphp-talk] Can PHP be wraqpped around HTML??

2008-01-15 Thread Ken Robinson
Quoting PaulCheung <[EMAIL PROTECTED]>: This might seem quite trivial or rather silly; But it is causing me absolute havoc. However, each time I update a MySQL record I set an "update indicator" on, the idea being, So as not to update the record more than once. I am trying to wrap PHP coding aro

Re: [nyphp-talk] Concatenation

2008-01-14 Thread Ken Robinson
At 09:29 PM 1/14/2008, David Krings wrote: Hi! I saw this in email thread going on: $message = "\nName: $name\n\n"; $message .= "E-mail: $email\n\n"; Is that doing the same as $message = "\nName: $name\n\n"; $message = $message."E-mail: $email\n\n"; Yes. It's similar to using the "+=" or "-=

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Ken Robinson
At 06:40 PM 1/14/2008, B.A.S. wrote: No, the client in question doesn't have their own (dedicated) IP and AFAIK the only thing available is a static IP, which I'm guessing wouldn't help since (as I understand it) several domains could be using the same static IP. It doesn't have an SPF record

Re: [nyphp-talk] Another Apostrophe-related issue

2008-01-08 Thread Ken Robinson
At 10:42 PM 1/8/2008, Kristina Anderson wrote: I'm having yet another apostrophe-related issue. It seems that the slashes are being added automatically by the HTML form and inserted into the database on save. Magic quotes is on (get_magic_quotes_gpc (); returns 1) and I have removed any addslas

Re: [nyphp-talk] simple form action

2008-01-01 Thread Ken Robinson
At 11:36 PM 1/1/2008, chad qian wrote: Here is the one PHP page code .. When people click "submit", I want to execute the first php coding part above . so,form action=what? You can just leave the action attribute out of the tag and it will be submitted to the same script. Make s

Re: [nyphp-talk] static variable variable?

2007-12-20 Thread Ken Robinson
At 10:13 PM 12/19/2007, Michael B Allen wrote: I have a bunch of subclasses that define a static varible that I need to access in the parent class. So I'm trying something like: $_staticvarname = get_class($this) . '::$_staticvar'; Try using double quotes instead of single quotes: $_staticvar

Re: [nyphp-talk] MySQL/Flash/Apostrophe issue

2007-12-07 Thread Ken Robinson
Quoting "P. Ju (???)" <[EMAIL PROTECTED]>: Hi Kristina, PHP has a function to take care of this for you: mysql_escape_string http://www.php.net/mysql_escape_string That's not her problem. That escapes quotes and other symbols so they can be stored in the database. Her problem is that the s

Re: [nyphp-talk] MySQL/Flash/Apostrophe issue

2007-12-07 Thread Ken Robinson
Quoting Kristina Anderson <[EMAIL PROTECTED]>: Yes it's definitely a flash issue. I will replace the apostrophes in the strings with ' before database insert and let you know how that works! Don't replace the single quotes in the database. Use the htmlentities() function on the output with

Re: [nyphp-talk] switch cases

2007-12-01 Thread Ken Robinson
At 12:23 PM 12/1/2007, David Krings wrote: Hi! I make use of a switch statement, but now need to execute the same code of one case for a different case (it is a switch on a file type and some types are to be handled the same). I know how to craft this case using if, but how would I do that wi

Re: [nyphp-talk] Emailing from a PHP script

2007-09-14 Thread Ken Robinson
At 09:09 AM 9/14/2007, PaulCheung wrote: Can anybody see what I am doing wrong?? I have set php.ini (as per the manual) to my email settings == [mail function] ; For Win32 only. SMTP = smtp.tiscali.co.uk smtp_port = 25 ; For Win32 only. sendmail_from = [EMAIL

Re: [nyphp-talk] Finding event listeners?

2007-09-05 Thread Ken Robinson
At 06:38 AM 9/5/2007, Kenneth Downs wrote: John Campbell wrote: I cannot seem to figure out which javascript function I would use to determine the event listeners that have been added to an element. Can anybody steer me on this? Thanks... It is not possible to get a listing using the W3C DO

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Ken Robinson
Quoting Andy Dirnberger <[EMAIL PROTECTED]>: As far as i goes, I've always assumed it was just shorthand for something like index or increment. Nested for loops are often then controlled with j and then k. You can use these with confidence that people will understand the meaning. But if you f

Re: [nyphp-talk] Javascript & PHP

2007-06-22 Thread Ken Robinson
At 06:21 AM 6/22/2007, PaulCheung wrote: I have to thank everybody for helping me and I do appreciate all the help I also take onboard that it is difficult to debug anything you cannot see. So I have included 3 files the HTML with JavaScript in, another HTML with the JavaScript stripped out and

Re: [nyphp-talk] Javascript & PHP

2007-06-21 Thread Ken Robinson
Quoting PaulCheung <[EMAIL PROTECTED]>: I have put together an HTML form that uses Javascript which works well. However when I fill it in and fire it off to my PHP script (which for the purpose of testing simply echos what was entered in to the form) it cannot find the entered data; But

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread Ken Robinson
At 08:43 AM 4/3/2007, tedd wrote: I'm not sure if what you are saying includes this, but I use double quotes all the time in php for producing html. For example: [1] echo("$myResult "); [2] echo('$myResult'); The use of double quotes in [1] allows me to print something without having to use

RE: [nyphp-talk] single quote vs. double quote

2007-04-02 Thread Ken Robinson
At 10:09 PM 4/2/2007, Hans Zaunere wrote: > Processor speeds being what they are, the only good reason to use > single quotes is so you don't have to use the shift key while you type > your code. True, but I still like the ability to quickly look at a string and know wheather it should contain v

Re: [nyphp-talk] [OT] Yet another CSS Question

2007-03-02 Thread Ken Robinson
At 05:20 PM 3/2/2007, Rolan Yang wrote: All this was a result of some twisted desire to make table rows drag+drop resortable with dom/javascript magic. After all the CSS quirks were addressed, I discovered that the scriptaculous drag+drop functions would slow down or lock up the browser whe

Re: [nyphp-talk] Off topic

2007-03-01 Thread Ken Robinson
At 10:53 AM 3/1/2007, Urb LeJeune wrote: Could anyone recommend a CSS support list? This is the list information for the CSS list I'm on: List-Id: Practical discussions of CSS and its use List-Unsubscribe: ,

Re: [nyphp-talk] /etc/php.ini changes aren't picked up immediately?

2007-02-26 Thread Ken Robinson
At 09:07 AM 2/26/2007, David A. Roth wrote: The system: CentOS 4.4 x86_64 Linux localhost.localdomain 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 30 12:18:01 EST 2007 x86_64 x86_64 x86_64 GNU/Linux PHP 4.3.9 (cgi) (built: Feb 21 2007 06:31:24) I noticed changes I made to the /etc/php.ini didn't take eff

Re: [nyphp-talk] PHP addition and leading zeros

2007-01-30 Thread Ken Robinson
At 11:23 PM 1/30/2007, Aaron Fischer wrote: I am retrieving a four digit value from a mysql db. It is an unsigned zerofill field so there are leading zeros. I add 0001 to the value. However, I find that I lose my leading zeros, which I want to keep. I also tried incrementing the value but tha

Re: [nyphp-talk] Resample Image on the Fly

2007-01-29 Thread Ken Robinson
At 08:21 AM 1/29/2007, Randal Rust wrote: I need to find out if I can resample an image and also resample it using the GD Library. I don't seem to find anything that does it without creating and storing a thumbnail from the original image. Right now, I get an image and use getimagesize() to crea

Re: [nyphp-talk] Radial Zip Code Search

2007-01-23 Thread Ken Robinson
At 03:44 PM 1/19/2007, Donna Marie Vincent wrote: Hi, all. I am looking for a script, or a tutorial on how to create a script, that will perform a radial zip code search. I Googled this "radial zip code" and "radial postcode" and have found nothing about how to do this. Can anyone point me i

Re: [nyphp-talk] Slightly OT: source example for vertical multi-layer menu???

2007-01-18 Thread Ken Robinson
At 02:34 PM 1/18/2007, R. Mariotti wrote: Fellow PHP'ers: Most of my web based application menus are accomplished using css only and they usually suffice. I have a requirement to insert a 2nd level on some of the items. I've been looking at js examples for such things for a couple of days

Re: [nyphp-talk] Editable Select Box

2006-12-19 Thread Ken Robinson
At 11:09 AM 12/19/2006, Kenneth Downs wrote: Hi folks, I'm wondering if anybody has seen a particular kind of control I need. It's called many things, but "editable Select box" seems to be a common term. One example that is close to what I want is here: http://www.dhtmlgoodies.com/scripts/f

Re: [nyphp-talk] freeing sql results

2006-12-07 Thread Ken Robinson
At 10:58 PM 12/7/2006, [EMAIL PROTECTED] wrote: After a lot of trial and error I've narrowed down the offending query in my problem with sql results not freeing themselves up: $query = mysql_query("SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isU

Re: [nyphp-talk] Help with while loop

2006-11-27 Thread Ken Robinson
At 03:43 PM 11/27/2006, Randal Rust wrote: Yeah, I know. This is the client's hair-brained idea. I told him I'd take a look. The problem all goes back to how they are handling their data. They are using LDAP for data storage. Each record has a 'key' value which they want to be unique. The key i

Re: [nyphp-talk] Help with while loop

2006-11-27 Thread Ken Robinson
At 03:10 PM 11/27/2006, Randal Rust wrote: I have always had trouble with trying to write these from scratch. The code below is essentially what I have been working on, but it never stops looping. What am I missing here? You don't need a loop here. The loop is in the function, where it belong

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread Ken Robinson
At 03:18 PM 10/31/2006, csnyder wrote: >I'm not sure what exif_thumbnail() would do with a non-image, but to >protect against $_GET['f'] == "../../../etc/passwd" you'd probably >better make that: I said it was a quick example with no error checking. I would put a check to make sure it's really an

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread Ken Robinson
At 02:02 PM 10/31/2006, Bill Kamm wrote: Does this help? http://www.php.net/ob_start "This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer." Bill David Krings wro

Re: [nyphp-talk] PROBLEM: passing variables to FILE()

2006-10-24 Thread Ken Robinson
At 11:15 PM 10/24/2006, Michael Southwell wrote: >At 07:39 PM 10/24/2006, you wrote: >>HI people, >> >>I am trying to read a file using "file" and I am passing the following string >>for the input file parameter: >>http://maggie.sdcwa.org/eng/list/client_find_project_list.phtml?proj_name=CATHODIC >

Re: [nyphp-talk] Unsetting array elements

2006-10-20 Thread Ken Robinson
At 03:17 PM 10/20/2006, Aaron Fischer wrote: >Hi, > >I'd like to cycle through an array and destroy some elements (and leave >some intact). What's the "best" way to do that? > >Here's what I put together so far (which shows my array ignorance) =) > > >$test=array("auth" => "yes" , "name" => "joe"

Re: [nyphp-talk] Textarea formatting

2006-10-19 Thread Ken Robinson
At 02:10 PM 10/19/2006, Ben Sgro (sk) wrote: >Felix, > >Sure, that is helpful, but what about tabs, lists and all the other >elements that could exist in an email message. >I'm looking for a canned function or class that will do the work. You can try displaying the text between tags. Ken

Re: [nyphp-talk] Textarea formatting

2006-10-19 Thread Ken Robinson
At 12:47 PM 10/19/2006, Ben Sgro (sk) wrote: Hello all, I have a textarea field that can .. store text. I'm using it to save emails for example w/a form. I grab the posted data and call addslashes( ) then stick it into the database, varchar(1024). (this is a calendar app for my own use). Now, wh