[PHP] mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
Hi folks, This code: ?php $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); var_dump($iv); Takes just over a minute to run on my laptop and roughly 45 seconds on a capable server, any idea why? time php test-iv.php string(32)

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
? #morbidcuriosity -nathan On Fri, May 31, 2013 at 12:40 AM, Nathan Nobbe quickshif...@gmail.comwrote: Hi folks, This code: ?php $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); var_dump($iv); Takes just over a minute to run on my

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 mark...@gmail.com 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,

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 jim.gi...@albanyhandball.comwrote: On 12/21/2012 5:16 PM, Tedd Sperling wrote: On Dec 21, 2012, at 4:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Never realized that you could address a string as an array of chars, which you are doing.

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 quickshif...@gmail.comwrote: On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 12/21/2012 5:16 PM, Tedd Sperling wrote: On Dec 21, 2012, at 4:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Never

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 select ) ?php $row['promo_code_prefix'] = 42; $row['promo_code_suffix'] = 2; echo select name=\distributor- . $row['promo_code_prefix']

Re: [PHP] PDO

2012-10-22 Thread Nathan Nobbe
On Mon, Oct 22, 2012 at 3:27 PM, Silvio Siefke siefke_lis...@web.de 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

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

[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 tommy...@gmail.com wrote: On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe quickshif...@gmail.com 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

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 quickshif...@gmail.comwrote: On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham tommy...@gmail.com wrote: On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi all, Strangely PHP seems to let each class have its own layer

[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 si...@welsh.co.nz 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? Running through some code in an app I'm

[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 izod...@gmail.com 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

[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=viewcurrent=ScreenShot2011-10-24at74724PM.png Happy Halloween!

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, Thinking database i/o would be the slowest part of a request

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:26 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:24 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr

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 li...@pruimphotography.comwrote: 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,

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
nice one! On Fri, Oct 21, 2011 at 10:27 AM, Daniel Brown danbr...@php.net 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).

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
Friday :P On Fri, Oct 21, 2011 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 21, 2011 at 12:34, Nathan Nobbe quickshif...@gmail.com wrote: nice one! Quit top-posting! ;-P -- /Daniel P. Brown 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 tedd.sperl...@gmail.comwrote: 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

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

2011-09-15 Thread Nathan Nobbe
On Wed, Sep 14, 2011 at 10:06 PM, Joshua Stoutenburg jehoshu...@gmail.comwrote: On Wed, Sep 14, 2011 at 11:59 AM, Govinda govinda.webdnat...@gmail.com wrote: As for duplicate answers..., [snip] Also newbies may tend to like the multiples answers.. for the different perspectives, as

[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 quickshif...@gmail.comwrote: 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 some .msi files on this page: http

Re: [PHP] Doctrine madness!

2011-06-20 Thread Nathan Nobbe
On Mon, Jun 20, 2011 at 5:16 AM, Ford, Mike m.f...@leedsmet.ac.uk 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 the product table from my application

Re: [PHP] Doctrine madness!

2011-06-18 Thread Nathan Nobbe
On Fri, Jun 17, 2011 at 1:19 PM, Jim Lucas li...@cmsws.com 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 for more than 30

[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

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 1:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: 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

Re: [PHP] Doctrine madness!

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

RE: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net Subject: [PHP] Doctrine madness! Hi gang, If anyone out there has

Re: [PHP] Doctrine madness!

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

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
On Sat, May 28, 2011 at 4:33 AM, Robert Cummings rob...@interjinn.comwrote: 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

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
On Sat, May 28, 2011 at 1:34 PM, Andre Polykanine an...@oire.org 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

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

2011-05-28 Thread Nathan Nobbe
On Fri, May 27, 2011 at 11:52 PM, Arnold Hesnod ahes...@mindvox.com 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

Re: [PHP] phpsadness

2011-05-27 Thread Nathan Nobbe
On Fri, May 27, 2011 at 3:52 PM, Robert Cummings rob...@interjinn.comwrote: 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

Re: [PHP] semaphore release before acquire warning

2011-05-02 Thread Nathan Nobbe
On Mon, May 2, 2011 at 2:57 PM, Jeremy Greene jer...@zeevee.com 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

Re: [PHP] $_POST vars

2011-04-14 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04

Re: [PHP] $_POST vars

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

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner jim.gi...@albanyhandball.comwrote: 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

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner jim.gi...@albanyhandball.com 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 jim.gi...@albanyhandball.comwrote: 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 stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49

[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

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
On Mon, Mar 28, 2011 at 12:38 PM, Bostjan Skufca bost...@a2o.si 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 -

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca bost...@a2o.si 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

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com 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

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:56 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: I'm curious to know what

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:58 AM, Richard Quadling rquadl...@gmail.comwrote: On 18 March 2011 17:36, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: I'm

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 some

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
On Thu, Mar 17, 2011 at 9:03 AM, Joel j...@wearegrand.com 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

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-09 Thread Nathan Nobbe
On Wed, Mar 9, 2011 at 3:18 AM, Richard Quadling rquadl...@gmail.comwrote: On 7 March 2011 23:37, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling rquadl...@gmail.com wrote: On 3 March 2011 18:30, Nathan Nobbe quickshif...@gmail.com wrote

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling rquadl...@gmail.comwrote: On 3 March 2011 18:30, Nathan Nobbe quickshif...@gmail.com wrote: 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

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

2011-03-07 Thread Nathan Nobbe
On Sat, Mar 5, 2011 at 5:31 AM, Florin Jurcovici florin.jurcov...@gmail.com 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

[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

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:23 PM, Steve Staples sstap...@mnsi.net 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's arisen as a result of a new contract

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:59 PM, Paul M Foster pa...@quillandmouse.comwrote: 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 curiosity that's arisen as a result

Re: [PHP] First PHP job

2011-01-10 Thread Nathan Nobbe
On Mon, Jan 10, 2011 at 2:55 PM, Steve Staples sstap...@mnsi.net 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

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:31 AM, Joshua Kehn josh.k...@gmail.com wrote: On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: On Fri, Jan 7, 2011 at 12:18, Joshua Kehn josh.k...@gmail.com wrote: Using another language more suited towards CLI / standalone (non-web) development would be easier.

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn josh.k...@gmail.com 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 what php

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 12:53 PM, tedd tedd.sperl...@gmail.com wrote: At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn josh.k...@gmail.com 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 tedd.sperl...@gmail.com 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 -nathan I try to stay away from

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday paul.halli...@gmail.comwrote: 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

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 4:27 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday paul.halli...@gmail.comwrote: 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

Re: [PHP] how would I do this?

2010-12-27 Thread Nathan Nobbe
On Mon, Dec 27, 2010 at 2:13 PM, David McGlone da...@dmcentral.net 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=

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 kdeu...@vianet.ca 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 has to be getting changed by the Tag

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 kdeu...@vianet.ca 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($tag='', $tagContent='') { $this-tagContent

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 kdeu...@vianet.ca 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 has to be getting changed by the Tag

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

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 6:37 PM, David Harkness davi...@highgearmedia.comwrote: 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.

Re: [PHP] Singleton with variable parameters

2010-12-15 Thread Nathan Nobbe
On Wed, Dec 15, 2010 at 2:11 PM, Sebastian Detert php-maill...@elygor.dewrote: 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

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++). So we

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 tommy...@gmail.com 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

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 dae...@daevid.com 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

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 dae...@daevid.com 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,

Re: [PHP] Iterators.

2010-12-03 Thread Nathan Nobbe
On Fri, Dec 3, 2010 at 6:09 AM, Richard Quadling rquadl...@gmail.comwrote: 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

Re: [PHP] Procedural Autoloader?

2010-11-22 Thread Nathan Nobbe
On Mon, Nov 22, 2010 at 2:24 PM, Daniel P. Brown daniel.br...@parasane.netwrote: On Mon, Nov 22, 2010 at 15:37, Jason Pruim li...@pruimphotography.com wrote: Hey Everyone! Fresh off my problem with functions and arrays I come across something that I can't seem to find currently... The

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 tamouse.li...@gmail.comwrote: 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,

Re: [PHP] Shopping cart question

2010-11-07 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 5:51 PM, Tommy Pham tommy...@gmail.com 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 On Fri, Nov 5, 2010 at 12:30 PM

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net 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,

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net wrote: Hey guys (and gals) I am writing something that needs to connect to a SMB server

Re: [PHP] Re: read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:37 AM, Ian php_l...@fishnet.co.uk 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 sstap...@mnsi.net wrote: Hey guys (and gals) I am writing something

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.comwrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 11:01 AM, Alexandr verbitsky_alexa...@mail.bywrote: Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve

Re: [PHP] Shopping cart question

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 12:30 PM, Jack jacklistm...@gmail.com 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

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 r.suy...@gmail.com wrote: On Tue, Nov 2, 2010 at 5:49 PM, Nathan Nobbe quickshif...@gmail.comwrote: On Tue, Nov 2, 2010 at 2:33 PM, Suyash R r.suy...@gmail.com wrote: No, we didn't try it our dept.'s admin wants to know where is sockets.so file

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 quickshif...@gmail.comwrote: $ 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 install

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 yod...@gmail.com 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] 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 yod...@gmail.com wrote: On Tue, Nov 2, 2010 at 9:19 AM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue, Nov 2, 2010 at 7:52 AM, Dan Yost yod...@gmail.com wrote: So now I suppose the thread becomes: how do I get a valid US/Central (America

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 yod...@gmail.com wrote: On Tue, Nov 2, 2010 at 11:02 AM, Nathan Nobbe quickshif...@gmail.com 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

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 quickshif...@gmail.comwrote: 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

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 rquadl...@gmail.comwrote: 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

Re: [PHP] include html

2010-11-01 Thread Nathan Nobbe
On Sunday, October 31, 2010, a...@ashleysheridan.co.uk 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

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 yod...@gmail.com 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

Re: [PHP] include html

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

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 change

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 8:47 AM, Daniel Brown danbr...@php.net wrote: On Thu, Oct 21, 2010 at 10:41, Robert Cummings rob...@interjinn.com wrote: I can't speak for everyone here (or who is no longer here)... but my posts have dwindled significantly due to work and family time constraints

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 1:51 PM, Michael Shadle mike...@gmail.com wrote: in fact, it's easier to read on mobile devices such as an iphone. it's also easier to reply. email clients like google will hide the common lines anyway. to me this comes on the heels of a presentation i just read

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 2:15 PM, Michael Shadle mike...@gmail.com wrote: On Thu, Oct 21, 2010 at 12:56 PM, Nathan Nobbe quickshif...@gmail.com wrote: um, right, the whole point is that the conversations are not being viewed through mail clients when people are finding them via search

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 2:33 PM, Michael Shadle mike...@gmail.com wrote: On Thu, Oct 21, 2010 at 1:21 PM, Nathan Nobbe quickshif...@gmail.com wrote: what does syntax highlighting have to do w/ a mess of text that could be sorted out by folks willing to take the extra 2 seconds to put

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Nathan Nobbe
On Thu, Oct 21, 2010 at 4:24 PM, Michael Shadle mike...@gmail.com wrote: On Thu, Oct 21, 2010 at 3:12 PM, Nathan Nobbe quickshif...@gmail.com 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

  1   2   3   4   5   6   7   8   9   10   >