php-general Digest 15 Oct 2008 10:22:46 -0000 Issue 5736

2008-10-15 Thread php-general-digest-help
php-general Digest 15 Oct 2008 10:22:46 - Issue 5736 Topics (messages 281922 through 281942): Re: utf8/quoted printable based mail renders raw html 281922 by: Nathan Rixham 281934 by: Eric Butera Re: searching by tags 281923 by: Nathan Rixham 281924 by:

Re: [PHP] pdo and dabase schema

2008-10-15 Thread Chris
Alain Roger wrote: Hi, is there a way with PDO class to not have: - to execute a simple SET search_path TO myschema; can you alter the postgres users path? alter user username set search_path to new_schema, current_schemas(); or some variation on that. - and after to fletch another SQL

Re: [PHP] Re: Output to matrix printer

2008-10-15 Thread Per Jessen
Shawn McKenzie wrote: Matrix printer? Is this an awesomely powerful matrix of multiple printers high output printers? -Shawn http://en.wikipedia.org/wiki/Matrix_printer /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] searching by tags....

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-15 Thread Jason Pruim
On Oct 14, 2008, at 7:24 PM, Jochem Maas wrote: Colin Guthrie schreef: Jochem Maas wrote: Jason Pruim schreef: if(isset($_SESSION['userInfo']['loggedin']) $_SESSION['userInfo']['loggedin'] == TRUE) { Or, seeing as I'm a stickler for compact code: me too, I also like to be able to

Re: [PHP] Re: Brain dead... write image to file

2008-10-15 Thread Andrew Ballard
On Wed, Oct 15, 2008 at 6:24 AM, Nathan Rixham [EMAIL PROTECTED] wrote: Ryan S wrote: $uploaddir = 'C:\\wamp\\www\\ezee\\funny\\'; delimited backslashes in a string that doesn't need delimited (single quotes not double. $uploaddir = 'C:\wamp\www\ezee\funny\'; -- nathan ( [EMAIL

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Stut
On 15 Oct 2008, at 14:53, Shelley wrote: It will punish private Windows XP and Office 2003, Office 2007 users. This is extremely off-topic. Please don't abuse this list in an attempt to drive traffic to your blog. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] Output to matrix printer

2008-10-15 Thread Andrew Ballard
On Tue, Oct 14, 2008 at 6:25 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Tue, 2008-10-14 at 19:15 -0300, Miles Thompson wrote: On Tue, Oct 14, 2008 at 6:23 PM, Dušan Novaković [EMAIL PROTECTED] wrote: I have some request to sent text to matrix printer to print ticket for theater. Is it

Re: [PHP] Information on Cookies

2008-10-15 Thread Stut
On 15 Oct 2008, at 15:23, Ben Stones wrote: I've read a few videos on cookie security and it makes sense that people can modify cookie values which is a problem I'm trying to figure out to *try* and prevent. What I'll first do is at the top of the page that validates if the cookie values is

Re: [PHP] Information on Cookies

2008-10-15 Thread Ben Stones
Can you explain to me the benefits of hashing/encrypting/md5'ing cookie values? I don't see how it'd stop hackers from changing cookie values? 2008/10/15 Stut [EMAIL PROTECTED] On 15 Oct 2008, at 15:23, Ben Stones wrote: I've read a few videos on cookie security and it makes sense that

[PHP] Information on Cookies

2008-10-15 Thread Ben Stones
I've read a few videos on cookie security and it makes sense that people can modify cookie values which is a problem I'm trying to figure out to *try* and prevent. What I'll first do is at the top of the page that validates if the cookie values is in the database, but what my next problem is

Re: [PHP] Information on Cookies

2008-10-15 Thread Ian
On 15 Oct 2008 at 16:04, Ben Stones wrote: Can you explain to me the benefits of hashing/encrypting/md5'ing cookie values? I don't see how it'd stop hackers from changing cookie values? Hi, You would keep a copy of the hash on the server and check that against the submitted value. If they

Re: [PHP] Information on Cookies

2008-10-15 Thread Stut
On 15 Oct 2008, at 16:04, Ben Stones wrote: Can you explain to me the benefits of hashing/encrypting/md5'ing cookie values? I don't see how it'd stop hackers from changing cookie values? You encrypt stuff with a string that you keep secret. That string is needed to decrypt the string.

Re: [PHP] Re: Output to matrix printer

2008-10-15 Thread Shawn McKenzie
Per Jessen wrote: Shawn McKenzie wrote: Matrix printer? Is this an awesomely powerful matrix of multiple printers high output printers? -Shawn http://en.wikipedia.org/wiki/Matrix_printer /Per Jessen, Zürich Ha,ha, yes I know. My first printer was a

Re: [PHP] Information on Cookies

2008-10-15 Thread Ben Stones
Makes perfect sense. I have included this security in my script - thanks to both of you for your help! Cheers! 2008/10/15 Stut [EMAIL PROTECTED] On 15 Oct 2008, at 16:04, Ben Stones wrote: Can you explain to me the benefits of hashing/encrypting/md5'ing cookie values? I don't see how it'd

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Ryan S
AGH! Just got up, feel like I have a hangover which is not really fair because I didnt drink so dont deserve one. It really is screwed up, you pull an all nighter and when you get up you look at the code you produced and it just isnt your best work... and the question pops up, why bother?

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-15 Thread Nathan Rixham
Jason Pruim wrote: I probably should have mentioned that this was in a function to do the heavy lifting for authentication :) I just didn't paste the whole function since 90% of it worked just fine :) Now I just need to get better and separating presentation and code :) very smiley today

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-15 Thread Jason Pruim
On Oct 15, 2008, at 7:18 AM, Nathan Rixham wrote: Jason Pruim wrote: I probably should have mentioned that this was in a function to do the heavy lifting for authentication :) I just didn't paste the whole function since 90% of it worked just fine :) Now I just need to get better and

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Nathan Rixham
Ryan S wrote: $uploaddir = 'C:\\wamp\\www\\ezee\\funny\\'; delimited backslashes in a string that doesn't need delimited (single quotes not double. $uploaddir = 'C:\wamp\www\ezee\funny\'; -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites

