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

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

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 PM, Daevid Vincent dae...@daevid.com wrote

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

[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

[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... ?php /* $ php -v PHP 5.3.6 with Suhosin-Patch (cli) (built: Apr 28 2011 14:20:48) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Xdebug v2.0.5, Copyright (c) 2002-2008, by

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... On 15/07/2011, at 1:58 PM, Daevid

[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

[PHP] regex or 'tidy' script to fix broken ? tags and introspection of variables

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 ? instead of ?php. Anyone have some good search/replace style Regex (ideally for ZendStudio/Eclipse) that will run through all the files in

RE: [PHP] regex or 'tidy' script to fix broken ? tags and introspection of variables

2011-08-10 Thread Daevid Vincent
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 dae...@daevid.com wrote: I've inherited a bunch of code and the previous developers have done two

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

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 it, i'm

[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 stdio.h 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 email

RE: [PHP] Auto CRUD Generator Xataface

2011-11-29 Thread Daevid Vincent
-Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Tuesday, November 29, 2011 12:48 PM To: Daevid Vincent Cc: php-general-h...@lists.php.net; php-general@lists.php.net Subject: Re: [PHP] Auto CRUD Generator Xataface On Tue, Nov 29, 2011 at 9:44 PM, Daevid Vincent

[PHP] Where did my comment go related to lower/upper bounds for any number and offset?

2012-02-23 Thread Daevid Vincent
$offset (32) must be a 2^n value [8, 16, 32, 64, 128, ...) * @author Daevid Vincent * @date 2012-02-21 */ function boundaries_ul($number, $offset=32) { if ($offset 8) return false; //nothing smaller than this makes practical sense if (($offset ($offset - 1)) != 0) return

[PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
My question is, is there a way to enable some PHP configuration that would output more verbose information, such as a backtrace or the URL attempted? In our PHP error log, we have the usual semi-useful information. However this is only a partial story as it's hard to re-create the URL that caused

RE: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Daevid Vincent
-Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Seriously? Errors like this should not be getting anywhere near your production servers. This is especially true if you're really getting 30k hits/s. Don't get me started. I joined here almost a year ago. They didn't

[PHP] set_error_handler() only triggering every Nth time

2012-03-13 Thread Daevid Vincent
I am implementing a custom error handler and started noticing some bizarre behavior. Every Nth time I refresh the page, I see the error/output. In my 'includes/common.inc.php' the key things are these: set_error_handler('php_error_handler'); function php_error_handler($errno,

[PHP] set_error_handler() only triggering every Nth time

2012-03-22 Thread Daevid Vincent
Resending since I didn't get a single reply. Maybe it got lost? -Original Message- Sent: Tuesday, March 13, 2012 5:58 PM I am implementing a custom error handler and started noticing some bizarre behavior. Every Nth time I refresh the page, I see the error/output. In my

[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 5:07 PM, Daevid Vincent dae

[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

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

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,

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.) Not

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

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

2012-09-24 Thread Daevid Vincent
is a 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 in PHP and

[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 at 11:52 PM, Daevid Vincent dae

RE: [PHP] ?=$var?

2013-04-17 Thread Daevid Vincent
It is the equivalent of ?php echo $var; ? 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:

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

2013-05-01 Thread Daevid Vincent
, 2013 2:55 PM To: Daevid Vincent Cc: php-general General Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache http://php.net/manual/en/book.tidy.php - Joseph Moniz (510) 509-0775 | @josephmoniz https://twitter.com/josephmoniz | https://github.com/JosephMoniz GitHub | http

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

2013-05-02 Thread Daevid Vincent
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 This is because tidy is for optimizing HTML

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

2013-05-03 Thread Daevid Vincent
in bandwidth and space. As well as render time for both 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 you really have that much traffic, then memcache

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't know if

[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 way? Is your ticketing

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

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

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:17, Daevid Vincent wrote: I want

[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() {

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 PM, Daevid Vincent wrote: I'm confused

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? On 3 Sep 2013, at 02:30, Daevid

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 memory? [SOLVED] On 3 Sep 2013, at 21:47

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? [SOLVED] $this-tmp_results[$k]['g

[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()

<    1   2   3   4   5   6