[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

[PHP] mcrypt_create_iv - why so slow?

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

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

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] 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] 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] 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

[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] 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

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

[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] 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] 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

[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] [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

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] 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

[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] 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

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] 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
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] 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

[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

[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

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

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-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-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
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
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

[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] 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

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] 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-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] 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] $_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] $_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-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
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: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
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] 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] 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 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

[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] 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

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: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-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-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] 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] 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-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] 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-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&

[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] 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

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] 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 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 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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] How can I call GD's imagepng() directly from my class?

2010-12-06 Thread Nathan Nobbe
On Mon, Dec 6, 2010 at 5:01 PM, Daevid Vincent wrote: > I have a class that does some massive computations to compute a LOPA > (layout of passenger aircraft). > > I currently render it in an HTML table with little seats. I want to now > make this using GD so I can show entire fleets of aircraft o

Re: [PHP] Iterators.

2010-12-03 Thread Nathan Nobbe
On Fri, Dec 3, 2010 at 6:09 AM, Richard Quadling wrote: > Hi. > > OK. I'm stuck. I just can't work this out. > > I like SPL. I like the re-usability. It seems right. But I just can't > work it out. > > I want to read through a file system, looking for files of a particular > type. I want to ignor

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Nathan Nobbe
On Mon, Nov 22, 2010 at 2:24 PM, Daniel P. Brown wrote: > On Mon, Nov 22, 2010 at 15:37, Jason Pruim > wrote: > > Hey Everyone! > > > > Fresh off my problem with functions and arrays I come across something > that > > I can't seem to find currently... The autoloader function that is in PHP > 5+ >

Re: [PHP] How to protect the source code.

2010-11-19 Thread Nathan Nobbe
On Fri, Nov 19, 2010 at 3:07 PM, Tamara Temple wrote: > > On Nov 19, 2010, at 3:39 PM, Hans Åhlin wrote: > > Does any one know if there is any way for me to protect my source code >> without the requirement of a extension being installed on the server? >> i.e encryption, obfusicator, script libra

Re: [PHP] Shopping cart question

2010-11-07 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 5:51 PM, Tommy Pham wrote: > > -Original Message- > > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > > Sent: Friday, November 05, 2010 11:40 AM > > To: Jack > > Cc: PHP > > Subject: Re: [PHP] Shopping cart question >

Re: [PHP] Shopping cart question

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 12:30 PM, Jack wrote: > Hello All, > > > I'm looking to build a DB with items that are considered more of a catalog > on one side of a website, and then provide those same items including the > same images, descriptions etc. to a shopping cart. > > I don't want to re-invent

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 11:01 AM, Alexandr wrote: > Nathan Nobbe пишет: > > On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling > >wrote: >> >> >> >>> On 5 November 2010 16:30, Nathan Nobbe wrote: >>> >>> >>>> On Fri, Nov 5, 2

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling wrote: > On 5 November 2010 16:30, Nathan Nobbe wrote: > > On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples > wrote: > > > >> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > >> > On Fri, Nov 5,

Re: [PHP] Re: read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:37 AM, Ian wrote: > On 05/11/2010 16:18, Steve Staples wrote: > > On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > >> On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples > wrote: > >> > >>> Hey guys (and gals) > >>&

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: > On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > > > > > Hey guys (and gals) > > > > > > I am writing something that needs to conn

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: > Hey guys (and gals) > > I am writing something that needs to connect to a SMB server... can this > be done easliy? > > I copied a sample code from php.net that used the system() command and > mounted the SMB to a /mnt/tmp partion, and technic

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Nathan Nobbe
On Thu, Nov 4, 2010 at 11:43 AM, Nathan Nobbe wrote: > $ yum search php | grep -i socket > php-pear-Net-Socket.noarch : Network Socket Interface > check that - thats def *not* the package you're looking for, it's a userspace oo wrapper. you'd be best asking how to insta

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-04 Thread Nathan Nobbe
On Thu, Nov 4, 2010 at 11:11 AM, Suyash R wrote: > On Tue, Nov 2, 2010 at 5:49 PM, Nathan Nobbe wrote: > >> On Tue, Nov 2, 2010 at 2:33 PM, Suyash R wrote: >> >>> No, we didn't try it our dept.'s admin wants to know where is sockets.so >>> file o

