Re: [PHP] strtotime woes

2010-05-05 Thread Peter Lind
-results.html and the responses. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Can't find my error

2010-05-05 Thread Peter Lind
viewing a product. 26.             if(isset($_GET['ProductID'])) 27.             $this-mSelectedProduct = (init)$_GET['ProductID']; pretty sure (init) is not a valid cast ... Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http

Re: [PHP] Getting source from remote file

2010-05-06 Thread Peter Lind
On 6 May 2010 10:47, Auto-Deppe C. Hänsel c.haen...@auto-deppe.de wrote: Hi guys and girls, okay, this is a dumbnut question I wouldn't bother asking but I really did hit a spot now where I am totally wedged up in my head and can't think straight anymore... so the, I bet easy, answer to

Re: [PHP] Getting source from remote file

2010-05-06 Thread Peter Lind
it in UTF-8. But utf8_de/encode won't help me there, I'm afraid. http://dk2.php.net/manual/en/function.mb-convert-encoding.php might be of help. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51

Re: [PHP] simplexml choking on apparently valid XML

2010-05-08 Thread Peter Lind
On 8 May 2010 00:39, Nathan Nobbe quickshif...@gmail.com wrote: hmm, both the strings seem to work fine on my laptop: +1. Have no problem with either string -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51

Re: [PHP] xpath help

2010-05-09 Thread Peter Lind
... How do I get at bar2? I tried everything, based on an xpath from Firebug (Firefox plugin), but kept getting NULL. try //table//font - that should give you all the font elements in table elements. Given your layout, you're then looking for $list-item(3) Regards Peter -- hype WWW: http

Re: [PHP] __call and recursion

2010-05-09 Thread Peter Lind
in ... your __call() method getting called again. You need to map the $method to whichever class methods you *actually* want to call, instead of blindly trying to reissue the call. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http

Re: [PHP] __call and recursion

2010-05-09 Thread Peter Lind
On 9 May 2010 23:56, Nathan Nobbe quickshif...@gmail.com wrote: On Sun, May 9, 2010 at 3:25 PM, Peter Lind peter.e.l...@gmail.com wrote: On 9 May 2010 23:21, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've defined a __call() method inside a class.  Within the __call() method (after

Re: [PHP] PHP Encoder like IonCube

2010-05-10 Thread Peter Lind
it be easier to offer your application as a system that only you host. That way, the end-user never gets to see your PHP code. Not to mention: if it runs, it can be broken. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http

Re: [PHP] PHP Application Structre

2010-05-10 Thread Peter Lind
Option 1 with option 2 as a sidedish. Option 3 is a nightmare in my experience - a proper MVC approach is much better to work, maintain and assure the security of. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com

Re: [PHP] PHP Application Structre

2010-05-12 Thread Peter Lind
the job really well. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP Encoder like IonCube

2010-05-12 Thread Peter Lind
Output looks pretty typical for something encrypted/obfuscated. As the script will run, it needs to unpack itself ... so you can write automated unpackers for this kind of thing if you want. Best go with Phpsters advice of the contract, you'd be a lot better off (assuming the court system works).

Re: [PHP] PHP Encoder like IonCube

2010-05-12 Thread Peter Lind
you're asking then. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP Application Structre

2010-05-12 Thread Peter Lind
On 12 May 2010 17:07, Paul M Foster pa...@quillandmouse.com wrote: Because your public internet server disables its use. And once more I'm reminded of just how happy I am with my VPS and my dedicated server. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http

Re: [PHP] PHP Application Structre

2010-05-12 Thread Peter Lind
complex. In short: using mod_rewrite for url rewriting is not overkill - it's using the proper tool for the job. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51

Re: [PHP] stristr query trouble

2010-05-13 Thread Peter Lind
as they are much more efficient. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-14 Thread Peter Lind
the best bet - just remember to record last accessed time so anyone not accessing for more than 15-20 minutes will succeed if trying to log in again. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51

Re: [PHP] problem with passing-by-reference

2010-05-14 Thread Peter Lind
($r) {  return $r['result']; } function goodResult($r) {  $r2 = array (  'isMetaForFunc' = true,        'result' = $r  );  return $r2; } After a quick glance, I can't actually see any modifications to $wm in this code. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk

Re: [PHP] jquery password problem

