Re: [nyphp-talk] Hash Table Vulnerability in PHP5

2011-12-29 Thread Ben Sgro
s! > > Hans Kaspersetz > Cyber X Designs > http://cyberxdesigns.com > > > From: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On > Behalf Of Ben Sgro > Sent: Thursday, December 29, 2011 11:33 AM > To: NYPHP Talk > Subject: Re: [nyphp-ta

Re: [nyphp-talk] Hash Table Vulnerability in PHP5

2011-12-29 Thread Ben Sgro
Hey, Don't allow posts w/> ~100 k/v pairs. Don't allow larger uploads then is necessary. As you mentioned, I guess limit script execution time. Right now, there's some snort signatures going around (Not sure if you run IDS, etc). I've also heard people mention a mod_rewrite regex to strip out t

Re: [nyphp-talk] analysis of php attacks

2011-10-20 Thread Ben Sgro
Hello Dan, > but it'd be good to know which holes are currently being exploited. Well of course it would be, but I think we can safely assume it's unpatched known exploits in common popular software platforms (wordpress, drupal modules, etc) or 0days against the same. We'll see soon enough.

Re: [nyphp-talk] Extra Laptop

2011-08-26 Thread Ben Sgro
I have a t60. Ping me offline on Monday after the storm. I remember you from many years on the list Matt. On Aug 26, 2011, at 2:56 PM, Matthew Kaufman wrote: > Does any one have a *spare* laptop they could loan another developer? > > I just replaced my laptop that had died on Saturday with

Re: [nyphp-talk] Rate limiters for sign ups for a site.

2011-08-15 Thread Ben Sgro
Hello Anthony, Have you implemented CAPTCHAs?If you have not, that might help curb some of the automated account creation. Also, you could add in an email verification step to the account sign-up process. Can you give more details on what techniques you've tried and what (if any) framework or

Re: [nyphp-talk] Office

2011-05-25 Thread Ben Sgro
Take a look at http://hiveat55.com/ On May 25, 2011, at 5:04 PM, Matt Kaufman wrote: > I am a programmer who an office to work out of both on a short-term > (instant, asap) basis and also longer-term basis for my trading/software > company, MarketAPI. > > On a shorter-term basis, I need to qu

Re: [nyphp-talk] ot: rackspace cloud / slicehost

