Re: [nyphp-talk] Which MySQL API?

2014-02-24 Thread Darryle Steplight
Hi Michael, You should be using some flavor of Prepared statements (PHP PDOs) of some sort. http://us3.php.net/manual/en/pdo.query.php On Mon, Feb 24, 2014 at 1:50 PM, Michael B Allen wrote: > Hi, > > I'm rewriting something after many years that uses the PHP mysql_query > procedural style A

Re: [nyphp-talk] CentOS v Ubuntu

2013-06-26 Thread Darryle Steplight
I always compile PHP by hand. There are definitely extensions that are not turned on by default that I may need turned on depending on the project or feature i'm implementing. I guess that's off topic though. On Wed, Jun 26, 2013 at 2:54 PM, Daniel Convissor < dani...@analysisandsolutions.com> wr

Re: [nyphp-talk] CentOS v Ubuntu

2013-06-19 Thread Darryle Steplight
+1 for Ubuntu with LAMP stacks. I made the switch from Centos to Ubuntu without any regrets on my servers. On Wed, Jun 19, 2013 at 1:28 PM, Ronald Bradford wrote: > I see a lot of Ubuntu Server deployments for LAMP stack (probably more now > then RH/CentOS/). > > As already asked, it's what you

Re: [nyphp-talk] Browser detection

2013-05-01 Thread Darryle Steplight
It looks like Detector just uses modenizer some how behind the scenes. Kind of cheating? Federico have you looked into Phantom.js yet? On Wed, May 1, 2013 at 5:08 PM, Brian O'Connor wrote: > This might be useful for you: https://github.com/dmolsen/Detector > > > On Wed, May 1, 2013 at 3:55 PM,

Re: [nyphp-talk] OOP Newbie Building arrays in extended classes

2013-01-25 Thread Darryle Steplight
Take a look at PHP traits, its a PHP 5.4 feature and PHP's solution to multi-inheritance. On Fri, Jan 25, 2013 at 6:57 PM, Leam Hall wrote: > Err...until I remember to put parent::__construct() in B. :) > > Leam > > > On 01/25/2013 06:51 PM, Leam Hall wrote: >> >> Interesting. The parent isn't

Re: [nyphp-talk] Front-End List ????

2012-07-30 Thread Darryle Steplight
> On Jul 30, 2012, at 10:31 AM, Darryle Steplight wrote: >> >> Does anyone know of any front-end developer specific list I can >> post too? I tried the NYPHP Front-End list, but I guess it has been >> inactive for some time now. Thanks in advance. > > If you

[nyphp-talk] Front-End List ????

2012-07-30 Thread Darryle Steplight
Good Morning Everyone, Does anyone know of any front-end developer specific list I can post too? I tried the NYPHP Front-End list, but I guess it has been inactive for some time now. Thanks in advance. -- -- "May the Source be with you." _

Re: [nyphp-talk] How To Make "php" show up as "somefile" when running the top command...

2012-06-21 Thread Darryle Steplight
Hans, Using the "ps" command allows me to see "php filename.php" but top wouldn't allow me to see the filename, this is what sparked me to think about changing "php" to something more specific. I don't know why I didn't try "ps" at first. A little birdy told me that symlinking to the PHP bina

Re: [nyphp-talk] How To Make "php" show up as "somefile" when running the top command...

2012-06-21 Thread Darryle Steplight
Hi Hans, When I run any php file from the command line it shows up at "php" under the COMMAND column on my Mac. I'm not running this on a server right now, just locally. On Thu, Jun 21, 2012 at 4:42 PM, Hans Zaunere wrote: >>     How do i get my PHP file running from the command line to show

[nyphp-talk] How To Make "php" show up as "somefile" when running the top command...

2012-06-21 Thread Darryle Steplight
Hi Guys, How do i get my PHP file running from the command line to show up as "SOMENAME" when I execute the top command from the terminal? Right now it will show up as "php" but I want to be able to distinguish it from other php files that may be running. I've seen this done once so I know i