2010-05-14 Thread Peter Lind
. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] jquery password problem

2010-05-14 Thread Peter Lind
guessing you don't have any spaces inside the data you're dealing with. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http

Re: [PHP] what's the point of _autoload?

2010-05-14 Thread Peter Lind
files and classes so you can parse the class name and then know where to grab the file from (Zend naming for instance: Zend_Db_Table_Abstract gets parsed to Zend/Db/Table/Abstract.php). So no, you don't have to stress the server a lot - but you do have to do some manual work. Regards Peter -- hype

Re: [PHP] A weird problem that probably has a comma in the wrong spot....

2010-05-16 Thread Peter Lind
my comma or semicolon? :) Your dbconnect function is not returning a value, defaulting to a null return value. That means the or statement runs the die statement - even though you're connecting. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: Re[2]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Peter Lind
to this besides any two-step sophisticated trick like case changing? Thanks! Use better regexes: either match for word endings or use a delimiter in your markers (i.e. ###BOLD### instead of BOLD). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: Re[4]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Peter Lind
On 18 May 2010 12:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Hm... I see I need to specify what I'm really doing. Actually, I need to change the letters in the text. It's a famous and ancient crypting method: you divide the alphabet making two parts, then you change the letters

Re: Re[4]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Peter Lind
On 18 May 2010 13:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote: On 18 May 2010 12:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Hm... I see I need to specify what I'm really doing. Actually, I need to change

Re: Re[4]: [PHP] preg_replace: avoiding double replacements

2010-05-18 Thread Peter Lind
On 18 May 2010 13:43, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-05-18 at 13:46 +0200, Peter Lind wrote: On 18 May 2010 13:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote: On 18 May 2010 12:35, Andre Polykanine

Re: [PHP] Email from php

2010-05-19 Thread Peter Lind
a good mail library like Swiftmailer and point that to the local MTA. Typically, that's about the setup you need to do (if you keep things simple, that is: if you want to mess about with postfix/exim you'll see days or months go by). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk

Re: [PHP] How to prevent duplicate record insertion after refreshing php page

2010-05-19 Thread Peter Lind
consider using form tokens, so you don't get caught by double submits and cross site form posts, etc. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype

Re: [PHP] Question about a security function

2010-05-20 Thread Peter Lind
better to use an existing tool like htmlpurifier. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 /hype -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: PDO don't know which is mysql server charset?

2010-05-21 Thread Peter Lind
with: * database encoding * database connection encoding * php internal encoding * output encoding Messing up just *one* of these will give bad output - so you need to make sure that all of them are aligned. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http

Re: [PHP] Re: PDO don't know which is mysql server charset?

2010-05-21 Thread Peter Lind
On 21 May 2010 10:47, Lester Caine les...@lsces.co.uk wrote: Peter Lind wrote: The problem here is that PHP still does not know how to handle UTF8  properly It's not*just*  that PHP isn't handling utf8 perfectly. Encoding between database and server is a rather complex issue, you're

Re: [PHP] determining time difference between two timestamp fields.

2010-05-25 Thread Peter Lind
(starttime) / 60. That's the difference in minutes. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] determining time difference between two timestamp fields.

2010-05-25 Thread Peter Lind
that your timestamp is of the -mm-dd HH:ii:ss form, you need to do (strtotime([submit_timestamp]) - strtotime($row[login_timestamp]))/60. Regards Peter On Tue, May 25, 2010 at 10:01 AM, Peter Lind peter.e.l...@gmail.com wrote: On 25 May 2010 15:55, Bruce Gilbert webgu...@gmail.com wrote: Here

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
(and my apologies if I got it completely wrong :) ). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
On 27 May 2010 17:57, la...@garfieldtech.com la...@garfieldtech.com wrote: On 5/27/10 10:43 AM, Peter Lind wrote: You're overriding the function. IDEs should *not* show the parent documentation, because the parent function does *not* get called. It only gets called if you do a specific parent

Re: [PHP] Method documentation

2010-05-27 Thread Peter Lind
On 27 May 2010 18:21, la...@garfieldtech.com la...@garfieldtech.com wrote: On 5/27/10 11:13 AM, Peter Lind wrote: I'm overriding the method because I want to change the *implementation*.  The *interface* of it, which is documented in the docblock, should not change and it's a bug