2011-02-09 Thread Ben Sgro
Hey, Rackspace is pretty good - I've used them for many years for professional work. Slicehost is great as well - except that I had some issues I couldn't solve and moved to linode instead. Slicehost's management UI is really slick. Recently I've been using linode (I still use Rackspace for wor

Re: [nyphp-talk] Thoughts on encryption

2010-05-06 Thread Ben Sgro
Hello, Hi Anthony, MD5 and SHA1 password hashes are considered weak. You are correct that someone got a hold of your hashes they could use a dictionary of common passwords to devise some of your user's passwords. It makes me laugh a little when people say MD5 or SHA1 is weak or broken. If it

Re: [nyphp-talk] Inspiration for projects.

2010-01-20 Thread Ben Sgro
I try to think about things that are a PITA - and how software can fix that. Maybe its simply automating a process for myself - or something larger, like a full blown site for this or that. I think the best ideas come when your not really trying - but also, if your attempting to brainstorm, th

Re: [nyphp-talk] iterating through a multibyte string

2010-01-14 Thread Ben Sgro
Mike, I've seen the exact opposite argument, that the family of functions str_* are faster than regex. And, um, PHP is implemented in C, so isn't all the work done in C at the end of the day? The str_* methods will be optimized, the (dynamic) regex will not. I'm confused by your logic ... -

Re: [nyphp-talk] Code Reviews

2009-12-29 Thread Ben Sgro
Hello Peter, At my current company we do both peer reviews and group code reviews. The group code reviews seem to have the best impact, as the peer reviews have naturally ceased to happen. Our group code reviews happen bi-monthly and during the time (usually an hour) developers working on dif

Re: [nyphp-talk] XCache on windows - Can I see your xcache.ini?

2009-12-18 Thread Ben Sgro
d the extension_directory option. Are you using IIS or Apache? Adrian On Fri, Dec 18, 2009 at 11:13 AM, Ben Sgro <mailto:b...@projectskyline.com>> wrote: Hello Adrian, Can you provide the specifics of your windows installation and php installation - version, additional extens

Re: [nyphp-talk] XCache on windows - Can I see your xcache.ini?

2009-12-18 Thread Ben Sgro
Hello Tom, Yes, but I will double check - - Ben Tom Sartain wrote: Ben, are you certain that it can find your xcache.ini file? I believe it should be in the phpinfo() up top as "additional ini files parsed" ___

Re: [nyphp-talk] XCache on windows - Can I see your xcache.ini?

2009-12-18 Thread Ben Sgro
what else to try. Adrian On Tue, Dec 15, 2009 at 11:36 AM, Ben Sgro <mailto:b...@projectskyline.com>> wrote: Hello, I'm trying to setup xcache on window - it is listed in (phpinfo()): This program makes use of the Zend Scripting Language Engine: Zend Engine v2

[nyphp-talk] XCache on windows - Can I see your xcache.ini?

2009-12-15 Thread Ben Sgro
Hello, I'm trying to setup xcache on window - it is listed in (phpinfo()): This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans with XCache v1.2.2, Copyrigh

Re: [nyphp-talk] IDE for PHP extension development?

2009-11-17 Thread Ben Sgro
Hello Mitch, Your writing your extension in c correct? So, XCode will work fine, and you don't really have to trick it out as it will provide you a variety of options for writing in C. Its probably the best IDE you'll find next to Visual Studios for doing C development (your on a Mac, so Xcode

Re: [nyphp-talk] $_SESSION, Logout, and Shared Host

2009-11-04 Thread Ben Sgro
Hello, I'm pretty sure you can control the /tmp/ directory where the sessions are stored. Just change it to be relative for each application. http://www.php.net/manual/en/function.session-save-path.php - Ben Christopher R. Merlo wrote: On Wed, Nov 4, 2009 at 8:16 PM, Tim Lieberman

Re: [nyphp-talk] Bad ISP Problem: Need New Domain Registration, Management and Hosting Service

2009-09-05 Thread Ben Sgro
Hello, I have, and still use, nexcess.net for all my hosting and domains. I have a reseller plan w/them, so it is more than you want to pay, but their customer support is amazing and you might want to at least take a look. I've used goDaddy, but I had problems with addresses being blacklisted.

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

2009-08-15 Thread Ben Sgro
the neat features of the iphone (gestures, accelerometer, etc). I just got into it about 5 months ago, but I've been compelled to create some apps, a few of which are in the appstore. Search "ben sgro" to check them out! Said it best: Really makes programming Fun again. Give it

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

2009-08-12 Thread Ben Sgro
> What does Java provide that PHP can't do faster and with lighter resource usage? XSLT 2.0 support. PHP does not. - Ben Leam Hall wrote: Gang, I'll confess that I'm happy to support Java as it provides lots of reasons to upgrade hardware and buy newer/faster machines. However, from a syst

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

2009-06-11 Thread Ben Sgro
Correct, Have the page POST to itself, validate the form input in PHP and while still in PHP, redirect. Otherwise, if you have errors, generate the applicable HTML. Here's some pseudo code: "; } else { echo ""; } - Ben Konstantin Rozinov wrote: You should place all of your PHP code t

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

2009-06-10 Thread Ben Sgro
haha sorry - email client went crazy! Ben Sgro wrote: Hey, Have you searched for exploits for this 3.7 version? Who knows, maybe something is public and hasn't been patched yet. Also, I'd do a little research and see if someone is distributing some kinda vBulletin pwnage attack

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

2009-06-10 Thread Ben Sgro
Hey, Have you searched for exploits for this 3.7 version? Who knows, maybe something is public and hasn't been patched yet. Also, I'd do a little research and see if someone is distributing some kinda vBulletin pwnage attack suite or similar. If you can find something, dig through the source a

Re: [nyphp-talk] [0T] Verizon FIOS -- comments?

2009-05-15 Thread Ben Sgro
Hey, Oh, free account. Ok - I just pay the $15/year and be done with it. Well worth it for their service. - Ben Michael Hernandez wrote: On Fri, 2009-05-15 at 16:25 -0400, Ben Sgro wrote: Hello, Woah - I've never heard of such a thing. I've been using dydns for almost 4 years

Re: [nyphp-talk] [0T] Verizon FIOS -- comments?

2009-05-15 Thread Ben Sgro
Hello, Woah - I've never heard of such a thing. I've been using dydns for almost 4 years now, my IP rarely changes, and I've never had an interruption of service. Did they specifically say they canceled your account due to "lack of dynamicness" heh? Strange - - Ben Michael Hernandez wrote:

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

2009-05-14 Thread Ben Sgro
Hello, How do you know the switch statement is your performance bottleneck? Did you profile the application? Care to share the code? - Ben Donald J. Organ IV wrote: If I remember correctly, if/else if/else statements are faster than Switch-Case. I would suggest converting them and see if y

Re: [nyphp-talk] Website quotation

2009-04-28 Thread Ben Sgro
Hey Artur, Glad it gave you a laugh! Yeah, its always best the first time - Take care, - Ben Artur Marnik wrote: Hi Ben I have never seen http://lmgtfy.com before this made my day :) I am sure I will use it a lot (I have many friends asking silly questions on ICQ etc) Artur Ben Sgro

Re: [nyphp-talk] Website quotation

2009-04-25 Thread Ben Sgro
Hey David, Heh, of course - that was for the original poster - just having fun. - Ben David Krings wrote: Ben Sgro wrote: http://lmgtfy.com/?q=How+to+make+a+website(project)+quotation Thanks, point taken, but wouldn't one need some more info to give a reasonable response other than

Re: [nyphp-talk] Website quotation

2009-04-25 Thread Ben Sgro
http://lmgtfy.com/?q=How+to+make+a+website(project)+quotation David Krings wrote: Mona Borham wrote: Hey there, How to make a website(project) quotation? Uhm..can you be more unclear? David ___ New York PHP User Group Community Talk Mailing List h

Re: [nyphp-talk] W3 Schools?

2009-04-11 Thread Ben Sgro
Hello, Typically, I've seen this website used by large corporations to sift through candidates - I've had HR or a HH require a test from this website be taken to progress to the next stage of the interview. I always felt it was a bit *silly* - The type of organization that includes this as part

Re: [nyphp-talk] Transforming XML with XSL (XsltProcessor problems)

2009-03-13 Thread Ben Sgro
Hey, Thanks for the feedback and the sample code. I'm going to look over this in more detail today. Thanks again everyone! - Ben Daniel Convissor wrote: Hey Folks: On Thu, Mar 12, 2009 at 09:44:08PM -0400, Ajai Khattri wrote: I have to say, the error reporting for the XML and XSLT functio

Re: [nyphp-talk] Transforming XML with XSL (XsltProcessor problems)

2009-03-11 Thread Ben Sgro
nt, string, file locaiton, etc) and it just handles it all for me. BTW - unless you need it // is relatively expensive in xslt. You should use relative paths whenever possible. Glad you figured it out. Joelle Ben Sgro wrote: Thanks for the feedback The error was super simple:

Re: [nyphp-talk] Transforming XML with XSL (XsltProcessor problems)

2009-03-11 Thread Ben Sgro
e Tegwen wrote: This worked for me. PHP 5.2.6-2ubuntu4.1 with Suhosin-Patch 0.9.6.2 $xml =<<submitDateTime="2009-01-12T17:32:46"> XML; $xsl =<<http://www.w3.org/1999/XSL/Transform"; version="1.0" xmlns="http://www.w3.or

Re: [nyphp-talk] Transforming XML with XSL (XsltProcessor problems)

2009-03-11 Thread Ben Sgro
rom: talk-boun...@lists.nyphp.org [mailto:talk-boun...@lists.nyphp.org] On Behalf Of Ben Sgro Sent: Tuesday, March 10, 2009 6:33 PM To: NYPHP Talk Subject: [nyphp-talk] Transforming XML with XSL (XsltProcessor problems) Hello, My PHP code is: - $xml = new D

[nyphp-talk] Transforming XML with XSL (XsltProcessor problems)

2009-03-10 Thread Ben Sgro
Hello, My PHP code is: - $xml = new DOMDocument; $xml->load($this->_payload); $xsltProcessor = new XsltProcessor(); $xsl = new DomDocument; $xsl->load('../lib/Transformations/text.xsl'); $xsltProcessor->importStyles

Re: [nyphp-talk] PHP and Flex

2009-02-17 Thread Ben Sgro
Hi, At my company we use Zend (no AMF though) with flex front ends. We talk to Flex via XML. It works great. What Zend lacked was a truly RESTful router, so we extended Zend and created one. Zend is nice because it doesn't force you to solve problems in a particular way - it gives you the to

Re: [nyphp-talk] PHP Compared to Cold Fusion

2009-02-05 Thread Ben Sgro
Hey, We are moving away from CF. Finding talent is difficult, and what can be done in CF can be done CLEANER in a different languages. I'm speaking to the this syntax. CF does have some nice PDF abilities and has been using "binded" queries for a long time. It is more $ because of the cf se

Re: [nyphp-talk] Open Source Project Management Tools

2008-12-15 Thread Ben Sgro
Hello, I've had great experience with mantis and basecamp (again, for small organizations).. I tried using SugarCRM for a while, even built some custom views, but the UI is pretty awful and the workflow didn't fit in with us. Gantt charts aren't that bad. = ] - Ben Peter Sawczynec wrote:

Re: [nyphp-talk] Downloading File Outside of the Root

2008-12-03 Thread Ben Sgro
Hello, Why not just email them the book (size permitting)? - Ben Joseph Crawford wrote: If you want the file to live outside the www that's fine, but i doubt you can do it like you did in the rewrite. I would make the rewrite point to a php script that reads the file then outputs it for down

Re: [nyphp-talk] User Input Data scrubbing

2008-11-30 Thread Ben Sgro
Hello, Try: http://ha.ckers.org/xss.html - Ben Konstantin Rozinov wrote: does anyone know where I can find a list of sample MALICIOUS data that i can input into my forms to see how the code reacts? i'm not looking for any automation or program, just the actual sample data. i'm trying to do QA

Re: [nyphp-talk] OpenID is what?

2008-10-30 Thread Ben Sgro
Hello Mike, I think you have your real question here: Having been recently hacked and several of my webmaster email account names being hijacked by spammers, I am looking for viable solutions to safeguard my websites and the membership of these sites. How about fixing the problem, instead of ad

Re: [nyphp-talk] Newbie books

2008-10-13 Thread Ben Sgro
Hello Corey, 1) http://www.amazon.com/PHP-5-Objects-Patterns-Practice/dp/1590593804 2) http://www.amazon.com/Object-Oriented-Thought-Process-Developers-Library/dp/0672330164/ref=sr_1_1?ie=UTF8&s=books&qid=1223927768&sr=1-1 3) http://www.amazon.com/Object-Oriented-Design-Heuristics-Arthur-Riel/d