Re: [nyphp-talk] Hack Social, tomorrow meetup

2012-06-10 Thread Darryle Steplight
I'm upset I won't be able to make this one. I'll catch you guys the next time around though. On Sun, Jun 10, 2012 at 12:48 PM, Federico Ulfo wrote: > Hey dudes, > tomorrow we'll go nuts hacking and talking about NYC startups and their > technology around PHP, meet with us at Suspenders for the Ha

Re: [nyphp-talk] Which deployment apps are you using?

2012-06-01 Thread Darryle Steplight
here, even at a technical level for a MySQL > Expert, it is great to see what they do and what they add to open source. > > Ronald > > > On Fri, Jun 1, 2012 at 1:32 PM, Rob Marscher > wrote: >> >> >> > On Jun 1, 2012, at 12:35 PM, Darryle Steplight >>

Re: [nyphp-talk] Which deployment apps are you using?

2012-06-01 Thread Darryle Steplight
Jun 1, 2012, at 12:35 PM, Darryle Steplight wrote: >>> @Rob -  That looks like some solid info and methods. I haven't used >>> APC before but I definitely see where it can come in handy. I always >>> wonder how Facebook did it too. Thanks for the info. &g

Re: [nyphp-talk] Which deployment apps are you using?

2012-06-01 Thread Darryle Steplight
e > http://www.quora.com/What-is-Facebooks-architecture > > Believe it or not the base code is still PHP, compiled to HH ByteCode, > but yet they write PHP :) > > Sent from my iPhone > > On Jun 1, 2012, at 12:35 PM, Darryle Steplight wrote: > >> @Chris- At the very least, ev

Re: [nyphp-talk] Which deployment apps are you using?

2012-06-01 Thread Darryle Steplight
used APC before but I definitely see where it can come in handy. I always wonder how Facebook did it too. Thanks for the info. On Fri, Jun 1, 2012 at 12:23 PM, Rob Marscher wrote: > >> On Fri, Jun 1, 2012 at 12:10 PM, Darryle Steplight >> wrote: >>>    I just heard of Ca

[nyphp-talk] Which deployment apps are you using?

2012-06-01 Thread Darryle Steplight
Hi Everyone, I just heard of Capistrano, but in the past I've used Ant when I was using Eclipse for my IDE and working with JSP back in 07. What are the best deployment softwares for PHP? Which ones are the easiest to get up and running quickly? Which do you prefer to use at the job? -- -

Re: [nyphp-talk] Printing Colorful Arrays In The Terminal...

2012-05-31 Thread Darryle Steplight
One more thing, this works well from the command line, but if you want to make it work from within a PHP script that output data to the terminal then remove the "-e";. On Thu, May 31, 2012 at 12:15 PM, Darryle Steplight wrote: > Thanks Chris , > > That's exactly wha

Re: [nyphp-talk] Printing Colorful Arrays In The Terminal...

2012-05-31 Thread Darryle Steplight
Thanks Chris , That's exactly what I was looking for. For anyone else who needs help with this, here are my working examples, with a little explanation. echo -e "\033[34m Contact List \033[0m";<- The "34m" part makes Contact List a dark blue color and the "0m" at the end stops the colori

[nyphp-talk] Printing Colorful Arrays In The Terminal...

2012-05-31 Thread Darryle Steplight
Hi Everyone, I'm writing a cron script which I'm testing by executing the script from the command line. The output is obviously displaying in the terminal and I would like to change the font color for three different arrays to red, white or yellow. How do I need to write my echo statements

Re: [nyphp-talk] What PHP tools are you using?

2012-05-29 Thread Darryle Steplight
So is it safe to safe that when it comes to power and being lightweight that VIM reigns supreme? There are still plenty of good developers out there who don't really realize the true power of VIM and all of the cool time saving things you can do with it. Not only have VIM never froze or crash on me

Re: [nyphp-talk] EC2 vs Rackspace Cloud WAS: What Distro?

