Re: [PHP] include selectively or globally?

2012-08-28 Thread David Harkness
On Tue, Aug 28, 2012 at 12:11 PM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 6:55 PM, David Harkness > wrote: > > On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: > >> > >> First of all, I believe [A] PHP is smart enough to not generate bytecode > >> for functions that are not used in th

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 3:07 PM, Larry Garfield wrote: > Only semi-joking line that's been making the rounds lately: > > If you want to build a blog, use Wordpress. > If you want to build Wordpress, use Drupal. > If you want to build Drupal, use Symfony2. Here's another semi-joking line :) If bu

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Larry Garfield
On 8/20/12 3:36 AM, Simon Schick wrote: One thing I also really like at the TYPO3-philolsophy: If someone finds a security-issue he should immediately get in contact with the developers (of the extension and the TYPO3 security team) and discuss the issue with them. They decide how critical the b

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 3:28 PM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson wrote: > > Finally, you're the first one that actually has measured something. > You should redo your test with real world files, because in real world > functions aren't that small. In terms

Re: [PHP] PHP to XLS Security Alert issue

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 5:56 PM, admin wrote: > I am exporting to a XLS file and the file does export, but when I open the > file Microsoft is giving a Excel Security Notice. > > I am sure there is something in the header that is missing or causing this > problem. > > > > header("Pragma: public");

Re: [PHP] FoxPro Table Structure

2012-08-28 Thread Bastien
Bastien Koert On 2012-08-28, at 11:52 AM, Floyd Resler wrote: > On Aug 28, 2012, at 11:32 AM, Paul M Foster wrote: > >> On Tue, Aug 28, 2012 at 10:46:24AM -0400, Floyd Resler wrote: >> >>> Is there a way in PHP to get the structure of a FoxPro table (using >>> ODBC) without having to query

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson wrote: > On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt wrote: >> On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson >> wrote: >>> On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete wrot

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 6:55 PM, David Harkness wrote: > On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: >> >> First of all, I believe [A] PHP is smart enough to not generate bytecode >> for functions that are not used in the current file. Think about the >> fact that you can write a functio

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Larry Garfield
Only semi-joking line that's been making the rounds lately: If you want to build a blog, use Wordpress. If you want to build Wordpress, use Drupal. If you want to build Drupal, use Symfony2. There is much wisdom in those lines. --Larry Garfield, an openly biased Drupal core developer On 8/19/1

[PHP] Re: [modauthkerb] Cannot retrieve KRB5CCNAME if logged in with kerberos ticket

2012-08-28 Thread Benjamin Kahn
On Tue, 2012-08-28 at 09:07 -0400, Mauricio Tavares wrote: > > https://bugzilla.redhat.com/show_bug.cgi?id=687975 > > mod_auth_kerb using krb5passwd and keepalive and credential delegation > > loses delegation after first request on connection > > > Good question, because it sure looks rather

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson wrote: >> On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: >>> On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete >>> wrote: > > First of all, I believe PHP is smart enough to not generate

Re: [PHP] MSSQL Stored Proc