[nyphp-talk] [OT] 1U up for sale (and a lappie)

2008-10-09 Thread Ben Sgro
Hello, In trying to rid my basement of computers, I have up for grabs: http://www.geeks.com/details.asp?invtid=DL145&cat=SYS I believe we have a RAID setup w/either 250 or 500 GB HD's in RAID1. Best offer (and please pickup only, this thing weighs a ton!) I'm in Brooklyn NY. Also, I have an

[nyphp-talk] Building PECL Sources

2008-09-17 Thread Ben Sgro
Hello, I want to fix a bug (from '06) in the PECL PDO database adapter (http://cvs.php.net/viewvc.cgi/pecl/pdo_dblib/). There is zero documentation for this project however - I've just contacted the lead dev and I'm awaiting a response. I'm interested if anyone on the list has experience wo

Re: [nyphp-talk] Windows, Apache, SSL & Zend (Https Error)

2008-09-12 Thread Ben Sgro
Hello, I'm pretty sure this is a .dll defined in php.ini and loaded by apache. Do you mean a windows service? Care to elaborate? - Ben Tim Gales wrote: Ben Sgro wrote: We are running PHP5/Zend on Windows/Apache and getting this error when a HTTPS URI is passed into Zend_Http_C

[nyphp-talk] Windows, Apache, SSL & Zend (Https Error)

2008-09-12 Thread Ben Sgro
Hello, Someone else at my work is digging into this problem in more detail, but I know this list is a great resource and I had to post: We are running PHP5/Zend on Windows/Apache and getting this error when a HTTPS URI is passed into Zend_Http_Client(). /Unable to Connect to ssl://[redacted

Re: [nyphp-talk] Foo_Shape_Circle class naming convention from where?

2008-09-02 Thread Ben Sgro
Hello, Yes, I follow this name space / naming convention. Learned from Zend and kept using. Since PHP doesn't support namespaces (like java) I guess the next best thing is the "Zend_Auth_.." style. - Ben Michael B Allen wrote: I'm just curious but does anyone know what the origin of the c

Re: [nyphp-talk] preventing randomized session variable from changing when page is refreshed

2008-08-21 Thread Ben Sgro
Hello Kristina, David summed this up pretty darn well. I don't see why you are reluctant to use session_id and the other functions. It solves all the problems I can see that you are mentioning. Maybe you could create a test script to play with session_id to get a better feel for how it works,

[nyphp-talk] Release: DoubleCheck - PHP Debug Script

2008-08-20 Thread Ben Sgro
Hello All, So, after porting some C code to PHP for a research project, I had a spelling mistake ($complexCamelCaseVar, heh) that caused a bug that took me a long time to find out. I thought, wouldn't it be great to get a list of all my variables, in alphabetical order, with a count associate

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Ben Sgro
I can't comment on vi + xdebug (im an emacs guys) but w/komodo & xdebug - what is so "impressive" is the ability for me to step through my code. Say I have a class that does a few SOAP requests - My client hits my service and all they get back is a 500. Great. How would I go about debugging th

Re: [nyphp-talk] Turning on all warnings, error reporting, collecting debugging info ...

2008-08-18 Thread Ben Sgro
Right on - I use komodo IDE w/xdebug - I couldn't work without it. Especially developing "enterprise" level web applications. - Ben Mitch Pirtle wrote: On Sun, Aug 17, 2008 at 4:55 PM, Michael B Allen <[EMAIL PROTECTED]> wrote: I think I had xdebug enabled on my old machine but I did not n

Re: [nyphp-talk] connecting external site to craigslist for auto posting?

2008-08-15 Thread Ben Sgro
Hello, I wrote a script that searches craigslist (by category and/or location) for words defined within a reference set. If it finds enough words greater than some predetermined threshold, it will send an email to the poster. It keeps track of which posts it has seen and responded to. Its wr

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

2008-08-12 Thread Ben Sgro
Hello, One way to enforce this is to do (example): $validMode = array('last' => 'last', 'first' => 'first', 'all' => 'all'); if (!isset($validMode['$_GET['mode']])) { /* bad input */ } else $sqlWhere = $validMode['$_GET['mode']])); Which is essentially enforcing a white list. There's a ton of

Re: [nyphp-talk] [OT] notebook recommendations - time to retire the Thinkpad t42p... anyone know Lenovo's t61p?

2008-08-10 Thread Ben Sgro
Hello, I have a PCMCIA rs232 for my t61 and it works great. When using a USB->rs232 under windows, running ubuntu in a VM, I notice really low throughput or just tons of lag. Not sure why, but the performance is abysmal. - Ben Jerry B. Altzman wrote: on 2008-08-09 12:28 inforequest said the

Re: [nyphp-talk] [OT] notebook recommendations - time to retire the Thinkpad t42p... anyone know Lenovo's t61p?

2008-08-08 Thread Ben Sgro
Hello, I'm rocking a Lenovo T61 w/Ubuntu - entry level model, no extras. Works well, APM and all the function key's work! amazing. Overall, its a pretty solid laptop. However, I only use if for robotics research and gcc related stuff. Battery life and screen brightness are good. I love the t

Re: [nyphp-talk] Scour.com invite from Joseph Crawford

2008-07-24 Thread Ben Sgro
Hey Joseph, You seem to have subscribed my email (along w/the signup for scour) to a codebowl mailing list...I've already received 3 emails in the last 4 hours. Please remove me... - Ben Joseph Crawford wrote: Yea sorry about that Mitch :) This is not typical of me a

Re: [nyphp-talk] PHP-Related Book

2008-07-10 Thread Ben Sgro
Hey Aaron, Congrats on the book - got any promo copies you need to get rid of? hehe, - Ben Aaron Greenspan wrote: Hello, I realize this is blatant self-promotion, but hopefully it won't ruin anyone's day... In case anyone is interested, I've recently published a book that's pretty direct

Re: [nyphp-talk] ftp_connect(): php_network_getaddresses: gethostbyname failed

2008-07-07 Thread Ben Sgro
Hello, Maybe php or apache (whomever is execing the process) doesn't have perms to open a socket. If your on a chrooted or some shared hosting plan this might happen - I really don't know though. I'm guessing you googled this error message and found no help? If not, I'd surely hit up googl

[nyphp-talk] Web Security Article (XSS)

2008-06-18 Thread Ben Sgro
Hey all, This fairly short and pretty cool vectored attack came through on the dailydave; thought I'd share it here: - Ben - Hi - Back in 2002 I had published details of a vulnerability affecting most web browsers. It detailed a security flaw that allows attackers to abu

Re: [nyphp-talk] MSSQL, PDO & Unicode

2008-06-05 Thread Ben Sgro
Hello Justin, Yeah, as far as I can tell, Dave is correct. The source I built was for linux. I don't see if building for windows. (But I haven't tried) Thanks though for your feedback. I'm hoping someone can provide some additional help. This is REAL problem, because we worked hard to get PH