Re: [PHP] include html

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 12:50 AM, Karl DeSaulniers wrote: > > On Nov 2, 2010, at 12:37 AM, Nathan Nobbe wrote: > > On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers >> wrote: >> I need to basically grab the source of the page as text. Then I can do a >> replace(

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 2:33 PM, Suyash R wrote: > No, we didn't try it our dept.'s admin wants to know where is sockets.so > file on disk > lol, tell your dept.'s 'admin' to run locate sockets.so > and why should we try this when the phpinfo() displays sockets being > enabled? > probly there

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 10:37 AM, Nathan Nobbe wrote: > dude at this point i dont want to sound too much like a troll, but php 5.1 > is some really old software. frankly this is why i chose not to run on > centos during my evaluation of it. i understand the concept behind running > p

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 10:11 AM, Dan Yost wrote: > On Tue, Nov 2, 2010 at 11:02 AM, Nathan Nobbe > wrote: > >> >> > >> >> So now I suppose the thread becomes: how do I get a valid US/Central > >> >> (America/Chicago) timezone in PHP5?

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 8:44 AM, Dan Yost wrote: > On Tue, Nov 2, 2010 at 9:19 AM, Nathan Nobbe > wrote: > > On Tue, Nov 2, 2010 at 7:52 AM, Dan Yost wrote: > >> > >> So now I suppose the thread becomes: how do I get a valid US/Central > >> (America/Chic

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-02 Thread Nathan Nobbe
On Tue, Nov 2, 2010 at 7:52 AM, Dan Yost wrote: > > > So now I suppose the thread becomes: how do I get a valid US/Central > (America/Chicago) timezone in PHP5? > give the timezonedb extension a shot http://pecl.php.net/package/timezonedb -nathan

Re: [PHP] include html

2010-11-01 Thread Nathan Nobbe
On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers wrote: > I need to basically grab the source of the page as text. Then I can do a > replace() on the tag. Then insert the text into an Iframe. In theory, > this I thought would be handled better server side. Is this possible? yes, there are a fe

Re: [PHP] time zone ignored (both via ini or in code)

2010-11-01 Thread Nathan Nobbe
On Mon, Nov 1, 2010 at 12:54 PM, Dan Yost wrote: > Greetings, > > I've looked through a number of different archived threads (some > rather heated) and samples as well, but clearly I'm just missing > something. > > PHP 5.1.6 > CentOS release 5.5 (Final) > > My server is in Central Time (US). We d

Re: [PHP] include html

2010-11-01 Thread Nathan Nobbe
On Sunday, October 31, 2010, a...@ashleysheridan.co.uk wrote: > This can only be done with javascript, as the iframe is client-side, which > php knows nothing about. sounds to me like OP is building the page which will have the iframe in it which means this is totally doable server side. in fa

Re: [PHP] Implementing optional methods in a concrete class, but calling them from an abstract class.

2010-11-01 Thread Nathan Nobbe
On Mon, Nov 1, 2010 at 9:13 AM, Richard Quadling wrote: > Hi. > > I have an abstract base class (call it genericServiceHandler). > > I have concrete classes (FaxService, EmailService). > > The genericServiceHandler is watching for commands from an external > source. The commands will always be one

Re: [PHP] PHP with POSIX style message queues (mq_open() and friends)

2010-10-28 Thread Nathan Nobbe
On Thu, Oct 28, 2010 at 12:52 PM, Jameson Williams < jame...@jamesonwilliams.com> wrote: > Hello, > > I need some way to interact with a POSIX message queue from PHP. I am > already aware that the PHP library provides for manipulation of Sys V style > queues (msg_get_queue(), etc.), but I cannot c

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 4:24 PM, Michael Shadle wrote: > On Thu, Oct 21, 2010 at 3:12 PM, Nathan Nobbe > wrote: > > > i've found top-posting to be useful in the corporate environment where > the > > people i'm working with are too ignorant to understand the ra

  1   2   3   4   5   6   7   8   9   10   >