Re: [PHP] Credit Card encryption

2010-05-30 Thread Peter Lind
not be able to do as good a job as these. The question to ask is not: how to store credit card information securely? The question to ask is: do I really want to be the next person in the internet spotlight because my setup turned out to have a security hole I overlooked? Regards Peter -- hype WWW: http

Re: [PHP] Credit Card encryption

2010-06-01 Thread Peter Lind
in the details on a monthly basis? If 1) then the above points apply and you should not store the data, period. If 2) then I would assume the situation is somewhat different - though, not knowing the laws from the US I wouldn't really know. Regards Peter -- hype WWW: http://plphp.dk / http

Re: [PHP] Credit Card encryption

2010-06-01 Thread Peter Lind
On 1 June 2010 15:58, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 01, 2010 at 09:52:54AM +0200, Peter Lind wrote: Just wondering: seems there's a bit of a misunderstanding going on here. Are you talking about storing credit card information in a way such that customers can do

Re: [PHP] regular expression

2010-06-01 Thread Peter Lind
On 1 June 2010 17:33, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote: $re1 = '/^[a-z]++$/i'; $re2 = '/^[a-z ]++$/i'; -- - Richard Quadling Standing on the shoulders of some very clever giants! EE :

Re: [PHP] Preg Match Problem

2010-06-02 Thread Peter Lind
delimiter '/' Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Security Issue

2010-06-07 Thread Peter Lind
it. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty() and method return values

2010-06-07 Thread Peter Lind
. If you're checking the return value from a function, just do if ($class-method()). The return value will be cast to bool - look here for the conversions: http://dk2.php.net/manual/en/language.types.boolean.php Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http

Re: [PHP] Battle of Spam

2010-06-07 Thread Peter Lind
(and you should possibly see other equally interesting signs, such as referrer). Also ... if you're letting users specify an email address to send to as well as content and you don't make sure to authenticate users, you're really asking to get abused. Regards Peter -- hype WWW: http://plphp.dk

Re: [PHP] Re: DOMDocument throws Unexpected end tag error when loading valid HTML

2010-06-08 Thread Peter Lind
Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array key's: which is correct?

2010-06-08 Thread Peter Lind
:) Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array key's: which is correct?

2010-06-08 Thread Peter Lind
On 8 June 2010 16:53, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-06-08 at 16:44 +0200, Peter Lind wrote: On 8 June 2010 16:38, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-06-08 at 10:35 -0400, Paul M Foster wrote: On Tue, Jun 08, 2010 at 09:38:58AM