Re: [nyphp-talk] MSSQL, PDO & Unicode

2008-06-04 Thread Ben Sgro
Hello Justin, A few weeks ago I build the driver for linux and got it working. My problems are w/the pdo driver it self, not being able to work correctly. Also that and Zend doesn't have a SQLSERVER driver (besides pdo). - Ben Justin Dearing wrote: On Wed, Jun 4, 2008 at 1:20 PM, Ben

Re: [nyphp-talk] MSSQL, PDO & Unicode

2008-06-04 Thread Ben Sgro
just works, and it works great. Also, two columns will increase rowsize. since were talking large strings and not ints, guids or the like this will be a big issue. On Wed, Jun 4, 2008 at 11:42 AM, Ben Sgro <[EMAIL PROTECTED]> wrote: Hello All, So, here's the issue I'm stuck

[nyphp-talk] MSSQL, PDO & Unicode

2008-06-04 Thread Ben Sgro
Hello All, So, here's the issue I'm stuck against: We are currently developing on Linux and then deploying to Test, Staging and Production on Windows. We are using the Zend framework, with the PDO driver. (config.ini: database.adapter = "pdo_mssql"). The original issue is that when storing

Re: [nyphp-talk] protecting download directory in PHP app on Unix box?

2008-05-28 Thread Ben Sgro
Or just email the purchasers email address (obtained through paypal) the .pdf. - Ben Kristina Anderson wrote: This might be off topic as well...but I have a PHP app that submits to Paypal and then on the "thank you" page, I provide a link to a PDF that they bought. The server is Unix based,

