-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
-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
-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
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
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
(at the risk of starting another $h!t storm like the last time)
http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because:
;-)
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
-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
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
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
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
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
-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
http://www.youtube.com/watch?v=5GpOfwbFRcs
LOLercopter
#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
-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
-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
$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
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
-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
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,
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
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.
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') ==
http://www.addedbytes.com/blog/if-php-were-british/
-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
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
-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
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
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
-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,
-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
-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
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
-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
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
-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
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:
, 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
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
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
-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
-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
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.
-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
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
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.
-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
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()
{
-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
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
-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
-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
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()
501 - 554 of 554 matches
Mail list logo