Re: [PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-12 Thread Peter Lind
;error_append_string = /font  394 error_append_string = Did you check the html_errors directive? Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General

Re: [PHP] Why is there HTML in the error_log output? Please make it stop.

2010-06-12 Thread Peter Lind
On 12 June 2010 11:23, Peter Lind peter.e.l...@gmail.com wrote: On 12 June 2010 01:17, Daevid Vincent dae...@daevid.com wrote: I'm trying to clean up some code and have been looking at error_log output and they all look like this: [11-Jun-2010 23:04:54] font color='red'bIn /var/www

Re: [PHP] howto run sql script with php?

2010-06-13 Thread Peter Lind
the input file and separate the queries... which is difficult since the syntax can be quite complex. Use mysqli - it supports running multiple queries at once. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51

Re: [PHP] $_SERVER['REMOTE_ADDR'] and sql injection

2010-06-23 Thread Peter Lind
On 23 June 2010 08:53, Tanel Tammik keevit...@gmail.com wrote: Hi, is there a vulnerability with using $_SERVER['REMOTE_ADDR'] in sql queries? With any and all input to sql queries: escape the input. Then you don't have to ask the question. Regards Peter -- hype WWW: http://plphp.dk / http

Re: [PHP] How to store encrypted data and how to store the key?

2010-06-23 Thread Peter Lind
nothing foolproof. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to store encrypted data and how to store the key?

2010-06-23 Thread Peter Lind
strict requirements on how security should be implemented. You'll have to follow those and not other schemes that may be more or less secure. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http

Re: [PHP] How to store encrypted data and how to store the key?

2010-06-23 Thread Peter Lind
to stop me from exploiting the web-server and then sending *bad data/commands* to the app server? But maybe I'm taking this too far: are you only looking at security in terms of storage? I.e. is this merely a question of avoiding dumps of the data? Regards Peter -- hype WWW: http://plphp.dk / http

Re: [PHP] in_array - what the...

2010-06-25 Thread Peter Lind
of array_keys(). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
variable a bit, as it could lead to issues down the line later. Maybe limit the string to patterns you expect for an image URL. Thanks, Ash http://www.ashleysheridan.co.uk Might be quicker to do with a .htaccess file - you can avoid loading php at all. Regards Peter -- hype WWW: http://plphp.dk

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: Hi, I'm making a Facebook

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Peter Lind
On 25 June 2010 21:02, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: On 25 June 2010 19:35, Ashley

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Peter Lind
insist on giving him 15 minutes of fame by emailing back and forth about him. I'd suggest no further emails from anyone with regards to this person, just set up email filters to block anything from that address. Anything else just serves his purpose. Regards Peter -- hype WWW: http://plphp.dk

Re: [PHP] PHP QPay

2010-06-29 Thread Peter Lind
Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
advisable. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
On 1 July 2010 15:02, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a php form processing question. I've got

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Peter Lind
On 1 July 2010 15:28, Peter Lind peter.e.l...@gmail.com wrote: On 1 July 2010 15:02, Bob McConnell r...@cbord.com wrote: From: Peter Lind On 1 July 2010 14:38, Bob McConnell r...@cbord.com wrote: From: Adam Richardson On Wed, Jun 30, 2010 at 9:16 PM, David Mehler dave.meh...@gmail.com

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Peter Lind
at the end of this with http://dk2.php.net/manual/en/function.checkdate.php or something similar. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Peter Lind
On 1 July 2010 23:50, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-07-01 at 23:48 +0200, Peter Lind wrote: On 1 July 2010 23:40, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-07-01 at 14:26 -0700, Don Wieland wrote: In one of my forms, I am building

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
for no gain. Let's also not forget radio buttons that *by design* should have the same name - if they don't, they don't work properly. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com

[PHP] filter_var_array: apply multiple filters to one field

2010-07-02 Thread Peter Lafferty
Is there any way to apply multiple filters to one field using filter_var_array? Basically I have an email field which I want to sanitize and validate. The docs and any sites I find only tell how to apply one filter at a time using filter_var_array. Regards, Peter Lafferty Software

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r...@cbord.com wrote on 07/02/2010 08:53:30 AM: Arguments against using/dismissing the name attribute in tags is simply nonsense. This

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Peter Lind
On 2 July 2010 20:03, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 2 July 2010 19:52, Adam Richardson simples...@gmail.com wrote: On Fri, Jul 2, 2010 at 12:28 PM, kirk.john...@zootweb.com wrote: Bob McConnell r

Re: [PHP] Inner join woes... and sweet tea!

2010-07-05 Thread Peter Lind
in table a you'll get the entire table b joined on. You need to specify how the tables you're joining together are related. Something like SELECT a.row FROM a JOIN b ON b.a_id = a.id Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind

Re: [PHP] php -l - does it find *anything*?

2010-07-06 Thread Peter Lind
of compiled PHP!) so some things might only be picked up by unit testing. Yeah, unit testing is definitely the way to go, +1 on that idea. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http

Re: [PHP] PHP Pill

2010-07-17 Thread Peter Lind
On the Mac, the length of varialbe old string is 44 and new string is 38. This is all happening inside of FileMaker... I will test the PHP code inside a web browser on both plaforms to see what happens. --Rick Windows uses two characters for newlines, mac uses one. Just a guess. Regards Peter

Re: [PHP] eval and HEREDOC

2010-07-21 Thread Peter Lind
you depends on what kinds of templates you're making and for what purpose Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net

Re: [PHP] PDO and UPDATE problem

2010-07-21 Thread Peter Lind
-prepare('UPDATE  '. TBL_USERS .' SET date_last_action=:updateDate WHERE id=:userId'); Try without the extra quotation mark before UPDATE. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Peter Lind
mean I recommend it, though: bigger classes are a pain to maintain as you loose overview of what's in the class. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype

Re: [PHP] PHP database interface layer

2010-07-22 Thread Peter Lind
at things like Doctrine2? Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Peter Lind
On 22 July 2010 15:49, Sebastian Ewert seb2...@yahoo.de wrote: Peter Lind wrote: It's unlikely to cause you performance problems unless you've got a huge amount of traffic - and then you could probably fix your problems easier than refactoring classes. Personal anecdote: I've worked

