php-general Digest 14 Jan 2009 15:27:52 -0000 Issue 5901

2009-01-14 Thread php-general-digest-help
php-general Digest 14 Jan 2009 15:27:52 - Issue 5901 Topics (messages 286293 through 286314): Re: Suggestions? 286293 by: Phpster Re: PHP, Smarty, and Text 286294 by: Phpster 286299 by: Daniel Kolbo 286301 by: Robert Cummings 286310 by: Phpster

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Thodoris
On Tue, 13 Jan 2009 15:51:01 +0200, Thodoris wrote: Hi gang, I am generating a spreadsheet using the contents of a mysql table. I guess that there is something in the data that causes iconv used in the module's script to generate this error: *Notice*: iconv() [function.iconv

Re: [PHP] php.ini

2009-01-14 Thread Thodoris
hi php lovers, I have a debian lamp stack and I want to use php to send a form to my email server Do you mean that you need to send a mail directly from a web form? If that is the case check this out: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_mail Doesn't even need

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread Thodoris
I have a problem with using crypt(), passing only one parameter (ie, no salt). When I do that, I get an empty string. When I do use a salt, it returns the expected value. Does anybody have any ideas what might be causing my problem? It only happens when I run it on my linux server, but not

Re: [PHP] php.ini

2009-01-14 Thread Stuart
2009/1/14 Thodoris t...@kinetix.gr: hi php lovers, I have a debian lamp stack and I want to use php to send a form to my email server Do you mean that you need to send a mail directly from a web form? If that is the case check this out:

Re: [PHP] Can I make EasyPHP on Windows allow remote connections?

2009-01-14 Thread clive
Rahul wrote: I have EasyPHP installed on my Windows system and can connect to the php+mysql using localhost in the browser but I was wondering if I can connect to this computer (which is at my office) from my home. I have a web address alloted to my computer at office. If that 'web

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread port23user
I figured out that I was running an older version of Suhosin. Apparently this bug is fixed in Suhosin version 0.9.23 . I upgraded and everything works great now. Thanks for the help. Thodoris wrote: If no salt is provided, PHP will auto-generate a standard two character salt by

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Nisse Engström
On Wed, 14 Jan 2009 11:33:25 +0200, Thodoris wrote: On Tue, 13 Jan 2009 15:51:01 +0200, Thodoris wrote: Hi gang, I am generating a spreadsheet using the contents of a mysql table. I guess that there is something in the data that causes iconv used in the module's script to generate

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Thodoris
?php echo bin2hex ($theData), \n; ? What's the output of: SHOW VARIABLES LIKE 'character_set%' Variable_name Value character_set_clientutf8 character_set_connectionutf8 character_set_database latin1 character_set_filesystembinary character_set_results utf8

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Phpster
Only allow a few markup tags, strip_tags() allows a limited lIst to be kept Bastien Sent from my iPod On Jan 13, 2009, at 11:18 PM, Daniel Kolbo kolb0...@umn.edu wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then

[PHP] ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Edmund Hertle
Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append() to add a new value to the array, but is there also a method to add a new key and value? And I know that I could extend the class and write my own

RE: [PHP] PHP unlink Permission Error

2009-01-14 Thread Alice Wei
Subject: RE: [PHP] PHP unlink Permission Error From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Tue, 13 Jan 2009 17:07:34 + On Tue, 2009-01-13 at 11:49 -0500, Alice Wei wrote: Subject: RE: [PHP] PHP unlink Permission Error From:

Re: [PHP] ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Edgar da Silva (Fly2k)
Did you try: $a = new ArrayObject; $a['sometest'] = 'somevalue'; ? On Wed, Jan 14, 2009 at 10:42 AM, Edmund Hertle farn...@googlemail.com wrote: Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append()

Re: [PHP] ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Nathan Nobbe
On Wed, Jan 14, 2009 at 6:18 AM, Edgar da Silva (Fly2k) silva.ed...@gmail.com wrote: Did you try: $a = new ArrayObject; $a['sometest'] = 'somevalue'; its also worth pointing out, the above syntax is available b/c ArrayObject implements the ArrayAccess interface.

[PHP] Re: ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Carlos Medina
Edmund Hertle schrieb: Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append() to add a new value to the array, but is there also a method to add a new key and value? And I know that I could extend the

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Nisse Engström
On Wed, 14 Jan 2009 13:19:31 +0200, Thodoris wrote: Variable_name Value character_set_client utf8 character_set_connection utf8 character_set_databaselatin1 character_set_filesystem binary character_set_results utf8 character_set_server latin1

