RE: [PHP] is

2010-06-11 Thread Daevid Vincent
> -Original Message- > From: Ahmed Mohsen [mailto:mre...@gmail.com] > Sent: Friday, June 11, 2010 4:25 PM > To: php-general@lists.php.net > Subject: Re: [PHP] is > On 6/11/2010 11:43 PM, Daevid Vincent wrote: > >> -Original Message- > &g

RE: [PHP] is

2010-06-14 Thread Daevid Vincent
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Saturday, June 12, 2010 10:40 PM > > this in PHP. I can convert from '.' to '+' (as in most > languages) in my > mind, but embedding variables in strings was a harder habit > to break. My > opinion is th

RE: [PHP] In what scenario an extension of a class is useful?

2010-06-23 Thread Daevid Vincent
Priceless. Could also be extended applied to babies too. ;-p object babies extends mammal ( function eat (milk $food) ) ROFL. > -Original Message- > From: Rene Veerman [mailto:rene7...@gmail.com] > Sent: Tuesday, June 22, 2010 11:58 PM > > object mammal ( > function eat (mixed $fo

RE: [PHP] in_array - what the...

2010-06-25 Thread Daevid Vincent
> -Original Message- > From: Gary . [mailto:php-gene...@garydjones.name] > Sent: Friday, June 25, 2010 1:14 AM > To: PHP > Subject: Re: [PHP] in_array - what the... > > "Ford, Mike" writes: > >> -Original Message- > >> If I have an array that looks like > >> array(1) { > >>

RE: [PHP] file_get_contents limit

2010-06-29 Thread Daevid Vincent
> -Original Message- > From: Andrew Ballard [mailto:aball...@gmail.com] > Sent: Tuesday, June 29, 2010 1:56 PM > To: a...@ashleysheridan.co.uk > Cc: Jo?o C?ndido de Souza Neto; php-general@lists.php.net > Subject: Re: [PHP] file_get_contents limit > > On Tue, Jun 29, 2010 at 4:39 PM, Ashl

RE: [PHP] Creating image on-the-fly

2010-07-07 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Wednesday, July 07, 2010 1:22 PM > To: Marc Guay > Cc: php-general > Subject: Re: [PHP] Creating image on-the-fly > > On Wed, 2010-07-07 at 16:05 -0400, Marc Guay wrote: > > > > I was wondering if

RE: [PHP] Serial Numbers

2010-07-12 Thread Daevid Vincent
> -Original Message- > From: Gary [mailto:gp...@paulgdesigns.com] > Sent: Monday, July 12, 2010 11:53 AM > > I'm sure it is possible, but I am unsure how to do this. I > have created a > Sale coupon that I was going to put up on a site that I > manage, for visitors > to print out and

RE: [PHP] eval and HEREDOC

2010-07-20 Thread Daevid Vincent
> -Original Message- > From: Sorin Buturugeanu [mailto:m...@soin.ro] > Sent: Tuesday, July 20, 2010 2:11 PM > To: php-general@lists.php.net > Subject: [PHP] eval and HEREDOC > > Hello, > > I am having trouble with a part of my templating script. I'll > try to explain: > > The template

[PHP] PHP The Anthem

2010-08-05 Thread Daevid Vincent
http://www.youtube.com/watch?v=S8zhmiS-1kw http://shiflett.org/blog/2010/aug/php-anthem ...some people have way too much time. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:t...@sperling.com] > Sent: Thursday, August 12, 2010 8:32 AM > To: Bastien Koert > Cc: php-general@lists.php.net > Subject: Re: [PHP] Storing Social Security Number WAS: > Encryption/Decryption Question > > For searching standard fields, it's

RE: [PHP] It's Friday (a MySQL Question)

2010-08-13 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Friday, August 13, 2010 3:00 PM > To: tedd > Cc: php-general@lists.php.net > Subject: Re: [PHP] It's Friday (a MySQL Question) > > On Fri, 2010-08-13 at 17:48 -0400, tedd wrote: > > > Hi gang: > >

RE: [PHP] It's Friday (a MySQL Question)

2010-08-13 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Friday, August 13, 2010 3:23 PM > To: Daniel P. Brown > Cc: tedd; php-general@lists.php.net > Subject: Re: [PHP] It's Friday (a MySQL Question) > > On Fri, 2010-08-13 at 18:22 -0400, Daniel P. Brown wr

RE: [PHP] Can't read $_POST array

2010-08-18 Thread Daevid Vincent
You've got something jacked. DO NOT proceed with your coding using this hack. Put this in a blank file named whatever_you_want.php and hit it with your web browser. --- - foo ba

RE: [PHP] Making multiple RSS feeds for the blog website

2010-08-26 Thread Daevid Vincent
> -Original Message- > From: Andre Polykanine [mailto:an...@oire.org] > Sent: Thursday, August 26, 2010 4:53 PM > To: php-general > Subject: [PHP] Making multiple RSS feeds for the blog website > > Hi everyone, > We are developing a blog service website. > What we need now is the abili

RE: [PHP] Zend framework

2010-09-10 Thread Daevid Vincent
http://www.php.net/manual/en/language.oop5.basic.php > -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: Friday, September 10, 2010 10:59 AM > To: rquadl...@googlemail.com > Cc: chris h; PHP-General > Subject: Re: [PHP] Zend framework > > We use part o

RE: [PHP] Zend framework

2010-09-10 Thread Daevid Vincent
Sorry wrong thread. Damnit. I meant that link for the guy that didn't know what the -> was for... > -Original Message----- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Friday, September 10, 2010 12:01 PM > To: 'David Harkness' > Cc: '

RE: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daevid Vincent
> -Original Message- > From: tedd [mailto:t...@sperling.com] > Sent: Sunday, September 12, 2010 9:32 AM > To: PHP-General list > Subject: [PHP] 1984 (Big Brother) > > Hi gang: > > I have a client who wants his employees' access to their online > business database restricted to only t

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Daevid Vincent
> have been you'll have fun getting paid to re-do everything. Having > everything require a usb stick to launch sounds secure, until > he loses > the stick or forgets it at home one day. For fun I'd suggest tagging ...or pulls it out before all the writes have taken place from the cache or m

RE: [PHP] poll of 'public framework or roll your own'

2010-10-12 Thread Daevid Vincent
That was my poll! :) Do you use a public framework or roll your own? I personally find most frameworks to be either too generic or too restricting. To do some tasks you have to jump through many hoops. I see the benefit and certainly for prototypes they may have use, but I tend to find that buildi

[PHP] Zend studio location Cross-Domain Scripting Vulnerability

2010-10-12 Thread Daevid Vincent
http://80vul.com/Zend%20studio/Zend%20studio%20location%20Cross.htm Interesting. A co-worker and I were JUST noticing how our PHPDoc comments were being parsed pretty much verbatim including tags and links and stuff and thought, "wow, that's stupid, that's just a XSS or injection waiting to happ

RE: [PHP] Zend studio location Cross-Domain Scripting Vulnerability

2010-10-13 Thread Daevid Vincent
> -Original Message- > From: Thijs Lensselink [mailto:d...@lenss.nl] > Sent: Tuesday, October 12, 2010 9:26 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Zend studio location Cross-Domain > Scripting Vulnerability > > On 10/13/2010 12:19 AM, Daevid

[PHP] PHP for Android

2010-11-02 Thread Daevid Vincent
http://www.slideshare.net/ivmos/phpforandroid-en

[PHP] Help with variable variables not being set for a multi-dimensional array

2010-11-09 Thread Daevid Vincent
I've used variable variables before but for some reason I can't figure this snippet out. Why doesn't $ini_file get set (or appended to). Is there a better more elegant solution to parsing these keys and splitting them into sub-array keys as you see what I'm trying to do. I was thinking some recursi

[PHP] RE: Help with variable variables not being set for a multi-dimensional array

2010-11-09 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Tuesday, November 09, 2010 6:55 PM > To: 'php-general@lists.php.net' > Subject: Help with variable variables not being set for a > multi-dimensional array > > I've

[PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-10 Thread Daevid Vincent
http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1" !!! WTF good does that do me?! Here is my test.ini file: -

[PHP] How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

2010-11-10 Thread Daevid Vincent
We're trying to move all of our configuration files for our DEV/TEST/PROD and various python scripts and such that all need the same DB connection parameters and pathing information to a common and simple config.ini file they all can share across languages. One snag I ran into is this: [dart] rel

RE: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Daevid Vincent
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Thursday, November 11, 2010 1:09 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] parse_ini_file() seems to be broken in PHP > 5.2.4-2ubuntu5.12 >

RE: [PHP] use of ini vs include file for configuration

2010-11-11 Thread Daevid Vincent
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Thursday, November 11, 2010 11:04 AM > To: PHP General > Subject: [PHP] use of ini vs include file for configuration > > I'm curious what the lists' opinions are regarding the use of > an .ini > file ve

RE: [PHP] Re: use of ini vs include file for configuration

2010-11-11 Thread Daevid Vincent
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Thursday, November 11, 2010 11:46 AM > To: Jo?o C?ndido de Souza Neto > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: use of ini vs include file for configuration > > On Thu, 2010-11-11 at

RE: [PHP] How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

2010-11-11 Thread Daevid Vincent
35? > > > -----Original Message- > > From: Daevid Vincent [mailto:dae...@daevid.com] > > Sent: 11 November 2010 04:06 > > To: php-general@lists.php.net > > > > We're trying to move all of our configuration files for our > > DEV/TEST/PRO

[PHP] RE: a better ini parser WAS: parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Daevid Vincent
multi-hash broken down by sections * @paramboolean $explode (false) split . keys into sub-array elements * @author Daevid Vincent [dae...@daevid.com] * @date 2010-11-09 */ function __construct($file, $process_sect

RE: [PHP] I am a Windows programmer and getting started on PHP

2010-11-18 Thread Daevid Vincent
> -Original Message- > Subject: [PHP] I am a Windows programmer and getting started > on PHP. What is the easiest way of getting started? Most of > the stuff I encounter seems to be very Linux specific. > > I am a Windows programmer and getting started on PHP. What is > the easiest way

RE: [PHP]any way to iterate the fields in a class

2010-11-29 Thread Daevid Vincent
h > by each through an array. > > Is there any way to assign values to the fields in a class > via an array. > > Thanks in advance! > /** * generate a key/value pair from the class' variables. * * @access public * @return array

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

2010-12-06 Thread Daevid Vincent
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 on one page. Inside my LOPA.class.php I have this method:

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

2010-12-06 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Monday, December 06, 2010 4:02 PM > To: php-general@lists.php.net > Subject: [PHP] How can I call GD's imagepng() directly from my class? > > I have a class that does some massive

RE: [PHP] ORM doctrine

2010-12-08 Thread Daevid Vincent
Avoid these ORM things like the plague! They seem great in theory, but if you're doing anything serious, they will quickly get in your way. Not to mention all that fancy "ORM" doesn't come without a price. It costs in terms of speed, as well as training. You're much better off to make your custom t

RE: [PHP] ORM doctrine

2010-12-09 Thread Daevid Vincent
> -Original Message- > > If you value CPU time over developer time, by all means avoid ORM > > frameworks (and *all* frameworks). The point of a common > framework is to > > trade a small bit of performance for a large amount of > developer time. If > > you will only use the framework

RE: [PHP] Use PHP the way God intended...

2010-12-13 Thread Daevid Vincent
> -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > Sent: Friday, December 10, 2010 6:54 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] ORM doctrine > > On 10-12-09 10:41 PM, Daevid Vincent wrote: > >

RE: [PHP] empty() in email message

2010-12-13 Thread Daevid Vincent
> - Original message - > From: Gary > To: php-general@lists.php.net > Date: Monday, December 13, 2010, 7:47:49 PM > Subject: [PHP] empty() in email message > > I have an email message > > $msg = 'Name: $fname ' . ' $lname\n' > . "Phone: $phone\n" > . "Email: $email\n" > > and it works

[PHP] [security] PHP has DoS vuln with large decimal points

2011-01-05 Thread Daevid Vincent
11/01/04/weird_php_dos_vuln/ -- Daevid Vincent http://daevid.com There are only 11 types of people in this world. Those that think binary jokes are funny, those that don't, and those that don't know binary. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] PHP: a fractal of bad design

2012-04-11 Thread Daevid Vincent
http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Can't say he doesn't have some good points, but he sure goes about it in a dickish way.

[PHP] why is (intval('444-44444') == '444-44444') EQUAL??!

2012-06-21 Thread Daevid Vincent
Huh? Why is this equal??! php > $id = '444-4'; php > var_dump($id, intval($id)); string(9) "444-4" int(444) php > if (intval($id) == $id) echo 'equal'; else echo 'not equal'; equal or in other words: php > if (intval('444-4')

[PHP] If PHP Were British

2012-06-22 Thread Daevid Vincent
http://www.addedbytes.com/blog/if-php-were-british/

RE: [PHP] If PHP Were British

2012-06-22 Thread Daevid Vincent
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown > Sent: Friday, June 22, 2012 4:03 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] If PHP Were British > > On Fri, Jun 22, 2012 at

[PHP] Is there a way to customize the 'Username' and 'Password' strings in a 401 auth dialog box?

2012-06-28 Thread Daevid Vincent
Is there a way to customize the 'Username' and 'Password' strings in a 401 auth dialog box? I want to change mine to say "Webmaster ID" and "Authentication Key". http://php.net/manual/en/features.http-auth.php

RE: [PHP] Entry point of an MVC framework

2012-07-12 Thread Daevid Vincent
> -Original Message- > From: Simon Dániel [mailto:simondan...@gmail.com] > Sent: Thursday, July 12, 2012 1:21 PM > Subject: [PHP] Entry point of an MVC framework > > I have started to develop a simple MVC framework. Yeah! Just what PHP needs, another MVC framework NOT. Why are you r

RE: [PHP] Creating drop-down menus

2012-07-16 Thread Daevid Vincent
AJAX. Your page calls a PHP 'ajax' routine that pulls the data, sends it back as a JS array, and you re-populate the second select box. Welcome to the year 2000. Using frameworks like jQuery, this is pretty trivial these days. You're not trading any security since the PHP gets whatever parameters

RE: [PHP] Creating drop-down menus - use AJAX and jQuery

2012-07-17 Thread Daevid Vincent
Hold on there fireball. * jQuery for production (minified) is a scant 32k. http://jquery.com/ LOL That's like a TCP/IP packet. I bet your images are bigger than 32k. * Unlike stupid PHP frameworks (which everyone knows I detest) - JS frameworks are cached by the browser so there is no downlo

RE: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Daevid Vincent
> -Original Message- > From: Matijn Woudt [mailto:tijn...@gmail.com] > > You're missing the most important aspect of social networks.. Advertising. Please tell me that is said sarcastically. Advertising is the cancer of the internet. There was a time when there weren't ad banners, interst

RE: [PHP] Re: Programmers and developers needed -- TiVo booooo!

2012-09-18 Thread Daevid Vincent
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > I bought TiVo partially so I could skip ads. I've revelled in it every > day since. I can watch an hour-long program in 47 minutes. (Though this > is a sad commentary on television and cable content providers.)

RE: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Daevid Vincent
> -Original Message- > From: AmirBehzad Eslami [mailto:behzad.esl...@gmail.com] > Sent: Monday, September 24, 2012 7:05 AM > To: PHP General Mailing List > Subject: [PHP] Joining a team, where no wiki or docs are available > > Hi, > > i'm going to join a mid-size company with a few PHP-dr

RE: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Daevid Vincent
nail. Build a toolbox. ;-) From: AmirBehzad Eslami [mailto:behzad.esl...@gmail.com] Sent: Monday, September 24, 2012 12:47 PM To: Daevid Vincent Cc: PHP General Mailing List Subject: Re: [PHP] Joining a team, where no wiki or docs are available Wow. David. That was a great help with every detail

RE: [PHP] Re: Compiler for the PHP code (memecached)

2013-03-19 Thread Daevid Vincent
> -Original Message- > From: Alessandro Pellizzari [mailto:a...@amiran.it] > Sent: Tuesday, March 19, 2013 2:06 AM > To: php-general@lists.php.net > Subject: [PHP] Re: Compiler for the PHP code > > Il Tue, 19 Mar 2013 08:46:22 +, Kevin Peterson ha scritto: > > > My webcode written i

[PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Daevid Vincent
We do a lot with caching and storing in memecached as well as local copies so as to not hit the cache pool over the network and we have found some great tools to minimize our javascript and our css, and now we'd like to compress our HTML in these cache slabs. Anyone know of a good tool or even

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Daevid Vincent
> -Original Message- > From: Matijn Woudt [mailto:tijn...@gmail.com] > Sent: Wednesday, April 17, 2013 3:11 PM > To: Daevid Vincent > Cc: PHP List > Subject: Re: [PHP] Need a tool to minimize HTML before storing in > memecache > > On Wed, Apr 17, 2013

RE: [PHP]

2013-04-17 Thread Daevid Vincent
It is the equivalent of it's just easier to type and read IMHO. For a while people were freaking out that they thought it would be deprecated, but that is not (nor ever will be) the case. > -Original Message- > From: Larry Martell [mailto:larry.mart...@gmail.com] > Sent: Wednesday, Apr

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-01 Thread Daevid Vincent
; => 'raw', 'output-encoding' => 'raw', 'newline' => 'LF', 'tidy-mark' => false, 'quiet' => true, 'show-errors' => ($this->_debug ? 6 : 0), 'show-w

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-02 Thread Daevid Vincent
snag, it works like a champ. > -Original Message- > From: ma...@behnke.biz [mailto:ma...@behnke.biz] > Sent: Thursday, May 02, 2013 4:55 AM > To: Daevid Vincent; 'php-general General' > Subject: RE: [PHP] Need a tool to minimize HTML before storing in memecache >

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Daevid Vincent
oth apache and the client's browser's parser. Dig? > -Original Message- > From: ma...@behnke.biz [mailto:ma...@behnke.biz] > Sent: Friday, May 03, 2013 4:28 AM > To: Daevid Vincent; 'php-general General' > Subject: RE: [PHP] Need a tool to minimize HTML

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Daevid Vincent
> -Original Message- > From: Marco Behnke [mailto:ma...@behnke.biz] > Sent: Friday, May 03, 2013 12:01 PM > To: Daevid Vincent; php >> "php-general@lists.php.net" > Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache > > If yo

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-06 Thread Daevid Vincent
> -Original Message- > From: Marco Behnke [mailto:ma...@behnke.biz] > Sent: Friday, May 03, 2013 12:56 PM > > > >> Maybe google page speed is worth a look for you too? > > > > We have over 1,000 servers in house and also distributed across nodes in > various cities and countries. > > Don

[PHP] How do I remove a string from another string in a fuzzy way?

2013-05-20 Thread Daevid Vincent
We have a support ticket system we built and customers can reply via email which then posts their reply into our database. The problem is that when you read a ticket, you see each ticket entry (row in DB) but they tend to accumulate the previous entries text since the customer replied to an email.

RE: [PHP] How do I remove a string from another string in a fuzzy way?

2013-05-20 Thread Daevid Vincent
> -Original Message- > From: muquad...@gmail.com [mailto:muquad...@gmail.com] On Behalf Of shiplu > Sent: Monday, May 20, 2013 9:03 PM > To: Daevid Vincent > Cc: php-general General List > Subject: Re: [PHP] How do I remove a string from another string in a fuzzy &

[PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread Daevid Vincent
I'm adding some minification to our cache.class.php and am running into an edge case that is causing me grief. I want to remove all comments of the // variety, HOWEVER I don't want to remove URLs... Given some example text here with carefully crafted cases: // another comment here http://foo.com

RE: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-28 Thread Daevid Vincent
> From: David Harkness [mailto:davi...@highgearmedia.com] > > We have been using a native jsmin extension [1] which does a lot more > without any trouble for over two years now. It's much faster than the > equivalent PHP solution and is probably tested by a lot more people than a > home-grown vers

RE: [PHP] [SOLVED] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Daevid Vincent
> -Original Message- > From: Andreas Perstinger [mailto:andiper...@gmail.com] > Sent: Tuesday, May 28, 2013 11:10 PM > To: php-general@lists.php.net > Subject: Re: [PHP] need some regex help to strip out // comments but not > http:// urls > > On 28.05.2013 23:

[PHP] refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the "id" of the result set row. This is the basic gist of it: private function _normalize_result_set() { foreach($this-

RE: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Monday, September 02, 2013 8:14 PM > To: php-general@lists.php.net > Subject: [PHP] Re: refernces, arrays, and why does it take up so much > memory? > > On 9/2/2013 9:30

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
EUREKA! > -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: Tuesday, September 03, 2013 6:31 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] refernces, arrays, and why does it take up so much > memory? > &

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
> -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: Tuesday, September 03, 2013 2:37 PM > To: Daevid Vincent > Cc: php-general@lists.php.net; 'Jim Giner' > Subject: Re: [PHP] refernces, arrays, and why does it take up so much > memo

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Tuesday, September 03, 2013 4:03 PM > To: php-general@lists.php.net > Cc: 'Stuart Dallas' > Subject: RE: [PHP] refernces, arrays, and why does it take up so much > memory? [SO

[PHP] PHPDoc way to describe the magic getter/setters [SOLVED]

2013-09-25 Thread Daevid Vincent
I use a base.class that most classes extend from. That class uses the lovely Magic Methods for overloading __get() and __set() http://php.net/manual/en/language.oop5.magic.php However (in Zend Studio for example) when I try to auto-assist a property $foo I don't see that it has a get() or set() m

RE: [PHP] A bad design decision or pure genius?

2011-01-13 Thread Daevid Vincent
> -Original Message- > From: li...@pruimphotography.com [mailto:li...@pruimphotography.com] > Sent: Thursday, January 13, 2011 4:50 PM > To: php-general@lists.php.net > Subject: [PHP] A bad design decision or pure genius? > > Hey Everyone, > > I have a question about php & javascript...

[PHP] root of PHP found!

2011-02-16 Thread Daevid Vincent
Aha! I am working for the company that was the root of PHP! http://www.panasonic.net/history/founder/chapter3/story3-02.html ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Dotnet Remoting

2011-02-24 Thread Daevid Vincent
> -Original Message- > From: Bastien [mailto:phps...@gmail.com] > Sent: Thursday, February 24, 2011 4:18 AM > To: Gary > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dotnet Remoting > > > > On 2011-02-24, at 5:17 AM, Gary wrote: > > > This is purely of academic interest to me

RE: [PHP] Short tag: why is it bad practice?

2011-05-11 Thread Daevid Vincent
> -Original Message- > From: Joshua Kehn [mailto:josh.k...@gmail.com] > Sent: Tuesday, May 10, 2011 8:19 AM > To: Andre Polykanine > Cc: php-general@lists.php.net > Subject: Re: [PHP] Short tag: why is it bad practice? > > On May 10, 2011, at 11:11 AM, Andre Polykanine wrote: > > > Hi eve

RE: [PHP] Posts that include bracket OT bracket

2011-05-23 Thread Daevid Vincent
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel > Brown > Sent: Monday, May 23, 2011 11:20 AM > To: tedd > Cc: php-general@lists.php.net > Subject: Re: [PHP] Posts that include bracket OT bracket > > On Mon, May 23, 2011 at 11:33, tedd wro

RE: [PHP] observer pattern

2011-05-23 Thread Daevid Vincent
> -Original Message- > From: Eric Butera [mailto:eric.but...@gmail.com] > Sent: Friday, May 20, 2011 2:25 PM > To: PHP > Subject: Re: [PHP] observer pattern > > [whoops didn't hit reply-all] > > On Wed, May 18, 2011 at 5:18 AM, Ken Guest wrote: > > Lo, > > > > so, I'm wondering - how man

[PHP] phpsadness

2011-05-27 Thread Daevid Vincent
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

RE: [PHP] phpsadness - P.C. shmee seee.

2011-06-03 Thread Daevid Vincent
> >> Reminds me (obliquely) of an entry in the index for "The C Programming > >> Language" for recursion, which points right back to that index page. I > >> about doubled over when I first discovered it. > > > >That's hilarious. I love subtle humor like that. This whole thread seems to echo t

RE: [PHP] phpsadness

2011-06-03 Thread Daevid Vincent
Damn. Ironically, I wanted to write something short and succinct like that ... then I got all worked up and started to rant. Well said 'guy with my same name'. :) > -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: Friday, June 03, 2011 1:47 PM > To: PHP

RE: [PHP] phpsadness - the second tangent...

2011-06-05 Thread Daevid Vincent
bout Safari or Opera or the other fringe browsers for my PERSONAL site. -Original Message- From: Tamara Temple [mailto:tamouse.li...@gmail.com] Sent: Saturday, June 04, 2011 10:09 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] phpsadness - P.C. shmee seee. On

[PHP] CodeBubbles for Eclipse Beta available!

2011-06-06 Thread Daevid Vincent
While not PHP specifically, this is a plugin for Eclipse that is an entirely new paradigm in coding IDE and I've been watching & waiting for it for over a year now. I post it here because [a] it's pretty much the coolest thing since the invention of the IDE itself. [b] it's real and actually not

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
> -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 some experience w/ Doctrine now would be a great > time to share it

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
> -Original Message- > From: Eric Butera [mailto:eric.but...@gmail.com] > Sent: Thursday, June 16, 2011 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 w

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
> -Original Message- > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > Sent: Thursday, June 16, 2011 5:39 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: RE: [PHP] Doctrine madness! > > On Jun 16, 2011 5:31 PM,

RE: [PHP] Doctrine madness!

2011-06-16 Thread Daevid Vincent
> -Original Message- > From: Eric Butera [mailto:eric.but...@gmail.com] > Sent: Thursday, June 16, 2011 5:53 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] Doctrine madness! > > On Thu, Jun 16, 2011 at 7:32 P

RE: [PHP] Doctrine madness! huh?

2011-06-16 Thread Daevid Vincent
> >> out XSS out of the box. Of course, with diligence and time we can all > >> overcome these things, but that does not mean someone with the > >> ambition to bang together a quick website for a relative understands > >> the real perils they're getting into - I certainly did not. > > > > I'm sure

[PHP] Mangling URLs for RewriteRule parsing

2011-07-12 Thread Daevid Vincent
I'm fumbling trying to think of a nice easy way to mangle my URLs within PHP for SEO and apache's RewriteRules magic. Given a basic rule like this: RewriteCond ^/foo/movie/genre/([-a-z\|]*)_([-a-z\|]*)/([0-9]+)/videos.html$ RewriteRule /browse_scenes.php?&genre_id=${genres:$2}&pg=$1&%{QUERY_STRI

[PHP] Your language sucks because...

2011-07-13 Thread Daevid Vincent
(at the risk of starting another $h!t storm like the last time) http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because: ;-)

[PHP] is_null() and is_string() reversed when using in switch case statements...

2011-07-14 Thread Daevid Vincent
Can someone double check me here, but I think I found a bug... int 1 1 => int 2 2 => int 3 3 => int 4 4 => int 5 I think v is an array [1,2,3,4,5] */ ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is_null() and is_string() reversed when using in switch case statements... [SOLVED]

2011-07-14 Thread Daevid Vincent
> -Original Message- > From: Simon J Welsh [mailto:si...@welsh.co.nz] > Sent: Thursday, July 14, 2011 7:29 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] is_null() and is_string() reversed when using in switch > case statements... >

[PHP] How do I enable $_SERVER['HTTP_X_WAP_PROFILE'] or $_SERVER['HTTP_PROFILE']

2011-08-03 Thread Daevid Vincent
I'm working on a mobile site and from the various searches and reading (and even code fragments I've inherited for the project), they make reference to: $_SERVER['HTTP_X_WAP_PROFILE'] and a fallback $_SERVER['HTTP_PROFILE'] However, when I hit a phpinfo(); page using both an Android MyTouch 3G (2

[PHP] regex or 'tidy' script to fix broken

2011-08-09 Thread Daevid Vincent
I've inherited a bunch of code and the previous developers have done two things that are really bugging me and I want to clean up. [a] They use short-tag "

RE: [PHP] regex or 'tidy' script to fix broken

2011-08-10 Thread Daevid Vincent
ypes of people in this world. Those that think binary jokes are funny, those that don't, and those that don't know binary. -- > Sent from my iPhone 5 Beta [Confidential use only] > > On 09-08-2011, at 19:40, "Daevid Vincent" wrote: > > > I've inherit

RE: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Daevid Vincent
LOLercopter! > -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: Tuesday, August 30, 2011 12:57 PM > To: Robert Cummings > Cc: rquadl...@gmail.com; Tedd Sperling; php-general@lists.php.net > Subject: Re: [PHP] Code should be selv-maintaining! > > I don'

RE: [PHP] dev to production server

2011-09-07 Thread Daevid Vincent
> -Original Message- > From: Alex Nikitin [mailto:niks...@gmail.com] > Sent: Wednesday, September 07, 2011 8:47 AM > To: Chris Stinemetz > Cc: PHP General > Subject: Re: [PHP] dev to production server > > If you have to ask these questions, i don't think you should be the person > to do

[PHP] Episode 2 - All The Cool Kids Use Ruby

2011-09-16 Thread Daevid Vincent
http://www.youtube.com/watch?v=5GpOfwbFRcs LOLercopter

[PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-13 Thread Daevid Vincent
#include int main() { printf("R.I.P. Dennis Ritchie: 1941-2011\n"); return 0; } http://www.networkworld.com/news/2011/101311-ritchie-251936.html

RE: [PHP] Auto CRUD Generator Xataface

2011-11-29 Thread Daevid Vincent
-Original Message- > Search Google for Xataface. It's a full frontend which > dynamically changes with database structure changes. http://xataface.com/videos is broken and therefore we can't view the demo, and nothing pisses me off more than a site that doesn't have a simple "contact" ema

<    1   2   3   4   5   6   >