2012-05-22 Thread Darryle Steplight
I never thought about that Chris. Good point. On Tue, May 22, 2012 at 11:16 AM, Chris Snyder wrote: > On Sat, May 19, 2012 at 2:27 AM, Federico Ulfo > wrote: >> Matt thanks for point that out, with your correction now I feel even more >> happy to have choose Rackspace for my project. >> I found

Re: [nyphp-talk] EC2 vs Rackspace Cloud WAS: What Distro?

2012-05-18 Thread Darryle Steplight
Interesting, well I did get an email saying my server will require a reboot because of a maintenance issue. To quote verbatim "This maintenance is required due to a software issue which our vendor will disclose to the public in a few weeks. " . I'm curious to know if this is the reason why. On Sa

Re: [nyphp-talk] EC2 vs Rackspace Cloud WAS: What Distro?

2012-05-18 Thread Darryle Steplight
Once I left RS , I moved to linode and haven't had any problems. Also, when I created a ticket with RS , it took them about 3 days to respond back, but when I create a ticket with Linode it takes them about 3 hours to respond back. I'm assuming RS has more customers so I'm not really complaining a

Re: [nyphp-talk] What Distro?

2012-05-18 Thread Darryle Steplight
Yeah, I don't remember the error message I was getting, but it should be some where in the PHP list threads. Once I compiled PHP form source I didn't have any problems. On Fri, May 18, 2012 at 5:27 PM, Anthony Ferrara wrote: > Darryle > >> +2 for CentOs :p . Installing PHP via YUM was the only g

Re: [nyphp-talk] What Distro?

2012-05-18 Thread Darryle Steplight
+2 for CentOs :p . Installing PHP via YUM was the only gotcha for me. On Fri, May 18, 2012 at 5:16 PM, Rob Marscher wrote: > On Fri, May 18, 2012 at 3:32 PM, Federico Ulfo > wrote: >> >> Dudes, I've an Amazon AWS account and I just got a Rackspace account, now >> I need to configure a Linux serv

Re: [nyphp-talk] What Distro?

2012-05-18 Thread Darryle Steplight
I agree with Chris. Federico, I use YUM to install most of my packages. You can see how big the files are before you install them and which packages they depend on. On Fri, May 18, 2012 at 4:01 PM, Chris Snyder wrote: > On Fri, May 18, 2012 at 3:32 PM, Federico Ulfo > wrote: > >> somebody sugge

Re: [nyphp-talk] What Distro?

2012-05-18 Thread Darryle Steplight
happening within the first month I left Rackspace. On Fri, May 18, 2012 at 3:56 PM, Matt Juszczak wrote: > Darryle, > > I manage over a hundred cloud instances with Rackspace without a problem. > What are you encountering? > > Matt > > > -Original Message- > Fro

Re: [nyphp-talk] What Distro?

2012-05-18 Thread Darryle Steplight
Rackspace sucks. Get off them unless you like your box running slow every three days and their customer support team telling you "they have a team working on it right now." every time you call to ask what happened. On Fri, May 18, 2012 at 3:40 PM, Matthew Kaufman wrote: > Debian > > > On Friday,

Re: [nyphp-talk] Web browser quality

2012-05-11 Thread Darryle Steplight
Speaking of FireFox, has anyone realized that youtube videos don't play on the latest FF on a Mac, even after updating Adobe Flash? On Fri, May 11, 2012 at 4:02 PM, Hans Zaunere wrote: >> Firefox is probably one of the better browser out there still.  If you >> are experiencing crashes, this most

Re: [nyphp-talk] Most common Framework

2011-09-14 Thread Darryle Steplight
"The framework choice is always less important than having a well-designed database underlying your code." <- #sotrue On Wed, Sep 14, 2011 at 1:08 PM, Kristina Anderson wrote: > A lean & mean AJAX-specific framework is SlimPHP.  I've used it and can say > that I was happy with it. > > The "big

Re: [nyphp-talk] cURL question