Re: [PHP] PHP database interface layer

2010-07-22 Thread Peter Lind
enough but that installation is brutal.  Any other suggestions?  I'm thinking of sticking with good ol' hand coding and a few helper classes. Let me repeat myself: did you have a look at Doctrine2? Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: [PHP] opening link in new window

2010-07-23 Thread Peter Lind
you a lot of answers. --Shreyas PHP is serverside so no, it can't help here. When using xhtml strict, your only option is to use JS for opening links in new windows. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Peter Lind
an integer. Would have to check the actual php source to see how the two are implemented to see if there's any real difference that might make a difference in speed. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Peter Lind
On 27 July 2010 11:46, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 11:35 +0200, Peter Lind wrote: On 27 July 2010 11:27, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways

Re: Re[2]: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Peter Lind
for functions, e.g. MyClass and myFunction(). Still, that's really just personal taste and whatever makes you happy is the thing to go with. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Peter Lind
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Why are you storing files in the db in the first place? If they're files why not use the filesystem? Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Peter Lind
2010/7/27 Dušan Novaković ndu...@gmail.com: Hello Peter, I can't use files from filesystem. Let's say that they are not on the some mashine where is application that has to show files :-) So it has to be in exact order as I wrote :-( That normally doesn't stop people (mounting filesystems

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Peter Lind
used only in emails (Correct me if I'm wrong). You're wrong. Content-Disposition tells the browser how to handle the content - in this case, the browser will download the file instead of displaying it. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com

Re: [PHP] the state of the PHP community

2010-07-29 Thread Peter Lind
admin. Made me chuckle :) Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] the state of the PHP community

2010-07-29 Thread Peter Lind
On 29 July 2010 07:36, Nathan Rixham nrix...@gmail.com wrote: Hi All, I find myself wondering about the state of the PHP community (and related community with a PHP focus), so, here's a bunch of questions - feel free to answer none to all of them, on list or off, or add more of your own -

Re: [PHP] Need help calling multiple functions with if_is

2010-07-31 Thread Peter Lind
. If you want to output the return of wpads, stick echos in there. And might I kindly ask of you to please read http://dk2.php.net/manual/en/control-structures.if.php and http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn

Re: [PHP] Re: php -l - does it find *anything*?

2010-08-02 Thread Peter Lind
You can only find run-time errors (such as undefined functions) by actually running the script. Could definitely need some clarification Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Peter Lind
forget). There's no difference in performance, which leaves just one thing: personal preference. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Peter Lind
to lock out an account. - Do you know/suggest a better way to solve this? Velocity control, as stated. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General

Re: [PHP] Limit failed logins attempts

2010-08-09 Thread Peter Lind
other way. When that is successful, then the value can be cleared. That allows locking out users at random by knowing the username - not a very good solution. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Peter Lind
Thanks, T Xdebug formats errors, try installing that. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Encryption/Decryption Question

2010-08-12 Thread Peter Lind
to be appropriate through 2030. (keying option 1 being three independent keys as would be the case here). Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List

Re: [PHP] Encryption/Decryption Question

2010-08-12 Thread Peter Lind
enough (32 char string) but even weaker - keyspace of 16^24 vs. 128^16. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP Reference

2010-08-14 Thread Peter Lind
this, but was wondering if there was something like that. Thanks, No, you can't. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http

Re: [PHP] Need to check pdf for xss

2010-08-14 Thread Peter Lind
the file, for instance, then it's likely not an image. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net

Re: [PHP] Need to check pdf for xss

2010-08-14 Thread Peter Lind
it as html and whether or not it will cause problems. I don't know if the same vulnerability exists for pdfs - you'd have to check security sources for it. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter

Re: [PHP] Need to check pdf for xss

2010-08-15 Thread Peter Lind
with that function - I don't know if Imagick would be faster though, you'd have to check. Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List

Re: [PHP] How safe is a .htaccess file?

2010-08-17 Thread Peter Lind
On 17 August 2010 22:17, tedd t...@sperling.com wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? No, Apache won't serve it. Regards Peter -- hype WWW: http://plphp.dk

<    10   11   12   13   14   15   16   17   18   19   >