Re: [nyphp-talk] protecting download directory in PHP app on Unix box?

2008-05-28 Thread Ben Sgro
Hello Kristina, First off, don't have the PDF's "serveable" from Apache. Have them OUT of the web root. Second, after they pay, and get the IPN feedback to validate the sale, you could copy the pdf from your safe directory (outside of apache) to the webroot and rename it something unique. You c

Re: [nyphp-talk] one special question

2008-05-28 Thread Ben Sgro
Chad, You could cron us a job email that sends picture daily via. That'd be my best guess. - Ben chad qian wrote: I run into problem with the following in my project: Today,People select 20 thumbnail pictures and add them to the cart. >From tomorrow,website will email one picture per day to

Re: [nyphp-talk] Schema Validation [Solved]

2008-05-13 Thread Ben Sgro
Hello, The first problem is that the .xsd was not up to date. The second is that you cannot call load() on an xml string, you have to call loadXML(). load() is for a file. - Ben Ben Sgro wrote: Hello, I'm having a lot of trouble getting the dom object schema validation to work.

[nyphp-talk] Schema Validation

2008-05-13 Thread Ben Sgro
Hello, I'm having a lot of trouble getting the dom object schema validation to work. After looking on google, it seems there isn't a straight forward way to handle complex schemas. Take the following code: if (is_file($schemaFile)) { $domObj->load($requestXml);

Re: [nyphp-talk] Twitter Abandons RoR

2008-05-02 Thread Ben Sgro
+1 but I still believe it's something of a fad. Brian D. wrote: I think it's been confirmed as a rumor at this point. Still, was interesting to talk about. I was at Jelly NYC (a co-working group) this morning and the news item was inspiring a little discussion. Rails is definitely popular her

Re: [nyphp-talk] About Formalizing an Enterprise PHP and the PHP+ Developer

2008-04-22 Thread Ben Sgro
Hello Peter/et all, I agree with a lot of this. I've been thinking about the same thing since the "OT Webmaster Test" thread started. Some kind of move like this would surely help increase the quality of software and allow those new to a project to become productive more quickly. This is ba

Re: [nyphp-talk] Greetings

2008-04-22 Thread Ben Sgro
Welcome!!! +1 Zend framework. Starting using it a few weeks ago. Really enjoying it. - Ben Jake McGraw wrote: The cookie problem you're having, have you considered using a framework to take the guess work out of when it is appropriate to set a cookie (ie send a header)? Using a consistent meth

Re: [nyphp-talk] Re: Serial communication in Mac OS X

2008-04-17 Thread Ben Sgro
Hey Corey, The robotics application I'm working on is a SRV1 from trossenrobotics. It's a really neat little device. I actually DONT use the serial stuff now that I have wifi working, I know use that to communicate w/the device. The RXTX link I provided has decent information on using the Jav

Re: [nyphp-talk] Re: talk Digest, Vol 18, Issue 38

2008-04-17 Thread Ben Sgro
Hello Corey, Did you try running sudo Maybe you need root to write to serial... - Ben Corey Fogarty wrote: Hi again, I spoke with Keyspan and they assured me the USB to Serial device was working if I could use the Screen tool. I asked why I was unable to redirect stdin/stdout to and from

Re: [nyphp-talk] Serial communication in Mac OS X

2008-04-16 Thread Ben Sgro
Hello Corey, This doesn't really answer your question, but I've recently been doing java serial work on osx for some robotics stuff. Take a look at http://rxtx.qbang.org/wiki/index.php/Main_Page Sorry I dont have more specific php info. - Ben Corey Fogarty wrote: Hi All, I am trying to con

Re: [nyphp-talk] Re: OT: webmaster test

2008-04-16 Thread Ben Sgro
Good call, I love to read. Read all the time. Just read your email and I'm going to read a book. - Ben Christopher R. Merlo wrote: On Wed, Apr 16, 2008 at 5:02 PM, David Krings <[EMAIL PROTECTED] > wrote: A university is supposed to train interested candidates

Re: [nyphp-talk] Re: OT: webmaster test

2008-04-16 Thread Ben Sgro
well said! +1,400,000 Peter Sawczynec wrote: I would posit that there has been a tipping point in all programming and related fields including webmastering. That the days of stringing together some solid text pages that all ran off a little recycled personal server that laid unsecured on the

Re: [nyphp-talk] OT: webmaster test

2008-04-14 Thread Ben Sgro
I use emacs Matt Juszczak wrote: So I consider myself to be well-versed in *nix/php/mysql/lamp/etc. But I don't use vi. It isn't my editor of choice. So how would one defend themselves there? On Mon, 14 Apr 2008, André Pitanga wrote: Hey Edward Potter, And my only coder question: How g

Re: [nyphp-talk] OT: webmaster test

2008-04-14 Thread Ben Sgro
Hello ladies and gentlemen, I just want to give a +1 to the previous thoughts. Most of the questions you had (1-5) are pretty silly. Ask them to either look at code and predict the behavior, or create something of their own. You can also request they submit code when they apply for the positi

Re: [nyphp-talk] Website Data Encryption tools

2008-04-06 Thread Ben Sgro
Hello Joe, Take a look at ionCube encoder. I use this and it works great. - Ben Joe Leo wrote: Hi Dan, Thanks for your reply and comments I am not so much looking to have data encrypted from the user. But, encryption on the "server side" For example, I want to be able to encrypt a w

Re: [nyphp-talk] Did you know that each integer in a PHP array takes 68 bytes of storage?

2008-04-01 Thread Ben Sgro
Hello, If anyone is truly interested in the internals of php (the c code and data structures) take a look at the book "Extending and Embedding PHP". Its got lots of source. If you don't know c, its not that helpful and will be a challenging read. - Ben Webmaster wrote: You're not the only o

Re: [nyphp-talk] Reading just a couple lines of a file?

2008-03-26 Thread Ben Sgro
Hello, Performance: Yeah, you don't have to hold the entire file in memory. Use fopen/fread and iterate through with a buffer size. - Ben leam wrote: Is there a performance benefit and way to read just the first few lines of a 5k-10k file? I'm dealing with 20-300 files at a time. Pseudo c

Re: [nyphp-talk] Is @$arr['key'] ok?

2008-03-08 Thread Ben Sgro
Hello, Personally, I don't like suppressing warnings, even in this case. I would think, somewhere previously in your code, when you could have set $arr['key'] to a value, you should (maybe) set it to null (0, empty string, etc) when you create it, or somewhere else. I think it is bad practic

Re: [nyphp-talk] Thank you NYPhP -- Kerbeaz launches!

2008-02-14 Thread Ben Sgro
Nice work Cliff, /me raises glass To your continued success! - Ben Cliff Hirsch wrote: NYPhP: I have been holding off on this, waiting until things are “perfect”, but finally realized that could be an eternity. So... Kerbeaz went live on Monday. I thought the hard part was behind me, but

Re: [nyphp-talk] sign in/out of the website

2008-02-06 Thread Ben Sgro
Hello Chad, There are many ways to do this, and probably better ways then what I'm going to say..but here goes: On each page, at the top, before you do any output do a login test: I am working on one php/mysql website (1)user login system(registration,profile,forget password).After user inp

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

2008-02-05 Thread Ben Sgro
Hello all, I have a class that handles session and that is included further down in the class. Typically file struct: PHP Config (dev, live, etc) Includes Instantiate classes (session_start( ) gets called in the session objects constructor) Support functions Main code, usua

Re: [nyphp-talk] [OT] SQL Query

2008-02-04 Thread Ben Sgro
Hello, Thanks to all. I was doing this for the individual id selection, and it just appeared that it wouldn't work for all id's. I should have just tried it before asking. Thanks again, - Ben Allen Shaw wrote: Ben Sgro wrote: I have a table that includes an id (not unique and a v

[nyphp-talk] [OT] SQL Query

2008-02-04 Thread Ben Sgro
Hello All, I have a table that includes an id (not unique and a version). A unique row is identified by both the id and version. This is for MSSQL. I want to select all the id's, but only return the most up to date version. So, for a table id | version - 1 | 0 1 | 1 2 | 0 2 | 1 2

Re: [nyphp-talk] Dynamic Form Elements

2008-02-01 Thread Ben Sgro
+1 to jquery. It makes working with js enjoyable. - Ben Jake McGraw wrote: Btw, not to go OT or start a js framework war, I highly recommend jQuery for any DOM manipulation tasks like the one you describe here. - jake On Feb 1, 2008 11:59 AM, Michael B Allen <[EMAIL PROTECTED]> wrote: On

Re: [nyphp-talk] Charsets revisited -- good book

2008-01-29 Thread Ben Sgro
+1, yes good book, lots of detail and source provided. Cliff Hirsch wrote: Revisiting charset, take a look at “Building Scalable Website” by Cal Henderson of Flickr fame. He has a good chapter of internationalization & localization, along with another chapter on filtering utf-8, etc. Cliff -

Re: [nyphp-talk] escaping

2008-01-23 Thread Ben Sgro
what about http://myViagra.com? You'll probably need a robust solution for managing all the crap people can stick into your blog comment space. Is it a home made blog? (Your own code?) or an off the shelf thing? - Ben Susan Shemin wrote: Is this "escaping" that you guys have been talking abou

Re: [nyphp-talk] Delaying form submit

2008-01-20 Thread Ben Sgro
Hello Urb, I believe this came up a few months ago, and one of the answers was setting a variable at the END of the form. You could then check for the existence of this variable, and if found, assume the form has been loaded. You might be able to use something like jquery to check that each fo

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

2008-01-16 Thread Ben Sgro
Hello, Yeah +1 on that. Find some stuff that interests you, and dig in. Keep reading of course and in between projects create a sandbox and experiment with new stuff, with the goal that some of that will be used in your next project. Try experimenting with smarty outside a customers applicati

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

2008-01-14 Thread Ben Sgro
chime in. - Ben B.A.S. wrote: Ben Sgro wrote: Hello, Out the box, PHPMailer works pretty good. I know there is a bug in the install I used where you have to explicitly set the language variable or else it doesn't work. I'd suggest further debugging your current situation befor

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

2008-01-14 Thread Ben Sgro
Hello, Out the box, PHPMailer works pretty good. I know there is a bug in the install I used where you have to explicitly set the language variable or else it doesn't work. I'd suggest further debugging your current situation before switching to PHPMailer. - Ben A. wrote: Hi Everyone, I'

Re: [nyphp-talk] Question about explicit returns

2008-01-11 Thread Ben Sgro
Hello, Word, I immediately feel version 2 is easier to understand. Yeah you can't check the result, but you could step through with a debugger and then check the *result* $result just adds extra complexity; no need to copy the value and then return it. Just return it at the first point you ca

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-02 Thread Ben Sgro
Right on, I read that and was, woah, when does the article start...looking for a link the "page 2 >>" trash. Tim Gales wrote: Thought this might be of interest: http://php.sys-con.com/read/457324.htm James Anderson writes (in his response to the article): The really simple answer is that

Re: [nyphp-talk] Web hosting.

2007-12-19 Thread Ben Sgro
as your PHP 4/5 conversion issue? Regards, Anthony Wlodarski 646-285-0500 x230 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro Sent: Wednesday, December 19, 2007 2:36 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Web hosting. I've

Re: [nyphp-talk] Web hosting.

2007-12-19 Thread Ben Sgro
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro Sent: Wednesday, December 19, 2007 3:34 PM To: NYPHP Talk Subject: Re: [nyphp-talk] Web hosting. 4 months maybe... They do custom plans yo! I think I even blogged about how pissed off I got. Space vs Cost...I'm not

Re: [nyphp-talk] Web hosting.

2007-12-19 Thread Ben Sgro
idn't go by too well with the higher ups. Approximately how long ago was your PHP 4/5 conversion issue? Regards, Anthony Wlodarski 646-285-0500 x230 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro Sent: Wednesday, December

Re: [nyphp-talk] Web hosting.

2007-12-19 Thread Ben Sgro
I've had bad experience w/a client who was using host gator. We needed to run php5 and I had to spend a few hours to get them to upgrade us to php5 from php4. It was a pita. I use nexcess.net, they are amazing. Amazing! Been using them for a over a year, maybe two, w/a 30 node reseller account.

  1   2   3   >