Re: [PHP] How can I call GD's imagepng() directly from my class?

2010-12-06 Thread Nathan Nobbe
On Mon, Dec 6, 2010 at 5:26 PM, Daevid Vincent wrote: > > I got a little 'hack' further, but not loving it. Maybe I'll move the image > to a $_SESSION variable and then have the "gdtest.php" pull it and echo it > that way > well i think you may be in the right direction, however, id be inter

Re: [PHP] new keyword combined with other things...

2010-12-08 Thread Nathan Nobbe
On Wed, Dec 8, 2010 at 12:26 PM, Tommy Pham wrote: > > -Original Message- > > From: David Harkness [mailto:davi...@highgearmedia.com] > > Sent: Wednesday, December 08, 2010 10:46 AM > > To: Paul M Foster > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] new keyword combined with ot

Re: [PHP] Scalable Vector Graphics with PHP

2010-12-09 Thread Nathan Nobbe
On Thu, Dec 9, 2010 at 4:55 AM, sudarshana sampath < sudarshanasamp...@gmail.com> wrote: > Hi, > > We are going add a topology view to our Network Management System. > Our Network Management System is based on PHP, CakePHP, jQuery and other > web > related tools(middle tier written using C++). > >

Re: [PHP] Singleton with variable parameters

2010-12-15 Thread Nathan Nobbe
On Wed, Dec 15, 2010 at 2:11 PM, Sebastian Detert wrote: > Hi guys, > > I am trying to generate an abstract Singleton class for use in arbitrary > classes, like > > class Foo extends Singleton {} > > and generate a new class with Foo -> getInstance(); > Until traits release I think you'll find th