2012-08-28 Thread Andrew Ballard
On Tue, Aug 28, 2012 at 1:03 PM, Phillip Baker wrote: > Greetings all, > > I am having some trouble with running a stored proc on an MSSQL DB. > I am new to using MSSQL. > > > > $link = mssql_connect($server, $db, $password); > > > > if(!$link){ > > die('Error connecting to MSSQL d

[PHP] MSSQL Stored Proc

2012-08-28 Thread Phillip Baker
Greetings all, I am having some trouble with running a stored proc on an MSSQL DB. I am new to using MSSQL. $link = mssql_connect($server, $db, $password); if(!$link){ die('Error connecting to MSSQL database at '.$server); } else { $storedproc = "SP_DialerVa

Re: [PHP] include selectively or globally?

2012-08-28 Thread David Harkness
On Tue, Aug 28, 2012 at 4:39 AM, Matijn Woudt wrote: > First of all, I believe [A] PHP is smart enough to not generate bytecode > for functions that are not used in the current file. Think about the > fact that you can write a function with errors, which will run fine > until you call the functio

[PHP] PHP to XLS Security Alert issue

2012-08-28 Thread admin
I am exporting to a XLS file and the file does export, but when I open the file Microsoft is giving a Excel Security Notice. I am sure there is something in the header that is missing or causing this problem. header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalid

Re: [PHP] FoxPro Table Structure

2012-08-28 Thread Floyd Resler
On Aug 28, 2012, at 11:32 AM, Paul M Foster wrote: > On Tue, Aug 28, 2012 at 10:46:24AM -0400, Floyd Resler wrote: > >> Is there a way in PHP to get the structure of a FoxPro table (using >> ODBC) without having to query the table? I know I can get it by >> getting a row from the table and usin

Re: [PHP] FoxPro Table Structure

2012-08-28 Thread Paul M Foster
On Tue, Aug 28, 2012 at 10:46:24AM -0400, Floyd Resler wrote: > Is there a way in PHP to get the structure of a FoxPro table (using > ODBC) without having to query the table? I know I can get it by > getting a row from the table and using odbc_field_type but I'd rather > not have to query an enti

[PHP] FoxPro Table Structure

2012-08-28 Thread Floyd Resler
Is there a way in PHP to get the structure of a FoxPro table (using ODBC) without having to query the table? I know I can get it by getting a row from the table and using odbc_field_type but I'd rather not have to query an entire table since there is no LIMIT command in FoxPro. I've looked and

[PHP] Re: [modauthkerb] Cannot retrieve KRB5CCNAME if logged in with kerberos ticket

2012-08-28 Thread Mauricio Tavares
On Mon, Aug 27, 2012 at 7:14 PM, Benjamin Kahn wrote: > Maybe you are hitting this bug? > > https://bugzilla.redhat.com/show_bug.cgi?id=687975 > mod_auth_kerb using krb5passwd and keepalive and credential delegation > loses delegation after first request on connection > Good question, becaus

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 1:16 AM, Larry Garfield wrote: > On 8/27/12 6:11 PM, Matijn Woudt wrote: > >>> You should never be calling require() yourself. Just follow the PSR-0 >>> naming standard and use an autoloader, then you don't have to even think >>> about it. There are many existing autoload

Re: [PHP] include selectively or globally?

2012-08-28 Thread Matijn Woudt
On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson wrote: > On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: >> On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete >> wrote: >>> >>> Now, the question is... should you use a global include that points to >>> this library - across the board - so tha

[PHP] Who is responsible for NFD or NFC formated UTF8 text? PHP, my application or the system-administrator?

2012-08-28 Thread Simon Schick
Hi, all Yesterday I ran into a big issue I didn't know about before: There are many ways in UTF8 to save the same character. This applies to all characters that can be combined of other characters. An example for that is the German umlaut ö. In theory it can be saved simply as ö or it can be save

[PHP] Re: [PHP-DEV] Separate apc-caches for each fpm-pool

2012-08-28 Thread Simon Schick
Sorry, I first posted it with the wrong subject ([PHP-DEV] instead of [PHP]) http://news.php.net/php.general/318898 On Mon, Aug 20, 2012 at 11:44 AM, Simon Schick wrote: > Hi, all > > Not to get the bugfix https://bugs.php.net/bug.php?id=57825 too much > off-topic, I write this question in the ma

[PHP] Separate apc-caches for each fpm-pool

2012-08-28 Thread Simon Schick
Hi, all Not to get the bugfix https://bugs.php.net/bug.php?id=57825 too much off-topic, I write this question in the mailinglist here: Taking the case I have two fpm-pools on different sockets - the first pool is responsible for www.example1.com and the second one for www.example2.com. If www.ex