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] Compiler for the PHP code

2013-03-19 Thread Vincent Tumwijukye
ng the desired performance so want to try the > compiler if any. > Please suggest if we have aany compiler option available for the PHP code > and more important is this new option. > > -- Tumwijukye Vincent Chief Executive Officer Future Link Technologies Plot 78 Kanjokya Street, P.

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

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
er $number * @param integer $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

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

[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, $er

[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 'includes/common.

[PHP] PHPXref is awesome!

2005-03-28 Thread Daevid Vincent
I just have to call out mad props to this project that one of our new hires pointed me at... http://phpxref.sourceforge.net/ This project is sooo sweet. For starters, it doesn't shit the bed when documenting large projects like 'PHPDoc' does. It cross references database tables. The view-sou

RE: [PHP] PHPXref is awesome!

2005-03-28 Thread Daevid Vincent
Yes! That's the point. We use PHPDoc tags in our project, but it's become so large that PHPDocumentor itself can't make the documentation anymore. Go figure. > -Original Message- > Shit this looks intense, i'll definately be having a go at this. > Does it support phpdoc tags ? -- PHP G

[PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Daevid Vincent
I have an array of objects in PHP5. Each element's key is the database row ID. I don't see a graceful way of finding the first element's key ID. So I have this... Array ( [3] => fooObject Object ( [id:protected] => 3 [model:protected] => ABC [read:

RE: [PHP] Bar/Line Graph Tool

2004-04-16 Thread Vincent Jansen
I like http://www.phplot.com/ --- Vincent Jansen [EMAIL PROTECTED] -Original Message- From: Hawkes, Richard [mailto:[EMAIL PROTECTED] Sent: vrijdag 16 april 2004 10:09 To: '[EMAIL PROTECTED]' Subject: [PHP] Bar/Line Graph Tool Good morning gang, I'm looking for a

RE: [PHP] session variables

2004-04-20 Thread Vincent DUPONT
I would do script 1 : $_SESSION['test'] = "hello world"; and in script2 : print($_SESSION['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session var

RE: [PHP] Session not working while accessing through IE on Windows 2000

2004-04-22 Thread Vincent DUPONT
Hi, I use win2k and IE 6 every day with PHP, and it works fine. I guess your problem comes from the Internet Options of IE (tools/Internet Options). As Miguel Jiménez suggested, check the cookie setting in the Internet Options. Vincent -Original Message- From: Sheni R. Meledath

[PHP] install IIS ISAPI

2004-04-22 Thread Vincent DUPONT
e HTTP authentcation, but I always add a ISAPI filter to my IIS config. Why should we avoid this?? I tried to remove the ISAPI filter and restart IIS. Everything seems Ok Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: readdir and opendir

2004-05-10 Thread Vincent DUPONT
reports that I have seen so far, it seems to be a known problem (see >http://forums.devshed.com/showthread.php?p=624872) I wonder how I could re write the opendir and readdir functions so as to implement the fopen wrappers. Any idea? vincent -Original Message- From: greg [ma

[PHP] open remote file: password problem under SMB

2004-05-10 Thread Vincent DUPONT
]/share, etc.). But what the hell should I do to use a user and password in the PHP implemetation of SMB?? Under windows, we use 'net use * \\smbserver\share password /user:username', so the user and password are not part of the URL of the file. Could someone help me? thank you vince

[PHP] readdir and opendir

2004-05-10 Thread Vincent DUPONT
Simple question : do readdir and opendir support opening HTTP urls ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Require_once return value on error?

2004-04-30 Thread Vincent DUPONT
Hello, I need to load various php files programatically and I use require_once($file_path) for this purpose. My question is : is there a way to know if the file was found or not? if the file generated an error or not? thank you vincent -- PHP General Mailing List (http://www.php.net/) To

<    1   2   3   4   5   6   7   8   9   >