[PHP] Quotes in querys

2009-01-14 Thread MikeP
Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I still have trouble with after all these years its

Re: [PHP] Re: ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Edmund Hertle
Edmund Hertle schrieb: Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append() to add a new value to the array, but is there also a method to add a new key and value? And I know that I could extend

RES: [PHP] Quotes in querys

2009-01-14 Thread Jônatas Zechim
Try session_start(); $sql = SELECT Netid FROM User WHERE Netid='.$_SESSION['phpCAS']['user'].'; -Mensagem original- De: MikeP [mailto:mpel...@princeton.edu] Enviada em: quarta-feira, 14 de janeiro de 2009 14:17 Para: php-general@lists.php.net Assunto: [PHP] Quotes in querys Hello, I

Re: [PHP] Quotes in querys

2009-01-14 Thread Robert Stankiewicz
I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this : $q = 'Select Netid from Users where Netid = ' .

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
You can only interpolate ONE level of array or object indirection in a string. WORKS: ... $foo[x] ... ... $foo-x ... FAILS: ... $foo[x][y] ... ... $foo-x-y ... //almost for sure it fails, never tried... You can use curly braces in side a string to evaluate something: WORKS: ...

Re: [PHP] Re: ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread ceo
In olden times, of PHP 3, you could for sure use -x and [x] interchangeably, as an Object then was little more than a C struct with a couple functions tacked on, as was an array. I think PHP 3 Object may actually have been implemented as a PHP array with some additional C functions on it,

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid =

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:34 AM, MikeP mpel...@princeton.edu wrote: Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Thanks, Thats the kind of help I was looking for. Mike c...@l-i-e.com wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... You can only interpolate ONE level of array or object indirection in a string. WORKS: ... $foo[x] ... ... $foo-x ... FAILS: ... $foo[x][y] ... ...

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread ceo
The charset: latin1 and the collation: latin1_swedish_ci. Trivia quiz at a MySQL presentation at my Chicago PHP User Group a few year ago comes in handy! The defaults for MySQL are actually latin1_swedish as that is the native language of the original developer, (?Monty Widenus?) This

Re: [PHP] switch vs elseif