2011-08-04 Thread Darryle Steplight
Hey Federico, Are you that guy that created Rain Framework? I heard good things about it :) . On Thu, Aug 4, 2011 at 2:51 PM, Rob wrote: > i'm writing out the response and headers out to the error log just to make > sure there isn't any funny business with the ouput in the browser: > [Thu Aug 04

Re: [nyphp-talk] Wordpress & Ajax

2011-07-08 Thread Darryle Steplight
themes/js directory uses jquery, which > means jquery must be included, which means it should have ajax > functionality.  And, don't worry about the details of my project.  That's my > problem.  :-) > > Margaret > > -Original Message- From: Darryle Steplight > Se

Re: [nyphp-talk] Wordpress & Ajax

2011-07-08 Thread Darryle Steplight
Hi Margaret, I'm sure there are some WP plugins out there that use ajax to work but it's not too difficult to create your own solutions. What types of ajax features do you want to create? On Fri, Jul 8, 2011 at 9:49 AM, Margaret Waldman wrote: > Does anyone know if Wordpress has any ajax fea

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

2009-08-17 Thread Darryle Steplight
I'm old school and an 80's baby. Whatever happen to an old fashion large Dominoes Pizza and a 3 liter of Pepsi? On Mon, Aug 17, 2009 at 8:14 PM, Elijah Insua wrote: > 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

Re: [nyphp-talk] PHP: Display Adobe PSD files on a web page

2009-06-17 Thread Darryle Steplight
It looks like you are not actually displaying the PSD on the webpage. The class just converts the PSD into a JPEG and then displays the JPG to the browser. If you have Photoshop, I feel you might as well do this yourself before uploading the image. Uploading JPGs versus PSD is much faster and saves

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

2009-06-03 Thread Darryle Steplight
There's a few ways to skin this cat but Eddie is right. Based one this email's title I think using unset() should suffice. On Wed, Jun 3, 2009 at 9:43 PM, Eddie Drapkin wrote: > unset() will work, but won't reset the numerical index, which is the only > thing array_slice is being used for; if he

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

2009-06-03 Thread Darryle Steplight
unset($array['7']) doesn't work? On Wed, Jun 3, 2009 at 9:14 PM, Michael Southwell wrote: > This has to be easy but I'm so pre-occupied with other stuff that I can't > get it. > > I have an array, let's say 12 elements. I want to remove element 7. I could > array_slice out the first 6 and also th

Re: [nyphp-talk] php script timeout not working

2009-04-05 Thread Darryle Steplight
set_time_limit(1); in that line you are setting the time limit to one second. You should make this number a lot higher. set_time_limit(60) if you want to set the time limit to 60 seconds. Also, you just might be running out of memory so try increasing your script's memory usage. ini_set(”memory_

Re: [nyphp-talk] [Norton AntiSpam] Re: Non-Profit and Major Corporate PHP Users List

2009-01-30 Thread Darryle Steplight
Here is a non-profit organization that uses PHP. http://nyc-arts.org/ On Fri, Jan 30, 2009 at 11:06 PM, Peter Sawczynec wrote: > The white paper is an excellent resource with many great talking points, > thank you. > > But it does not name enough names related to my specific pitch. > > > > Warm

Re: [nyphp-talk] call javascript function from php

2009-01-19 Thread Darryle Steplight
Chad, It doesn't look like you need PHP at all here. Try the following, Replace: " ;?> With: On Mon, Jan 19, 2009 at 11:05 PM, chad qian wrote: > I want to call javascript function from php.But I fail. > Here is the source code,any help?Thanks! > > chad > > "http://www.w3.org/TR/

Re: [nyphp-talk] [OT] - Politics.com

2008-10-22 Thread Darryle Steplight
Thanks Matt, yeah I jumped the gun on that one. Realized it right when I hit the send button. On Wed, Oct 22, 2008 at 11:59 AM, Joseph Crawford <[EMAIL PROTECTED]> wrote: > Darryle, > > that will be lifted at 3PM EST today :) > > > On Oct 22, 2008, at 11:52 AM, Darryle S

Re: [nyphp-talk] [OT] - Politics.com

