Re: [nyphp-talk] Http requests failing

2009-12-30 Thread Elijah Insua
> > The good part about errors like this is it's an opportunity to start a > pool to guess when the call from the client saying "Wow, it just started > working again, not sure why!" will come in. > I handle all of my production problems this way. ___ New

Re: [nyphp-talk] Funny PHP Gotcha

2009-09-10 Thread Elijah Insua
> > What I find interesting is that I don't remember ever making this sort of > mistake in the past... > Coding with notices on would make that an easy catch. ___ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listi

Re: [nyphp-talk] PHP Programmer's Revival Brew

2009-08-17 Thread Elijah Insua
Jager Bombs! On Mon, Aug 17, 2009 at 9:09 AM, Mitch Pirtle wrote: > Those little 4-packs of Murphy's are just about the right size to last > through a clean install and fresh macports setup. > > -- Mitch > > On Sun, Aug 16, 2009 at 10:43 PM, Daniel > Horning wrote: > >> Jake McGraw wrote: > >> >

Re: [nyphp-talk] Java provides???

2009-08-12 Thread Elijah Insua
> Eclipse/PHP doesn't do anything vi doesn't do, except it has two buttons > you can click on to start and stop your web server. W... I'm so > impressed. All you get from Eclipse/PHP is increased startup time. No > wonder why PHPers think Eclipse is worthless, because Eclipse/PHP ~is~ >

Re: [nyphp-talk] table structure for "friend" relationships

2009-07-30 Thread Elijah Insua
This is how I would approach the problem (simplified/pseudocode) CREATE TABLE user ( id INT, username VARCHAR ); CREATE TABLE friend ( id INT, user_id INT, friend_id INT ); -- Get all of user #1's friends usernames SELECT u.username FROM users u, friends f WHERE f.user_id = 1

Re: [nyphp-talk] Header() Redirect!!