2009-01-14 Thread tedd
At 2:18 PM -0600 1/13/09, Micah Gersten wrote: Jochem Maas wrote: switch (true) { case ($x === $y): // something break; This is a misuse of the switch statement. Switch is meant to compare values to a single variable as stated on the manual page:

Re: [PHP] Quotes in querys

2009-01-14 Thread ceo
Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an execution plan for a prepared statement that is run only once in the script is just overhead, no? Or can it actually re-use the same

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 8:41 AM, MikeP mpel...@princeton.edu wrote: Thanks, Thats the kind of help I was looking for. Mike c...@l-i-e.com wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... You can only interpolate ONE level of array or object indirection in a string.

[PHP] Basic Authentication

2009-01-14 Thread tedd
Hi gang: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would work in a .htaccess file using basic authentication? Cheers, tedd -- --- http://sperling.com

Re: [PHP] Basic Authentication

2009-01-14 Thread Stuart
2009/1/14 tedd t...@sperling.com: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would work in a .htaccess file using basic authentication? AFAIK it's an MD5 hash, nothing more

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 12:36 PM, Stuart stut...@gmail.com wrote: 2009/1/14 tedd t...@sperling.com: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would work in a .htaccess

Re: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an execution plan for a prepared statement that is run only once in the script is

Fwd: [PHP] Quotes in querys

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote: On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an execution plan... Forgive me if I'm wrong, but: Caching an

Re: [PHP] Re: ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Nathan Nobbe
On Wed, Jan 14, 2009 at 9:20 AM, Edmund Hertle edmund.her...@student.kit.edu wrote: Edmund Hertle schrieb: Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append() to add a new value to the

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
At 12:51 PM -0500 1/14/09, Andrew Ballard wrote: On Wed, Jan 14, 2009 at 12:36 PM, Stuart stut...@gmail.com wrote: 2009/1/14 tedd t...@sperling.com: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an

Re: [PHP] Basic Authentication

2009-01-14 Thread ceo
What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you just toss MD5s in there, it should work,

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Daniel Kolbo
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13,

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 09:08 -1000, Daniel Kolbo wrote: Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using

RE: [PHP] PHP unlink Permission Error

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 07:48 -0500, Alice Wei wrote: Subject: RE: [PHP] PHP unlink Permission Error From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Tue, 13 Jan 2009 17:07:34 + On Tue, 2009-01-13 at 11:49 -0500, Alice Wei wrote:

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you just toss MD5s in there, it should work, I think,

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I

Re: Fwd: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 10:11 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry k...@kyleterry.com wrote: On Wed, Jan 14, 2009 at 9:11 AM, c...@l-i-e.com wrote: Doesn't anybody use prepared statements these days? It even helps MySQL AND Oracle cache an

Re: [PHP] Basic Authentication

2009-01-14 Thread TG
There are a number of online tools for creating the proper htaccess and htpasswd files for basic auth. Here's a couple (forget which one I used last time I needed it, both have 'visited' links in my browser): http://www.wmtips.com/tools/htpasswd-generator/

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Edmund Hertle
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13,

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 2:34 PM, tedd tedd.sperl...@gmail.com wrote: What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my

Re: [PHP] Basic Authentication

2009-01-14 Thread Edmund Hertle
2009/1/14 tedd tedd.sperl...@gmail.com What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you

Re: [PHP] Quotes in querys

2009-01-14 Thread Frank Stanovcak
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1231962521.3613.13.ca...@localhost.localdomain... On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string

Re: [PHP] Basic Authentication

2009-01-14 Thread Shawn McKenzie
tedd wrote: What it is depends on what encryption routines you have installed. The algorithm to authenticate detects the algorithm based on the hash. 32-char : MD5 $1$ : SHA-1 $2$ : SHA-2 etc. (Apologies if I got my tokens/algorithms wrong) If you just toss MD5s in there, it

Re: [PHP] Quotes in querys

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote: Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1231962521.3613.13.ca...@localhost.localdomain... On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote: Hello, I am trying to get the following to work: Select Netid from

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread ceo
One way to balance the author's need to have nice-looking output, and your need to keep the content/html under control is to provide the authors with a variety of template layouts with varying number/placement/sizes of images and blocks of text. Build a half-dozen of them, allow only ASCII

[PHP] Zend Framework...where to start?

2009-01-14 Thread jcorry
I've been reading about these great new 'frameworks' for PHP development. The most similar experience I have so far is using PEAR/Smarty in application development. I am becoming very interested in adding one (or more) of these frameworks to my work existence. I'm leaning toward the Zend

Re: [PHP] Zend Framework...where to start?

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 3:36 PM, jco...@gmail.com wrote: I've been reading about these great new 'frameworks' for PHP development. The most similar experience I have so far is using PEAR/Smarty in application development. I am becoming very interested in adding one (or more) of these

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread VamVan
On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for several years now and I am happy with this division of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Nathan Rixham
VamVan wrote: On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for several years now and I am happy with this division of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread John Corry
Well, bummer. I *seriously* need to divine a way to increase my efficiency both immediately and for the long term as I maintain tomorrow the applications I build today. For the new-to-frameworks, is there a better/easier framework to use that will streamline the development process from the

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Daevid Vincent
Not to start a Holy War (as these to framework or not to framework debates often turn into), but I personally had a horrible experience with using frameworks. I was forced to use Symfony at my last job and it was so cumbersome and slow to do even the simplest things. The whole MVC thing can be

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Skip Evans
John Corry wrote: For the new-to-frameworks, is there a better/easier framework to use that will streamline the development process from the beginning? I've been using my own I developed from the ground up for the past couple years, but have recently looked at cakePHP and I think it might

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 4:30 PM, John Corry jco...@gmail.com wrote: Well, bummer. I *seriously* need to divine a way to increase my efficiency both immediately and for the long term as I maintain tomorrow the applications I build today. For the new-to-frameworks, is there a better/easier

Re: [PHP] Quotes in querys

2009-01-14 Thread Chris
It is over head, but it caches the execution plan for multiple runs of the script. So different users with different data will use the same cached query on the database. Saving processing time. It also prevents SQL injection on the fly because you are indicating what data type each place

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent dae...@daevid.com wrote: http://daevid.com It appears your browser does not support some of the advanced features this site requires. That is pretty enteprisey! ;D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 13:39 -0800, Daevid Vincent wrote: Not to start a Holy War (as these to framework or not to framework debates often turn into), but I personally had a horrible experience with using frameworks. I was forced to use Symfony at my last job and it was so cumbersome and slow

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 13:39 -0800, Daevid Vincent wrote: Not to start a Holy War (as these to framework or not to framework debates often turn into), but I personally had a horrible experience with using frameworks. I was forced to use Symfony at my last job and it was so cumbersome and slow

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent dae...@daevid.com wrote: http://daevid.com It appears your browser does not support some of the advanced features this site requires. That is pretty enteprisey! ;D I got the same

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent dae...@daevid.com wrote: http://daevid.com It appears your browser does not support some of the advanced features this site

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 17:03 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent dae...@daevid.com wrote: http://daevid.com It appears your

[PHP] Security question

2009-01-14 Thread Frank Stanovcak
This is mostly to make sure I understand how sessions are handled correctly. As far as sessions are concerned the variable data is stored on the server (be it in memory or temp files), and never transmitted accross the net unless output to the page? So this means I should be able to store the

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings rob...@interjinn.com wrote: On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent dae...@daevid.com wrote: http://daevid.com It

Re: [PHP] Security question

2009-01-14 Thread VamVan
On Wed, Jan 14, 2009 at 2:22 PM, Frank Stanovcak blindspot...@comcast.netwrote: This is mostly to make sure I understand how sessions are handled correctly. As far as sessions are concerned the variable data is stored on the server (be it in memory or temp files), and never transmitted

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings rob...@interjinn.com wrote: On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: On Wed, Jan 14, 2009 at

[PHP] HTML pages are faster then php?

2009-01-14 Thread Lamp Lists
hi, as far as I know (at least I was told so) html page will download faster then the same page made with php getting the same info from mysql, right? let's pretend we are building php/mysq based website of one football team. there are pages of every player, about the team, games etc. in admin

Re: [PHP] HTML pages are faster then php?

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 14:34 -0800, Lamp Lists wrote: hi, as far as I know (at least I was told so) html page will download faster then the same page made with php getting the same info from mysql, right? let's pretend we are building php/mysq based website of one football team. there are

Re: [PHP] HTML pages are faster then php?

2009-01-14 Thread Lamp Lists
From: Ashley Sheridan a...@ashleysheridan.co.uk To: Lamp Lists lamp.li...@yahoo.com Cc: php-general@lists.php.net Sent: Wednesday, January 14, 2009 4:47:28 PM Subject: Re: [PHP] HTML pages are faster then php? On Wed, 2009-01-14 at 14:34 -0800, Lamp Lists wrote:

[PHP] Re: HTML pages are faster then php?

2009-01-14 Thread Nathan Rixham
Lamp Lists wrote: hi, as far as I know (at least I was told so) html page will download faster then the same page made with php getting the same info from mysql, right? let's pretend we are building php/mysq based website of one football team. there are pages of every player, about the team,

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Paul M Foster
On Wed, Jan 14, 2009 at 04:30:59PM -0500, John Corry wrote: Well, bummer. I *seriously* need to divine a way to increase my efficiency both immediately and for the long term as I maintain tomorrow the applications I build today. For the new-to-frameworks, is there a better/easier

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know the password and I know the encoded result -- what I

Re: [PHP] Basic Authentication

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 18:17 -0500, tedd wrote: At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Daevid Vincent
If anything this strengthens my point... First of all, that is my PERSONAL site (notice it is my NAME), so it is NOT enterprise or SaaS. Second it uses the www.winlike.net Javascript FRAMEWORK (which I heavily manipulated in PHP to make the menu dynamic, adding a tertiary menu level and

Re: [PHP] Basic Authentication

2009-01-14 Thread Chris
tedd wrote: At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know the password and I know the encoded result

Re: [PHP] Basic Authentication

2009-01-14 Thread Edmund Hertle
2009/1/15 tedd tedd.sperl...@gmail.com At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem. You see, I know the password

Re: [PHP] Basic Authentication

2009-01-14 Thread TG
Could it be that you tested the correct algorithm but didn't use the correct salt or some other permutation to receive the same encoded result? -TG - Original Message - From: tedd tedd.sperl...@gmail.com To: Shawn McKenzie nos...@mckenzies.net, php-general@lists.php.net Date: Wed, 14

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Daevid Vincent
On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings rob...@interjinn.com wrote: On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: On Wed, 2009-01-14 at

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Daevid Vincent
On Wed, 2009-01-14 at 17:59 -0500, Paul M Foster wrote: On Wed, Jan 14, 2009 at 04:30:59PM -0500, John Corry wrote: Well, bummer. I *seriously* need to divine a way to increase my efficiency both immediately and for the long term as I maintain tomorrow the applications I build

[PHP] Senior Software Engineer / PHP Developer Job opportunity in Boulder, CO

2009-01-14 Thread Nick Gasparro
Hi, I am Looking for a Senior Software Engineer to join our dynamic and growing Internet-based company. The qualified candidate will expand our web-based platform, building new features and products. You will effectively design, develop, and deploy applications based on open-source

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Ashley Sheridan
On Wed, 2009-01-14 at 15:47 -0800, Daevid Vincent wrote: On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings rob...@interjinn.com wrote: On Wed, 2009-01-14

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 4:06 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2009-01-14 at 15:47 -0800, Daevid Vincent wrote: On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14,

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent dae...@daevid.com wrote: On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings rob...@interjinn.com wrote: On Wed,

[PHP] Re: Re: Re: Php and CSS where to put it

2009-01-14 Thread Michelle Konzack
Hello Ashley, Am 2009-01-13 22:14:53, schrieb Ashley Sheridan: Yeah. Now my development goes like this: 1. Design for Firefox 2. Fix for Opera, Safari et al 3. Fix for IE But generally speaking, if it works in Firefox, it'll most likely behave itself in everything except IE

[PHP] Re: Holy crap

2009-01-14 Thread Michelle Konzack
Am 2009-01-13 20:22:42, schrieb Daniel Brown: On Mon, Jan 12, 2009 at 14:30, Robert Cummings rob...@interjinn.com wrote: 2.0 is the new beta... what did you think Web 2.0 was all about? In Q3 2009, Microsoft is improving on that with Web 2.11 for Workgroups. I had W?? 3.11 for

Re: [PHP] Re: Re: Re: Php and CSS where to put it

2009-01-14 Thread Ashley Sheridan
On Thu, 2009-01-15 at 01:42 +0100, Michelle Konzack wrote: Hello Ashley, Am 2009-01-13 22:14:53, schrieb Ashley Sheridan: Yeah. Now my development goes like this: 1. Design for Firefox 2. Fix for Opera, Safari et al 3. Fix for IE But generally speaking, if it works

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 6:17 PM, tedd tedd.sperl...@gmail.com wrote: At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: As others have said, use crypt(). http://php.net/manual/function.crypt.php has Example #2 Using crypt() with htpasswd. Thanks, but that doesn't really solve my problem.

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 7:26 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent dae...@daevid.com wrote: On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera eric.but...@gmail.com wrote: On Wed, Jan 14,

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Daevid Vincent
Lol, on your resumé page, the popup says you're not a Java man, but then the actual resumé says you are... :p No. I wrote Java for 3.5 years at WildTangent, a company I founded as employee #2 back in 1998, and left once I felt it was starting to become sketchy and we had grown to over 250

[PHP] program to test php security

2009-01-14 Thread paragasu
one of my client says his company do have a program to test php code for common programming security problem like sql injection etc i am curious but he do not want to tell what the program is. do this program exists? what is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 5:17 PM, Daevid Vincent dae...@daevid.com wrote: Lol, on your resumé page, the popup says you're not a Java man, but then the actual resumé says you are... :p No. I wrote Java for 3.5 years at WildTangent, a company I founded as employee #2 back in 1998, and

Re: [PHP] program to test php security

2009-01-14 Thread Chris
paragasu wrote: one of my client says his company do have a program to test php code for common programming security problem like sql injection etc i am curious but he do not want to tell what the program is. do this program exists? what is it? https://chorizo-scanner.com/

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Benjamin Hawkes-Lewis
On 14/1/09 07:56, Robert Cummings wrote: Strip all tags except bold and italics. Then replaceb withstrong andi withem since the former tags are deprecated. Actually, b and i have not been formally deprecated in any standard. The closest thing to a prohibition on these elements is WCAG

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Paul M Foster
On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: Not to start a Holy War (as these to framework or not to framework debates often turn into), but I personally had a horrible experience with using frameworks. I was forced to use Symfony at my last job and it was so

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Kyle Terry
On Wed, Jan 14, 2009 at 6:17 PM, Paul M Foster pa...@quillandmouse.comwrote: On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: Not to start a Holy War (as these to framework or not to framework debates often turn into), but I personally had a horrible experience with

  1   2   >