2008-10-22 Thread Darryle Steplight
Hey Joe, Looks like I need a username and password :) On Wed, Oct 22, 2008 at 11:49 AM, Joseph Crawford <[EMAIL PROTECTED]> wrote: > I know this is not entirely on topic but I thought I would share this with > you. > Today at 3PM EST a site that I have been working on over the last few months

Re: [nyphp-talk] Overwriting Cache Headers

2008-09-14 Thread Darryle Steplight
Michael, Firebug doesn't show you header information but the Web Developer Toolkit for FireFox does. Once installed, just go to Information > View Response Headers. Also, if you want to see what files are being used during your ajax scripts or any header redirects,etc then download FF's Live HT

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

2008-09-09 Thread Darryle Steplight
Hi Mike, It kind of sounds like you are talking about two different things or at least the confusion involves two different topics. Basically, if you are going to use a Switch statement it's a good practice to keep the case expression within quotation, if you want to get desired results. Also,

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

2008-09-09 Thread Darryle Steplight
Hi Michael, Switch isn't the problem. Arrays are going to behave like Arrays no matter how you choose to loop through them. $tmp = array('foo','bar','zap'); is the same as typing $tmp = array(0=>'foo', 1='bar', 2='zap'); If you don't specify the index, PHP will start using numbers starting a

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

2008-08-17 Thread Darryle Steplight
Hi Mike, Including ini_set (display_errors,1) might help you out too. Handling your errors can get pretty deep, but you can implement come try/catch code around specific sections of your code and then throw Exceptions with a custom error message of your choice. By default the error messages will

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-17 Thread Darryle Steplight
Kristina, It sounds like you got it now. Once I learned how to use the short hand version I started to use it all the time. It's great for scenarios like the one provided but sucks if you have long lines of code. At the end of the day it's also good because it helps to keep your code DRY. On

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-17 Thread Darryle Steplight
Kristina, That code is not testing two conditions. It's testing one condition and assigning one value to $result if $a['c'] is set or another value to $result if $a['c'] is not set. It is the shorthand equivalent to writing if (isset($a['c']) { $result = $a['c] ; } else { $result = NULL

Re: [nyphp-talk] Accessing non-existent array elements ok?

2008-08-17 Thread Darryle Steplight
Hi Michael, Unless you like seeing that error message it is not ok. If you do print ""; print_r($a); print""; ,you will get a very good detailed visual of your array content. You're array only has one key/value pair. Try $a = array('a' => 'b', 'b' => 'b2', 'c' => 'b3' ); followed by th

Re: [nyphp-talk] CSS problem???

2008-07-28 Thread Darryle Steplight
Hi Paul, Everyone gave some really good suggestions, but you should invest in this book http://www.cssmastery.com/ . I'm more of a back-end guy now, but i've done front-end development for some big name companies and this book has been my CSS bible. It's hasn't let me down once. Additionally i

Re: [nyphp-talk] PHP5 hosting?

2007-10-31 Thread Darryle steplight
I used www.1and1.com before but http://www.bluehost.com/ has better and quicker 24/7 customer service. With bluehost.com you will have to fax a photo ID over to them if you want SSH access. This isn't the case with 1and1.com . Also, with 1and1, you have to pay 3 months at a time. I don't believe bl

[nyphp-talk] Need Help Using SOAP with PHP 4...

2007-08-15 Thread Darryle steplight
Hi Everyone, I am very new to the concept of SOAP. Yesterday I bought a book of Amazon on PHP Web Services and today my ATG/JSP savvy project manger asked me to write a SOAP request using PHP :) The PHP program needs to grab an XML file (generated by a JAR file on an APP servlet ) via a POST me

Re: [nyphp-talk] Finding instances of include file

2007-07-26 Thread Darryle steplight
Hi Aaron, Are you using any IDEs? This can be done using Eclipse's search feature. It can execute a text search on your entire project directory and return the file path in a tree branch format of all files containing your text search. -Darryle On 7/26/07, Aaron Fischer <[EMAIL PROTECTED]> wrote