Re: [PHP] String passed to object constructor turning into an instance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 2:29 PM, Kris Deugau wrote: > Tommy Pham wrote: > >> class SelectBoxOption extends Tag { >>> function SelectBoxOption($name, $value, $selected=false) { >>> parent::Tag("option", $name); >>> $this->addAttribute("value", $value); >>> if($selected) { >

Re: [PHP] String passed to object constructor turning into aninstance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 3:21 PM, Kris Deugau wrote: > Nathan Nobbe wrote: > >> Why not test for the type of $name at each point of interest in the >> SelectBoxOption >> constructor? If you're passing a string value to the constructor it >> almost >

Re: [PHP] String passed to object constructor turning into an instance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 4:04 PM, Kris Deugau wrote: > Nathan Nobbe wrote: > >> probly something screwy going on w/ the old style of naming constructors. >> 2 >> things, >> >> 1. can you post the Tag constructor as it reads now? >> > > function Tag

Re: [PHP] String passed to object constructor turning into aninstance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 3:21 PM, Kris Deugau wrote: > Nathan Nobbe wrote: > >> Why not test for the type of $name at each point of interest in the >> SelectBoxOption >> constructor? If you're passing a string value to the constructor it >> almost >

Re: [PHP] Does ReflectionMethod::setAccessible() do anything?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 6:37 PM, David Harkness wrote: > According to the manual page for setAccessible() [1] the feature is > available with 5.3.2, and I'm running > >5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) > > so I should be good to go. However, even the simpl

Re: [PHP] how would I do this?

2010-12-27 Thread Nathan Nobbe
On Mon, Dec 27, 2010 at 2:13 PM, David McGlone wrote: > Hi all, > > I am trying to make the link in this code not show the underscore and I > can't > figure out how I could do it. I've tried various different things I thought > would work. I've tried things like "lawn_maintenance"=> "lawn mainten

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday wrote: > Say you have 10 or so scripts and a single config file. If you have > main.php, functions1.php, functions2.php, functions3.php.. > > Does is hurt to do an include of the config file in each separate > script, even if you only need a few things

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 4:27 PM, Nathan Nobbe wrote: > On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday wrote: > >> Say you have 10 or so scripts and a single config file. If you have >> main.php, functions1.php, functions2.php, functions3.php.. >> >> Does is hurt to do

[PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm working on, I have this code: $timestamp = time(); $mysqlDatetime = date("Y-m-d G:i:s", $timestamp); Logging these values yields: INSERT

Re: [PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
On Wed, Apr 25, 2012 at 10:44 PM, Simon J Welsh wrote: > On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: > > > Hi everyone, > > > > Does anybody know what might influence the output of the date() function > > besides date.timezone setting? > > > > Runni

[PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
Hi all, Strangely PHP seems to let each class have its own layer of private scope for member variables. If a subclass defines a member variable of the same name as one defined in the parent the values are maintained independently in instances of the child class. First off a simple class with a

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham wrote: > On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe > wrote: > > Hi all, > > > > Strangely PHP seems to let each class have its own layer of private scope > > for member variables. If a subclass defines a member vari

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 9:23 PM, Nathan Nobbe wrote: > On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham wrote: > >> On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe >> wrote: >> > Hi all, >> > >> > Strangely PHP seems to let each class have its own layer

[PHP] APC expunge notices

2012-08-17 Thread Nathan Nobbe
Hi everyone, I'd like to see what other folks think about the idea of having APC provide a E_WARNING or E_NOTICE when it has to expunge the cache. Ideally, this would include the amount of memory allocated in the error message. The idea here is to provide system admins with information that A.

Re: [PHP] PDO

2012-10-22 Thread Nathan Nobbe
On Mon, Oct 22, 2012 at 3:27 PM, Silvio Siefke wrote: > Hello, > > i have built php 5.4.7 on Ubuntu with the configure Arguments like on my > Gentoo System. But on Gentoo run the website without Problems, under Ubuntu > want not work. I become in error.log: > > [22-Oct-2012 21:15:00 UTC] PHP Fata

Re: [PHP] Variables with - in their name

2012-11-18 Thread Nathan Nobbe
On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott < ron.pigg...@actsministries.org> wrote: > I have made the following variable in a form: (I am referring the > ) > > > $row['promo_code_prefix'] = 42; > $row['promo_code_suffix'] = 2; > > echo " $row['promo_code_suffix'] . "\" style=\"text-align: c

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner wrote: > On 12/21/2012 5:16 PM, Tedd Sperling wrote: > >> On Dec 21, 2012, at 4:58 PM, Jim Giner >> wrote: >> >>> Never realized that you could address a string as an array of chars, >>> which you are doing. Could that be the issue? Or did I lear

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
On Fri, Dec 21, 2012 at 4:10 PM, Nathan Nobbe wrote: > > > On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner > wrote: > >> On 12/21/2012 5:16 PM, Tedd Sperling wrote: >> >>> On Dec 21, 2012, at 4:58 PM, Jim Giner >>> wrote: >>> >>>> &g

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Nathan Nobbe
On Tue, Apr 2, 2013 at 3:35 PM, Mark wrote: > Hi Bastien, > > That is indeed getting very close to what i was looking for. Thanks a lot! > I've just finished up a project using simpleSamlPhp. http://simplesamlphp.org/ There's quite a few modules, but I've only used the SAML one, so YMMV. -nat

[PHP] mcrypt_create_iv - why so slow?

2013-05-30 Thread Nathan Nobbe
Hi folks, This code:

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-30 Thread Nathan Nobbe
DEV_RANDOM? #morbidcuriosity -nathan On Fri, May 31, 2013 at 12:40 AM, Nathan Nobbe wrote: > Hi folks, > > This code: > > $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, > MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); > var_dump($iv); > > Takes just over a m

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:31 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: > > > On Fri, Jan 7, 2011 at 12:18, Joshua Kehn wrote: > >> > >> Using another language more suited towards CLI / standalone (non-web) > development would be easier. PHP at it's core is a templ

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 1:48 PM, Nathan Nobbe wrote: > > shrug, you must not be too familiar with php then. 9 times out of 10 it's > the natural, perfect choice for a cli program. there are situations where > you get past w

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 12:53 PM, tedd wrote: > At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: > >> On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn wrote: >> >> Why bother learning other languages? Is this a joke? Why should someone >>> stop learning *ever

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 2:52 PM, tedd wrote: > At 1:24 PM -0700 1/7/11, Nathan Nobbe wrote: > >> On Fri, Jan 7, 2011 at 12:53 PM, tedd <<mailto:tedd.sperl...@gmail.com> >> tedd.sperl...@gmail.com> wrote: >> much of the gripe comparing php to python >>

Re: [PHP] First PHP job

2011-01-10 Thread Nathan Nobbe
On Mon, Jan 10, 2011 at 2:55 PM, Steve Staples wrote: > On Mon, 2011-01-10 at 16:21 -0500, Paul M Foster wrote: > > On Mon, Jan 10, 2011 at 12:02:51PM -0600, Donovan Brooke wrote: > > > > > Hello!, .. will try to keep this short! > > > I've been a long time lurker but minimal poster. I made it a

[PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
Hey gang, (Yes Tedd, I like your style, when it pertains to how you address the list :)) I have a new curiosity that's arisen as a result of a new contract I'm working on, I'd like to bounce around some thoughts off the list and see what you folks think if interested. The topic at hand is stored

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:23 PM, Steve Staples wrote: > On Thu, 2011-03-03 at 11:30 -0700, Nathan Nobbe wrote: > > Hey gang, > > > > (Yes Tedd, I like your style, when it pertains to how you address the > list > > :)) > > > > I have a new curiosity that&

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:59 PM, Paul M Foster wrote: > On Thu, Mar 03, 2011 at 11:30:49AM -0700, Nathan Nobbe wrote: > > > Hey gang, > > > > (Yes Tedd, I like your style, when it pertains to how you address the > list > > :)) > > > > I have a new

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling wrote: > On 3 March 2011 18:30, Nathan Nobbe wrote: > > Hey gang, > > > > (Yes Tedd, I like your style, when it pertains to how you address the > list > > :)) > > > > I have a new curiosity that&

Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Sat, Mar 5, 2011 at 5:31 AM, Florin Jurcovici wrote: > Hi. > > I would always recommend stored procedures, as long as there are a > very few rules obeyed: > - keep them simple - they should mostly implement just CRUD operations > plus application-specific searches, and should not encapsulate a

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-09 Thread Nathan Nobbe
On Wed, Mar 9, 2011 at 3:18 AM, Richard Quadling wrote: > On 7 March 2011 23:37, Nathan Nobbe wrote: > > On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling > > wrote: > >> > >> On 3 March 2011 18:30, Nathan Nobbe wrote: > >> > Hey gang, > &

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci < alessandroferru...@gmail.com> wrote: > Hello, > I'm curious, what are the most popular methods to perform session > replication across http servers in PHP? > I've read about repcache(memcached module) and Mysql. > anything else? is there som

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
On Thu, Mar 17, 2011 at 9:03 AM, Joel wrote: > Take a look at MCache: http://www.mohawksoft.org/?q=node/8 > > A drop in distributed replacement for php sessions. > One important distinction to draw is that distributed != replicated. Replication is something extra, as the discussion I linked to

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > > > I'm curious to know what people are storing in their sessions. Is there > anything larger than a few hundred bytes that is specific and unique to that > session storage? Wh

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:56 AM, Stuart Dallas wrote: > On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: > On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > > > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > > > > > I'm curious

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:58 AM, Richard Quadling wrote: > On 18 March 2011 17:36, Nathan Nobbe wrote: > > On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > > > >> On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > >> > >> > I

[PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
Hi, I'd like to bat around some pros / cons of selecting xinetd to implement a socket server. From my perspective the list is something like this: xinetd pros . no need to rewrite forking functionality, 'server' can be written as simple php script . forking potentially faster than php-based im

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
On Mon, Mar 28, 2011 at 12:38 PM, Bostjan Skufca wrote: > Xinetd will definitely be faster way than coding your daemon in PHP. > In this case: > You have to consider many other things as well: > - do your worker processes run under various UIDs (do they do > setuid/setgid)? > no > - do your w

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote: > If you need high performance you probably already know that it will be very > expensive CPU wise if workers are spawned on each request. If you don't, I > would not bother with daemon and just use xinetd. You can always add > daemon-handlin

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
On Mon, Mar 28, 2011 at 5:14 PM, Curtis Maurand wrote: > > > Nathan Nobbe wrote: > > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca wrote: > > > >> If you need high performance you probably already know that it will be > >> very > >> expensive

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner wrote: > Can one create a set of $_POST vars within a script or is that not do-able? > My display portion of my script utilizes the POST array to supply values to > my input screen - this works well for the first display of an empty screen, > and any fol

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner >wrote: > > > > > Can one create a set of $_POST vars within a script or is that not > do-able? > >

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
Shrug, it's called reply-all and it's been brought up here before :) -nathan On Wed, Apr 13, 2011 at 12:25 PM, Jim Giner wrote: > No need to email me AND send to the list. Is that the standard practice on > this forum? Not encountered it before. > >

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: > > > On Wed, Apr 13, 201

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: > > > On Wed, Apr 13, 2011

Re: [PHP] $_POST vars

2011-04-14 Thread Nathan Nobbe
On Thu, Apr 14, 2011 at 2:53 AM, Stuart Dallas wrote: > On Thursday, 14 April 2011 at 07:11, Nathan Nobbe wrote: > On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas wrote: > > > On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: > > > I never make any assumptions

Re: [PHP] semaphore release before acquire warning

2011-05-02 Thread Nathan Nobbe
On Mon, May 2, 2011 at 2:57 PM, Jeremy Greene wrote: > Hi, > > > > I am getting a warning when calling sem_release() before (the same php > script) calls sem_acquire(). I am doing this because it's a "signal" to > another process. The other process (which happens to be C program) has > done, or w

Re: [PHP] phpsadness

2011-05-27 Thread Nathan Nobbe
On Fri, May 27, 2011 at 3:52 PM, Robert Cummings wrote: > On 11-05-27 03:52 PM, Daevid Vincent wrote: > >> A friend sent me this URL today. While amusing, he's got many valid points >> and I certainly share in his frustration. >> >> http://www.phpsadness.com >> > > What a whiner! > > Many of the t

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
On Sat, May 28, 2011 at 4:33 AM, Robert Cummings wrote: > On 11-05-28 05:26 AM, Andre Polykanine wrote: > >> Hello Lester, >> >> Actually, many of the points are not important for me so far, however >> this one really drives me mad: >> http://phpsadness.com/?page=sad/35 (can't explode() by

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
On Sat, May 28, 2011 at 1:34 PM, Andre Polykanine wrote: > Hello Nathan, > > Do you mean $x{8}? > yup, that or $x[8]; > That is good but not for all situations. > I need sometimes to make an array with letters as keys and numbers as > values, like this (I give English alphabet just as an

Re: [PHP] What's up with Quercus?

2011-05-28 Thread Nathan Nobbe
On Fri, May 27, 2011 at 11:52 PM, Arnold Hesnod wrote: > Although I've been mostly using Java and Ruby in my professional software > development work for the past decade or so, in the past two or three years > I've started to do more and more PHP. I originally started using PHP > because I neede

[PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer and noticed memory usage climbing during script execution. In the debugging effort I've isolated it down to a Doctrine issue. Here's what's going on, I instantiate

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 1:58 PM, Eric Butera wrote: > On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe > wrote: > > Hi gang, > > > > If anyone out there has some experience w/ Doctrine now would be a great > > time to share it! > > > > So I'm wr

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 3:58 PM, Eric Butera wrote: > On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent wrote: > >> -Original Message- > >> From: Nathan Nobbe [mailto:quickshif...@gmail.com] > >> Sent: Thursday, June 16, 2011 9:51 AM > >> To: php-g

RE: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
gt; Subject: Re: [PHP] Doctrine madness! > > > > On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent wrote: > > >> -Original Message- > > >> From: Nathan Nobbe [mailto:quickshif...@gmail.com] > > >> Sent: Thursday, June 16, 2011 9:51 AM > > >

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
11 2:58 PM > >> To: Daevid Vincent > >> Cc: php-general@lists.php.net > >> Subject: Re: [PHP] Doctrine madness! > >> > >> On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent wrote: > >> >> -Original Message- > >> >> From

Re: [PHP] Doctrine madness!

2011-06-18 Thread Nathan Nobbe
On Fri, Jun 17, 2011 at 1:19 PM, Jim Lucas wrote: > On 6/16/2011 3:15 PM, Nathan Nobbe wrote: > > what it really amounts to is php is good at doing 1 thing and 1 thing > only, > > generating web pages. for anything else, including command line scripts > > that run

Re: [PHP] Doctrine madness!

2011-06-20 Thread Nathan Nobbe
On Mon, Jun 20, 2011 at 5:16 AM, Ford, Mike wrote: > > -Original Message- > > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > > Sent: 16 June 2011 17:51 > > [...] > > > Here's what's going on, I instantiate a model object for th

[PHP] Installer for 5.3 on Windows ?

2011-08-23 Thread Nathan Nobbe
Hey gang, Wondering where the installer for php 5.3 on Windows is? Not seeing it here: http://windows.php.net/download/ Any clues appreciated, -nathan

[PHP] Re: Installer for 5.3 on Windows ?

2011-08-23 Thread Nathan Nobbe
On Tue, Aug 23, 2011 at 4:06 PM, Nathan Nobbe wrote: > Hey gang, > > Wondering where the installer for php 5.3 on Windows is? > > Not seeing it here: > > http://windows.php.net/download/ > > Any clues appreciated, > > -nathan > Hmm, I have found

Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Nathan Nobbe
On Wed, Sep 14, 2011 at 10:06 PM, Joshua Stoutenburg wrote: > On Wed, Sep 14, 2011 at 11:59 AM, Govinda > wrote: > >> As for duplicate answers..., > > > >> [snip] > > > > > > Also newbies may tend to like the multiples answers.. for the different > perspectives, as Dan said, but also when they ar

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
nice one! On Fri, Oct 21, 2011 at 10:27 AM, Daniel Brown wrote: >I'll get this week's Friday distraction kicked off here with > something shared with me by a Facebook friend. If you're on Facebook, > try this. It's pretty sweet (and safe for work and kids). > >http://www.takethislo

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
Friday :P On Fri, Oct 21, 2011 at 10:35 AM, Daniel Brown wrote: > On Fri, Oct 21, 2011 at 12:34, Nathan Nobbe > wrote: > > nice one! > >Quit top-posting! ;-P > > -- > > Network Infrastructure Manager > http://www.php.net/ >

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
On Fri, Oct 21, 2011 at 11:38 AM, Tedd Sperling wrote: > On Oct 21, 2011, at 12:27 PM, Daniel Brown wrote: > > >I'll get this week's Friday distraction kicked off here with > > something shared with me by a Facebook friend. If you're on Facebook, > > try this. It's pretty sweet (and safe for

Re: [PHP] Exporting large data from mysql to html using php

2011-10-27 Thread Nathan Nobbe
On Mon, Oct 24, 2011 at 6:50 PM, Jason Pruim wrote: > Now that I've managed to list 3 separate programming languages and somewhat > tie it back into php here's the question... > > I have about 89 million records in mysql... the initial load of the page > takes 2 to 3 minutes, I am using pagination

[PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
Hi gang, Thinking database i/o would be the slowest part of a request in your new zf / amf app? Leave it to Zend_Amf to burn more cycles marshaling the protocol! http://s289.photobucket.com/albums/ll238/quickshiftin/?action=view¤t=ScreenShot2011-10-24at74724PM.png Happy Halloween! -nathan

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera wrote: > On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown wrote: > > On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe > wrote: > >> Hi gang, > >> > >> Thinking database i/o would be the slowest part of a

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:26 PM, Eric Butera wrote: > On Fri, Oct 28, 2011 at 7:24 PM, Nathan Nobbe > wrote: > > > > > > On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera > wrote: > >> > >> On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown wrote: >

Re: [PHP] [php] static html search engine for php static html site

2011-12-27 Thread Nathan Nobbe
On Mon, Dec 26, 2011 at 6:17 AM, HELP LINE wrote: > Does any know of a better static search engine that i can integrate to my > static php html site. it should not be Google or yahoo bing. > not sure if it's come up yet, but this might work for you, http://www.sphider.eu/ it's based on mysql f

[PHP] Jobs in Denver

2012-03-05 Thread Nathan Nobbe
Hey gang, Anyone looking for solid PHP gigs in the Denver area, (or would consider moving to Denver b/c it's so awesome!) contact me offline; I've got the hookup! -nathan

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Nathan Nobbe
Chris, thanks for your reply it sounds like apache does allow the use of a script to handle PUT requests In fact, Apache handles PUT exactly like it handles the POST method. That is, it supports it, but in order for it to do anything useful you need to supply a suitable CGI program. getting php

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Nathan Nobbe
im imagining a system using the REST paradigm where a web browser is the client. rather than a REST paradigm simply for web services. -nathan On 8/14/07, Chris <[EMAIL PROTECTED]> wrote: > > Nathan Nobbe wrote: > > Chris, > > > > thanks for your reply > > >

Re: [PHP] OOP in PHP

2007-08-15 Thread Nathan Nobbe
what sort of error are you encountering ? -nathan On 8/15/07, Patrik Hasibuan <[EMAIL PROTECTED]> wrote: > > Dear my friends, > > This is the first time for me to use OOP concept of PHP. I wrote still a > very simple codes but it doesn't work as my manual book taught. the book > titled "MySQL/PHP

Re: [PHP] maintaining session information

2007-08-15 Thread Nathan Nobbe
you can do whatever you want w/ a custom session handler, just so long as you implement all the methods. you could for instance have the session handler do network i/o to a 'session box' or something. thats my initial guess at a solution. -nathan On 8/15/07, Vic Agnews <[EMAIL PROTECTED]> wrote:

Re: [PHP] php to generate java-script

2007-08-21 Thread Nathan Nobbe
i agree with brian. i still need to enhance my skills w/ javascirpt, but i think in the case of validation, a simple solution is to write generic validation components in javascript. then simply dynamically include the ones you need for a particular form. as far as the javascript knowing how to lo

Re: [PHP] Aggressive PHP Smart Caching

2007-08-23 Thread Nathan Nobbe
ally, the reason behind this is > that a file system based caching method does not natively support a TTL on > cached files, and there has to be some way to handle a cache of a script > that has since been deleted. Note that if 24 hours is not acceptable for > some reason, this script

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Nathan Nobbe
what are the changes that supposedly make php5 faster than php4? when java went from the 1.4 series to the 5 series it became much faster. this is because of enhancements to the jitter mechanism for sure. i dont know what else they changed, but i know that had a great impact on the performance.

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know Robert; i think it depends upon the structure of ones business. for instance; i work for a company full time, and have a start up of my own. in both of those situations there is no impact on the client in the act of eliminating php4 from the product implementation. the clients never us

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 09:38 -0400, Nathan Nobbe wrote: > > i dont know Robert; i think it depends upon the structure of ones > > business. > > for instance; i work for a company full time, and have a start up of > > my own. &

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
although php allows you to write proceedrual code, i think it is best used from an oop paradigm. -nathan On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 10:33 -0400, Nathan Nobbe wrote: > > yes, i agree, people wont be all-of-a-sudden ignoring ph

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
agreed :) On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > > Robert, > > > > C is a low-level language whereas php is a high level language. > > ill admit it openly, i am biased toward oop / des

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i know this thread started off about a performance comparison, but it is already grown into much more. suffice it to say that i consider the oop capacity of php4 nothing more than a stepping stone on the way to php5. i dont know of all the oop languages out there. mostly i have worked w/ c++ and

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know what all this goPHP5 stuff is about. all i know is there was an announcment on php.net a few weeks back saying php4 is deprecated and it soon will be made obsolete. -nathan On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wro

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-27 Thread Nathan Nobbe
Stut wrote: > Just wanted to pick you up on this. PHP is the only language you've > listed that only has a single implementation. There are implementations > of C++ compilers that are writting in other languages. I can't speak for > Java since I have little experience but I'd be surprised if all >

Re: [PHP] PHP Debugger

2007-09-04 Thread Nathan Nobbe
ive been working with xdebug lately. you wont find me paying for zend studio; im on the open source tip :) i must admit though, the experience has been anything but painless. however, if you work w/ legacy spaghetti code, or youre just sick of writing echo statements on the ser

Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

2007-09-10 Thread Nathan Nobbe
you might also want to hop on the #gentoo-php channel on irc.freenode.net -nathan On 9/10/07, Felipe Alcacibar <[EMAIL PROTECTED]> wrote: > > Chris escribió: > > Firstly the configure line you sent us is wrong. It's for the cli > > version, not the cgi version. > > > > '--enable-cli' '--disable-c

[PHP] profiling newb

2007-09-10 Thread Nathan Nobbe
all, i am just getting my feet wet w/ profiling. its nice to see i can invoke a page from the browser then see an analysis in kcachegrind using xdebug to generate the data. however, im curious about 'finding the weak spots in an application'. say for instance i arrive at a new location as a consul

Re: [PHP] Getting line count of a text file

2007-09-12 Thread Nathan Nobbe
On 9/12/07, Wolf <[EMAIL PROTECTED]> wrote: > > $command= escapeshellcmd("cat {$file} | wc -l"); > // Run command and capture results > $count = exec($command); that would work on *nix, but not windows. "Frank J. Schima" <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > > > In PHP

Re: [PHP] blocking exec() silently

2007-09-12 Thread Nathan Nobbe
i dont know why you wouldnt just use the disable_functions directive in php.ini disable_functions = "exec" this will indeed raise an error, well a warning rather, from my test [12-Sep-2007 19:22:24] PHP Warning: exec() has been disabled for security reasons but i always suppress warnings and er

Re: [PHP] blocking exec() silently

2007-09-13 Thread Nathan Nobbe
hmm; you can define you own error handler via set_error_handler() this would be something like overriding the stock session_handler, or maybe a little similar to extending the stock exception handler. anyway, i think that would be a lot of

Re: [PHP] blocking exec() silently

2007-09-14 Thread Nathan Nobbe
shared hosting environments are interesting; ive sometimes wondered how i might configure the environment in such a scenario. after revoking access to the exec() command you could allow the errors to be sent to the browser and recommend to users override the stock error handler as mentioned before

Re: [PHP] Upgrade

2007-09-21 Thread Nathan Nobbe
On 9/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Ps. I used references so PHP4 wouldn't create copies at every > function call :) i noticed the previously posted php4 code was doing a lot of copy operations. perhaps thats the only reason the code is actually working under 4 and the

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-25 Thread Nathan Nobbe
i just read the first message in this thread and NuSoap immediately came to mind. though it will solve your problem you may end up like me, hating to use NuSoap under duress. i think it was really popular back in th php4 days when there was nothing solid that could be built right into php. anyway

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread Nathan Nobbe
26. Sep 2007, at 15:26, Nathan Nobbe wrote: > > > i just read the first message in this thread and NuSoap immediately > > came to > > mind. though it will solve your problem you may end up like me, > > hating to use > > NuSoap under duress. i think it was really popula

Re: [PHP] Compile issue

2007-09-26 Thread Nathan Nobbe
are you using the same configure command when compiling all 3 versions? -nathan On 9/26/07, Eric Butera <[EMAIL PROTECTED]> wrote: > > The last version of PHP I've been able to compile on my work machine > was 5.2.2. It is a PowerPC OS X 10.4.10. I'm curious if anyone else > has had this proble

<    1   2   3   4   5   6   7   8   9   10   >