2009-06-11 Thread Elijah Insua
You can also use output buffering for some interesting behavior [ http://us3.php.net/manual/en/book.outcontrol.php ] I prefer to set headers at the end of the script because it is at the end of processing a request that you are best able to do content-type negotiation and status base

Re: [nyphp-talk] Bypassing Registration forms on vBulletin forums ... I guess other forums are having similar problem too?

2009-06-10 Thread Elijah Insua
Hello, little bit of this, little bit of that, and some google : http://jamesseligman.net/is-vbulletin-37-recaptcha-verification-flawed/ -- Elijah On Wed, Jun 10, 2009 at 1:29 PM, Ben Sgro wrote: > Hey, > > Have you searched for exploits for this 3.7 version? Who knows, maybe > something is p

Re: [nyphp-talk] delete one element from array

2009-06-04 Thread Elijah Insua
@chris, you forgot to json_encode, mail() to a remote service, and sleep() while you wait for the results On Thu, Jun 4, 2009 at 1:34 PM, Chris Snyder wrote: > On Thu, Jun 4, 2009 at 12:39 PM, wrote: > > yeah i think unset would work just fine. > > > > So much for my serialize() / preg_replace

Re: [nyphp-talk] PHP Freelance Sites

2009-05-28 Thread Elijah Insua
http://www.freelancersunion.org/ 2009/5/28 Eddie Drapkin > I've had good experiences with Elance :] > > 2009/5/28 Peter Sawczynec > >> Has anyone used a freelance programming or web or graphics website >> >> to bid on and acquire jobs. >> >> >> >> Got any good website names? >> >> Any experien

Re: [nyphp-talk] Switch-Case v. if/else

2009-05-14 Thread Elijah Insua
+1 for profiling (http://www.xdebug.org/) I nominate Caching as well. -- Elijah On Thu, May 14, 2009 at 4:49 PM, Hans Zaunere wrote: > > Does anyone know how the PHP Interpreter pulls switch/case statements > > together? Does it emulate a C compiler and, for larger case sets, > > build a huge

Re: [nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-28 Thread Elijah Insua
Here is some C code I had laying around which executes a detached process, much like START. #include #include #include int main(int argc, char *argv[]) { if (argc < 2) { printf("Fork32 v1.0 - A windows process splitter\n\n"); printf("Usage: fork32.exe C:\\full\\path\\to

Re: [nyphp-talk] Flattening a Tree

2009-02-25 Thread Elijah Insua
This task is made much easier with qa class btw On Feb 25, 2009, at 12:13 AM, csnyder wrote: On Tue, Feb 24, 2009 at 3:52 PM, charlie derr rock.edu> wrote: Ajai Khattri wrote: On Tue, 24 Feb 2009, csnyder wrote: What are you fishing for? Write some code and try it. Nice. I initially

Re: [nyphp-talk] In hind sight

2009-02-05 Thread Elijah Insua
Michele, just as a suggestion for the future.. could you keep all of these in the same thread? Thanks, -- Elijah 2009/2/5 Peter Sawczynec > Sigh. > > > > Warmest regards, > > > > Peter Sawczynec > > Technology Dir. > > blūstudio > > 941.893.0396 > > p...@blu-studio.com > > www.blu-studio.co

Re: [nyphp-talk] Link to article about nested sets

2009-02-02 Thread Elijah Insua
demo appears to be broken On Mon, Feb 2, 2009 at 4:14 PM, Dan Cech wrote: > Mitch Pirtle wrote: > > Apologies for the cross-post, I can't remember if this was a request > > from NYPHP or the NYCJUG. *blush* > > > > Somebody at the last meet was asking about nested sets, and I promised > > to get

Re: [nyphp-talk] How to pass array when click on "submit" ?

2009-01-29 Thread Elijah Insua
anyone else care to beat the (dead) dog? On Thu, Jan 29, 2009 at 11:33 AM, Brian Dailey wrote: > Jesse, don't worry about having questions, they are welcome on this list. > > As far as your question, yes, it can be done. If you create a form input > labeled data[Person][name] it will be referenc

Re: [nyphp-talk] How to pass array when click on "submit" ?

2009-01-27 Thread Elijah Insua
when this form is submitted $_POST will contain $_POST['data']['test'][0] = "index 0" $_POST['data']['test'][1] = "index 1" $_POST['data']['test'][2] = "index 2" I'd suggest messing around with [] in the name attribute and looking at what you can get out of post with different combination

Re: [nyphp-talk] Php off root

2009-01-26 Thread Elijah Insua
Michele, I'm happy you found your way! -- Elijah On Mon, Jan 26, 2009 at 12:22 PM, Ajai Khattri wrote: > On Mon, 26 Jan 2009, Michele Waldman wrote: > > > So, anyway for anyone that I caused concern for the solution for me is > keep > > code off webroot and in webroot just include those file.

Re: [nyphp-talk] array in object

2009-01-21 Thread Elijah Insua
$key is not phone1 ? On Wed, Jan 21, 2009 at 8:24 PM, Rick Retzko wrote: > Hi Folks - > > This should be simple, but I haven't been able to debug it on my own, so > I'm asking for help. > > I'm walking through a user's webform submission that I've put into an > object and comparing each of that

Re: [nyphp-talk] function references

2009-01-10 Thread Elijah Insua
umm... with objects this gets sexy. class Add { public function execute($a, $b) { return $a + $b; } } class Subtract { public function execute($a, $b) { return $a - $b; } } $executors = array(array('object'=>new Add(), 'params' => array(1,1))); foreach ($executors as $execute) { ec

Re: [nyphp-talk] File Uploads

2009-01-08 Thread Elijah Insua
On Thu, Jan 8, 2009 at 3:23 PM, Michele Waldman wrote: > form action="test.php" method="post" enctype="multipart/form-data"> > > Pictures: > > > > > > > > > > > > > > foreach ($_FILES["pictures"]["error"] as $key => $error) { > if ($error == UPLOAD_ERR_OK) { > $tmp_name = $_FIL

Re: [nyphp-talk] Poll on presentation topic

2008-12-10 Thread Elijah Insua
only thing that seems interesting to me is the 'massive traffic site'. On Wed, Dec 10, 2008 at 2:58 PM, Mitch Pirtle <[EMAIL PROTECTED]>wrote: > Ok, I can setup HD video, and will stream it too. However y'all still > have to help me decide on what to present. > > -- Mitch, tapping foot > > > On W

Re: [nyphp-talk] security & google ajax lib (was: Ajax UI...)

2008-12-10 Thread Elijah Insua
There could be problems with man in the middle attacks, but that's goes for just about anything being served up remotely. On Wed, Dec 10, 2008 at 2:51 PM, David Mintz <[EMAIL PROTECTED]> wrote: > > > On Wed, Dec 10, 2008 at 12:32 PM, csnyder <[EMAIL PROTECTED]> wrote: > >> On Wed, Dec 10, 2008 at

Re: [nyphp-talk] Report with line breaks

2008-12-09 Thread Elijah Insua
dompdf? On Tue, Dec 9, 2008 at 11:02 AM, Néstor <[EMAIL PROTECTED]> wrote: > Thanks to all for your answers. > > I have been searching the internet and it seems that it is very hard to > create reports. > > Thanks again, > > Nestor :-) > > > On Tue, Dec 9, 2008 at 7:32 AM, Kenneth Downs <[EMAIL P

Re: [nyphp-talk] Htaccess and php user account

2008-12-01 Thread Elijah Insua
http://tinyurl.com/5ux4q6 On Tue, Dec 2, 2008 at 12:14 AM, Tim Lieberman <[EMAIL PROTECTED]>wrote: > On Dec 1, 2008, at 11:38 PM, Michele Waldman wrote: > > Thanks to your soft, delicate input, I've been doing a little more >> research. >> >> I was ps -ef on the linux server. Php appears to be

Re: [nyphp-talk] htaccess & php

2008-11-29 Thread Elijah Insua
Michelle, this post is completely misleading.. refer to your other posts for better results. basically.. you give more you get more.. kthxbbq On Sat, Nov 29, 2008 at 9:13 PM, Michele Waldman <[EMAIL PROTECTED]>wrote: > The point of the htaccess I was working on was to attempt to prevent xss > w

Re: [nyphp-talk] User Input Data scrubbing

2008-11-28 Thread Elijah Insua
Yeah, or these two words: "Filter Input" Which ever route you take. you also need to do sql injection cleansing. scrub, rinse, repeat. On Fri, Nov 28, 2008 at 8:00 PM, Chris Shiflett <[EMAIL PROTECTED]> wrote: > On Nov 28, 2008, at 16:59, Michele Waldman wrote: > > What about inserting a comme

Re: [nyphp-talk] anyone know a program which i can use to downloadthis section of a website and put data into an excel spreasheet?

2008-11-28 Thread Elijah Insua
ss one would download all the pages and then put in csv > and then create a tool to create columns and rows based on either static and > variable fields? > > Anything does that automatically? > > M > > Sent from my Verizon Wireless BlackBerry > > -Original Message---

Re: [nyphp-talk] User Input Data scrubbing

2008-11-28 Thread Elijah Insua
PM, Michele Waldman <[EMAIL PROTECTED]>wrote: > But if I replace ' with ', there aren't two passes that need to be > made. > > > > Michele > > > -- > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *On Be

Re: [nyphp-talk] anyone know a program which i can use to download this section of a website and put data into an excel spreasheet?

2008-11-28 Thread Elijah Insua
Miles, Just convert it to CSV (comma delimited). Excel is good at importing that type of data. -- Elijah On Fri, Nov 28, 2008 at 5:07 PM, Miles Rose <[EMAIL PROTECTED]> wrote: > http://www.crunchbase.com/companies > > they have an API > > > http://www.techcrunch.com/2008/07/15/crunchbase-now-h

Re: [nyphp-talk] User Input Data scrubbing

2008-11-28 Thread Elijah Insua
; > > > > -- > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Elijah Insua > *Sent:* Friday, November 28, 2008 3:27 PM > *To:* NYPHP Talk > *Subject:* Re: [nyphp-talk] User Input Data scrubbing > > > > M

Re: [nyphp-talk] HTTP_REFERER

2008-11-28 Thread Elijah Insua
ichele > ------ > > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > *On Behalf Of *Elijah Insua > *Sent:* Friday, November 28, 2008 3:23 PM > *To:* NYPHP Talk > *Subject:* Re: [nyphp-talk] HTTP_REFERER > > > > Oh! sorry to be so short with my

Re: [nyphp-talk] User Input Data scrubbing

2008-11-28 Thread Elijah Insua
Michele, SQL injection and Html injection are two separate issues. SQL injection is something like a user posting ';DELETE FROM users; where it deletes all of your user accounts. Html/Cross Site Scripting is more along the lines of what you are talking about. There are tons of libraries out t

Re: [nyphp-talk] HTTP_REFERER

2008-11-28 Thread Elijah Insua
Oh! sorry to be so short with my other mail. Generally when you request a php file on a php enabled web server the code is executed and output is returned. In essence this means that if you are returning text ie: instead of the execution result ie: hello world you quite a serious problem on your

Re: [nyphp-talk] htaccess & php

2008-11-28 Thread Elijah Insua
if you really want to remove the possibility of people hitting these php's you should move them out of your webroot. On Fri, Nov 28, 2008 at 3:02 PM, Michele Waldman <[EMAIL PROTECTED]>wrote: > This is not working for me > > > > RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mydomain\.com/ [NC] > >

Re: [nyphp-talk] passing array/object data

2008-11-24 Thread Elijah Insua
)) ? $this->data[$k] : null; } } hope it helps, Elijah Insua On Mon, Nov 24, 2008 at 2:14 PM, Michael Southwell < [EMAIL PROTECTED]> wrote: > I have a method that takes a parameter that might be either an array or a > db result object. So on the one hand I might have: > ec

Re: Re[2]: [nyphp-talk] Timeouts ... how to get around it?

2008-10-13 Thread Elijah Insua
rge, you can always break the loop down into smaller increments so instead of processing all of the email addresses at once, you could break it into 1000 increments. These techniques combined with the indexing should speed things up for you. Oh and by the way, if this is running on every page load I would

Re: [nyphp-talk] Newbie books

2008-10-13 Thread Elijah Insua
The zend php5 certification book is great (especially if you already know how to code in some language) -- Elijah On Mon, Oct 13, 2008 at 12:16 PM, <[EMAIL PROTECTED]> wrote: > I would recommend an older book - the Deitel book - Perl How to Program. > Amazon has it > ( > http://www.amazon.com/Pe

Re: [nyphp-talk] cURL question

2008-10-07 Thread Elijah Insua
Rahmin, As best practice you should secure your login data by sending it over https. Curl handles cookies rather well and should work for your needs. Regards, Elijah Insua I'm currently building an API to connect to an HTTPS server. My first script POSTs login data as clearte

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread Elijah Insua
store the time in the users session and check it on post/get On Tue, Oct 7, 2008 at 5:42 AM, Brent Baisley <[EMAIL PROTECTED]> wrote: > If you put a time stamp in the form, you should also include a "check" > to make sure the time was not changed and/or forged (which is very > easy to do). > An e

Re: [nyphp-talk] E-Commerce Shopping Carts

2008-09-30 Thread Elijah Insua
Paul, It seems like what you would want is a payment gateway, which would process the payment immediately. From there I would recommend using an Observer OOP pattern to attach events to the payment transaction. -- Elijah On Tue, Sep 30, 2008 at 1:49 AM, PaulCheung <[EMAIL PROTECTED]>wrote: > H

Re: [nyphp-talk] Need a code diagrammer

2008-09-19 Thread Elijah Insua
Hello, I love dbdesigner4, but it is MySQL only. -- Elijah On Fri, Sep 19, 2008 at 9:42 AM, David Krings <[EMAIL PROTECTED]> wrote: > Justin Dearing wrote: > > 3) It has to handle non object code and smarty templates. Most of my >> code is contained in classes, but I have a file of functions t