[PHP] Brain dead... write image to file

2008-10-15 Thread Ryan S
Hey all, am feeling a bit brain dead, pulled an all nighter and would appreciate some help as have already wasted over 2hrs on this :( just not thinking straight. I got this script off the net, cant even remember where :( its basically to resize an uploaded image (i have a script that does

Re: [PHP] Information on Cookies

2008-10-15 Thread Stut
On 15 Oct 2008, at 18:21, Yeti wrote: You encrypt stuff with a string that you keep secret. That string is needed to decrypt the string. I recommend you change that string once in a while. That's never a bad idea with any secret token, but bear in mind that when you do all existing cookies

[PHP] Re: 1 last error to fix before the application is done!

2008-10-15 Thread Colin Guthrie
Jochem Maas wrote: Colin Guthrie schreef: if(!empty($_SESSION['userInfo']['loggedin'])) { if (Sess::userLoggedIn()) { /* ... :-) */ } Well, yes, that's how I do it in my apps too, but in internally in that function you may want to use the empty() call :) I agree that when checking for

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Maciek Sokolewicz
Ryan S wrote: Hey all, am feeling a bit brain dead, pulled an all nighter and would appreciate some help as have already wasted over 2hrs on this :( just not thinking straight. I got this script off the net, cant even remember where :( its basically to resize an uploaded image (i have a

Re: [PHP] Information on Cookies

2008-10-15 Thread Eric Gorr
On Oct 15, 2008, at 1:21 PM, Yeti wrote: You encrypt stuff with a string that you keep secret. That string is needed to decrypt the string. I recommend you change that string once in a while. Also, picking up a copy of: Essential PHP Security by Chris Shiflett # ISBN-10: 059600656X #

Re: [PHP] Information on Cookies

2008-10-15 Thread Yeti
You encrypt stuff with a string that you keep secret. That string is needed to decrypt the string. I recommend you change that string once in a while. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] searching by tags....

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Jay Moore
Stut wrote: On 15 Oct 2008, at 14:53, Shelley wrote: It will punish private Windows XP and Office 2003, Office 2007 users. This is extremely off-topic. Please don't abuse this list in an attempt to drive traffic to your blog. -Stut It *is* powered by PHP, Stut. :P -- PHP General

Re: [PHP] searching by tags....

2008-10-15 Thread Jochem Maas
Ashley Sheridan schreef: On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Wolf
This is extremely off-topic. Please don't abuse this list in an attempt to drive traffic to your blog. -Stut It *is* powered by PHP, Stut. :P True, but that's the ONLY PHP thing about it... OK, and the URL has PHP in it... ;) Wolf -- PHP General Mailing List

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan

Re: [PHP] searching by tags....

2008-10-15 Thread Govinda
improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to prove this 2 - Explain how I know this and show the historical

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to prove this 2 - Explain how I know this and show the

Re: [PHP] searching by tags....

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 16:38 -0400, Wolf wrote: This is extremely off-topic. Please don't abuse this list in an attempt to drive traffic to your blog. -Stut It *is* powered by PHP, Stut. :P True, but that's the ONLY PHP thing about it... OK, and the URL has PHP in

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Daniel Brown
On Wed, Oct 15, 2008 at 7:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: I think the PHP part of the URL was added by the mailing list. Short of that, I think it's just some schmuck trying to boost his/her SEO ranking. Shelly has been here for over a year, on and off, and I think it was

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Ashley Sheridan
On Wed, 2008-10-15 at 19:17 -0400, Daniel Brown wrote: On Wed, Oct 15, 2008 at 7:17 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: I think the PHP part of the URL was added by the mailing list. Short of that, I think it's just some schmuck trying to boost his/her SEO ranking.

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Daniel Brown
On Wed, Oct 15, 2008 at 7:25 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: I apologise then. I thought it was spam, sorry. Quit apologizing until you've done something wrong, Sheridan. ;-P -- /Daniel P. Brown More full-root dedicated server packages: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Ben Stones
via e-mail? lol - speaking of which doubt many would visit the site anyway :)... oh wait, the archive... is it indexed by Google? 2008/10/16 Ashley Sheridan [EMAIL PROTECTED] On Wed, 2008-10-15 at 16:38 -0400, Wolf wrote: This is extremely off-topic. Please don't abuse this list in an

Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Shelley
You are REALLY drive traffic, spam, SEO experts. They are beyond my mind. The topic being here is just because the news is each national site's cover story and every mate talked about it. 2. Not a place to DRIVE TRAFFIC. My English is still at preliminary school level, you see. (should be pirated

[PHP] Flags package for PHP?

2008-10-15 Thread Waynn Lue
I'm running some command-line scripts that are taking more and more arguments, and I'm wondering whether anyone's used a good flags package for PHP? Support for string/int/boolean arguments would be nice, otherwise I'll just hack together my own. Thanks for any advice, Waynn

Re: [PHP] Flags package for PHP?

2008-10-15 Thread Chris
Waynn Lue wrote: I'm running some command-line scripts that are taking more and more arguments, and I'm wondering whether anyone's used a good flags package for PHP? Support for string/int/boolean arguments would be nice, otherwise I'll just hack together my own.