Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
recommend? Thanks, tedd Did you setup the server (Apache / nginx) configuration? The entire site should be served under https if you're doing CC processing Best, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com -- PHP General Mailing List (http

Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
address). Best, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
Joshua Kehn | @joshkehn http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:26 PM, Larry Martell la...@software-horizons.com wrote: On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn josh.k...@gmail.com wrote: Slightly snobbish solution: Don't use windows. Unfortunately required to VPN into most of my clients corporate networks. Windows

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:23 PM, Larry Martell la...@software-horizons.com wrote: On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn josh.k...@gmail.com wrote: I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned to having all my workstations be laptops of one sort

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Joshua Kehn
Could also use jquery instead Best, -Josh ___ http://byjakt.com Currently mobile On Jul 19, 2013, at 4:08, Tedd Sperling t...@sperling.com wrote: One additional comment. Please change the javascript onclick to onchange -- that way the demo will work for Chrome

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread Joshua Kehn
while true; do curl -X POST --data field=valuefield1=value1 http://myblog.com/comment.php; done Best, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Oct 11, 2012, at 4:07 PM, Paul M Foster pa...@quillandmouse.com wrote: Folks: I've been

Re: [PHP] else if vs switch

2012-06-15 Thread Joshua Kehn
Way easier to just use a map. $mapping = array( 'Calgary' = abc@emailaddress, 'Brooks' = def@emailaddress, // etc ); $toaddress = $mapping[$city]; Regards, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Jun 15, 2012, at 6:20

Re: [PHP] To ? or not to ?

2012-04-03 Thread Joshua Kehn
I leave them off of any non-view PHP file. It doesn't have any downsides, and leaving them in can cause problems. Just like short tags! Regards, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Apr 3, 2012, at 5:29 PM, Tedd Sperling wrote: Hi gang

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Joshua Kehn
, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Feb 16, 2012, at 3:31 PM, Marc Guay wrote: Hi folks, I've constructed simple conditions based on DB data and would like to actually evaluate them with PHP. For example, the coded string $x $y has been

Re: [PHP] Problem with date

2011-12-07 Thread Joshua Kehn
$pubdate is probably null or something. Regards, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Dec 7, 2011, at 1:48 PM, Jack wrote: Hello All, I have a problem where Dates are coming out as 12.31.1969 19:00:00 which of course we didn't

Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread Joshua Stoutenburg
On Fri, Sep 16, 2011 at 12:35 AM, tamouse mailing lists My baboon is offended. class baboon extends human { $ammo = ''; public __construct($ammo) { $this-ammo = $ammo; } public function flingAt($target) { $target-flingAlert($this, $this-ammo); } public

Re: [PHP] What would you like to see in most in a text editor?

2011-09-16 Thread Joshua Stoutenburg
On Fri, Sep 16, 2011 at 12:51 AM, Marco Lanzotti ma...@lanzotti.com wrote: Il 13/09/2011 21:56, Brad Huskins ha scritto: So I would like to get some feedback on what features people would most want, since I am still at a very flexible stage in development. I wouldn't want a text editor. I'd

Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Joshua Stoutenburg
On Thu, Sep 15, 2011 at 5:46 PM, Jason Pruim I've always thought that getting a couple fairly similar answers to the same question helped to validate the answer for someone who is in the early process of learning ;) -nathan Yeah, you know, I think you are right! I'd like to answer this

Re: [PHP] Re: Repetitive answers . . .

2011-09-14 Thread Joshua Stoutenburg
On Wed, Sep 14, 2011 at 11:59 AM, Govinda govinda.webdnat...@gmail.com wrote: As for duplicate answers..., [snip] Also newbies may tend to like the multiples answers.. for the different perspectives, as Dan said, but also when they are exact dupe answers - because then the newbie knows

Re: [PHP] array problem

2011-09-09 Thread Joshua Stoutenburg
The function fgetcsv() returns an array. http://php.net/manual/en/function.fgetcsv.php On Fri, Sep 9, 2011 at 9:00 AM, Marc Fromm marc.fr...@wwu.edu wrote: I am reading a csv file into an array. The csv file. users.csv file contents: w12345678,a w23456789,b w34567890,c

[PHP] Repetitive answers . . .

2011-09-09 Thread Joshua Stoutenburg
I'm new to this email list . . . But is it customary to answer a question after it's already been adequately answered? Not trying to step on any toes. I just think if I were asking the question, it would be unpleasant to continue receiving answers, especially the same answer, after receiving

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Joshua Stoutenburg
I guess so. On Fri, Sep 9, 2011 at 10:34 AM, Marc Guay marc.g...@gmail.com wrote: That low-hanging fruit is too hard for some to resist... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Joshua Stoutenburg
Is there a way to reconfigure gmail settings to prevent this?

Re: [PHP] php hide menu

2011-06-06 Thread Joshua Kehn
Sounds like a good job for client side JavaScript. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Jun 7, 2011, at 12:40 AM, Chris Stinemetz wrote: I have three drop down menus in my form. How do I make it so the second and third

Re: [PHP] Found this and I thought of you.

2011-06-04 Thread Joshua Kehn
Hah! That is an excellent example of why to turn error reporting off when deploying code. Regards, -Josh http:joshuakehn.com Currently mobile On Jun 4, 2011, at 7:34 PM, Richard Quadling rquadl...@gmail.com wrote: http://www.exxcire.com/login.php If nothing more than

Re: [PHP] about getting a site

2011-05-28 Thread Joshua Kehn
not know of any free hosting sites worth mentioning. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
. :-) -- --- http://sperling.com/ Might that have something to do with the version of PHP running? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
written this on two different servers. One is Version 5.2.15 and the other is version 5.2.5 and they both report the same results. Cheers, tedd I just checked under 5.3.2 and it gives the same -1, 0, 1 results. Regards, -Josh Joshua Kehn | josh.k

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
=== for equality checks instead of strcmp. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
On May 23, 2011, at 9:45 AM, tedd wrote: At 9:32 AM -0400 5/23/11, Joshua Kehn wrote: All this confusion makes me glad that I'm using === for equality checks instead of strcmp. -Josh -Josh: Yes, but what if you were sorting? I know you could use sort(), but there might be logic

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Review Request

2011-05-20 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Review Request

2011-05-19 Thread Joshua Kehn
in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion No idea about the first, and I've never used strcmp() before for an equality check. If there is something I'm missing I would love to know. Regards, -Josh Joshua

Re: [PHP] A Review Request

2011-05-19 Thread Joshua Kehn
for($i=0; $i=1000; $i++){ if(strcmp(1, submit)==0) { continue; } } -- The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. ~Seymour Cray I almost exclusively use ===. Regards, -Josh Joshua

Re: [PHP] A Review Request

2011-05-18 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] A Review Request

2011-05-18 Thread Joshua Kehn
. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Short tag: why is it bad practice?

2011-05-10 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bold links

2011-05-10 Thread Joshua Kehn
. [/OT] Micky Unless he is specifically saying to use .php extensions for url's I doubt it's a CMS. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Bold links

2011-05-09 Thread Joshua Kehn
you should use CSS and a class. If you have text that needs to be emphasized or strongly put use the appropriate tags. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Newsgroup status

2011-04-27 Thread Joshua Kehn
If this is the PHP list thinking of it's moderately active. I sometimes forget which ones I'm subscribed to. Regards, -Josh___ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Wednesday, April 27, 2011 at 11:52 AM, Al wrote: Is this group off

Re: [PHP] Newsgroup status

2011-04-27 Thread Joshua Kehn
On Wednesday, April 27, 2011 at 12:20 PM, Steve Staples wrote: On Wed, 2011-04-27 at 11:54 -0400, Joshua Kehn wrote: If this is the PHP list thinking of it's moderately active. I sometimes forget which ones I'm subscribed to. Regards, -Josh___

Re: [PHP] files outside of the web tree

2011-04-27 Thread Joshua Kehn
accessible directory. If you could access things by saying `../` then that would defeat the purpose of storing things where they aren't accessible. Regards, -Josh___ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Flattery will get you nowhere

2011-04-27 Thread Joshua Kehn
, -Josh___ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Joshua Kehn
JS injection would be that (bad scripts inserted by the user on a comment form or review page) or where you are using eval() and they dump bad code into there. Regards, -Josh___ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Manipulating variables

2011-02-23 Thread Joshua Kehn
, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Feb 23, 2011, at 11:48 PM, Ron Piggott wrote: Is there a way to make this syntax: $checking_answer = $answer_reference_2; Equal to: $checking_answer = $answer_reference_ . ($i + 1

Re: [PHP] Parse question

2011-01-21 Thread Joshua Kehn
. Ron I would check for url regex patterns and build a solution off of that. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
inspector (Firebug). I agree, a simple login is not that complex. I thought it was a bit more involved then that. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
!! They have that. It's called Ruby on Rails. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
On Tue, Jan 18, 2011 at 23:39, Joshua Kehn josh.k...@gmail.com wrote: The use of existing packages is so increasingly prevalent that I have the unfortunate displeasure of knowing many developers who do nothing but this, yet who can't even answer simple questions about general coding

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
On Jan 19, 2011, at 12:44 PM, Micky Hulse wrote: On Wed, Jan 19, 2011 at 6:45 AM, Joshua Kehn josh.k...@gmail.com wrote: They have that. It's called Ruby on Rails. CodeIgniter and/or Django (Python) are fun. What about a middle of the road solution? Google for php micro framework

Re: [PHP] switch case madness

2011-01-18 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] switch case madness

2011-01-18 Thread Joshua Kehn
-- D Brooke I just died a bit on the inside. Why would you build that from scratch? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] switch case madness

2011-01-18 Thread Joshua Kehn
things I wouldn't touch with a ten foot pool, and cookie management is one of them. The other would be things like CSV parsers or text manipulations. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] PHP tutorials

2011-01-16 Thread Joshua Kehn
programming experience? HTML / CSS / JavaScript (other frontend web stack language) experience? Do you want to do simple junk (submit form, view results) or more complex actions (database involvement, basic CMS, authentication systems)? Regards, -Josh Joshua Kehn

Re: [PHP] A bad design decision or pure genius?

2011-01-13 Thread Joshua Kehn
the time, might as well use whatever tools you are most comfortable with. Could turn into a bit of a mess though. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Joshua Kehn
is wonderfully done as well. It doesn't offer user comments, but it is very complete and covers just about every aspect of a class. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
, GPLv2-compatible required.) --Larry Garfield Larry- Why are you writing a command line application in PHP? I would think that is starting off on a very wrong foot. Can you explain the requirements / use cases a bit more? Regards, -Josh Joshua Kehn

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 12:12 PM, Daniel Brown wrote: On Fri, Jan 7, 2011 at 12:01, Joshua Kehn josh.k...@gmail.com wrote: Why are you writing a command line application in PHP? I would think that is starting off on a very wrong foot. I would not be exaggerating to say that I've written

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
On Jan 7, 2011, at 12:34 PM, Daniel Brown wrote: On Fri, Jan 7, 2011 at 12:18, Joshua Kehn josh.k...@gmail.com wrote: Using another language more suited towards CLI / standalone (non-web) development would be easier. PHP at it's core is a templating language. I don't think it is as suited

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
development. Perhaps I am unfamiliar with it. Why bother learning other languages? Is this a joke? Why should someone stop learning ever? Having a mastery of multiple languages can only enhance you. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
would kill for a PHP interpreter (+ Haskell and Python) on iOS. Unfortunately I haven't found one. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
In that case I can't offer any good CLI libs, but it sounds like a few others here could offer some. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
valid reasons given by Ash. It's the wrong mindset to have. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
to confusion later on in development. At the very least you'll look stupid re-asking Can't it be embedded... Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
for you, instead of requiring you to manually adjust them if something changes. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
, but I really find dreamweaver easier to use so far. I use VIM and TextMate exclusively. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
the code as hello.php. Copy it to your root web directory (should be the base directory or something called public_html / www when you FTP in) and access it from youdomain.com/hello.php Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleUntitled Document/title /head body ?php $a = hello; $hello =Hello Everyone; echo $a; echo $hello; ? /body /html On Sat, Jan 1, 2011 at 9:55 PM, Joshua Kehn josh.k...@gmail.com wrote

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Joshua Kehn
On Dec 31, 2010, at 1:26 AM, Tamara Temple wrote: On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. Users should

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Joshua Kehn
On Dec 31, 2010, at 1:31 AM, Tamara Temple wrote: On Dec 28, 2010, at 10:28 PM, Joshua Kehn wrote: On Dec 28, 2010, at 6:28 PM, Paul M Foster wrote: On Tue, Dec 28, 2010 at 03:11:56PM -0500, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Joshua Kehn
it again, thus also limiting the time the account is compromised. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Joshua Kehn
On Dec 29, 2010, at 6:52 PM, TR Shaw wrote: On Dec 29, 2010, at 12:56 PM, Joshua Kehn wrote: On Dec 29, 2010, at 12:37 PM, tedd wrote: At 11:06 AM +0200 12/29/10, Dotan Cohen wrote: Also, change them {passwords} frequently. I've always wondered about that -- if your password works

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
, you pick] users. If this is an issue then educate the users. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Dec 28, 2010, at 3:07 PM, Nathan Rixham wrote: Joshua Kehn wrote: Trim usernames but not passwords. agree. nice catch

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
Trim usernames but not passwords. Some people put spaces at the beginning and end of their passwords. Double confirm and don't mess with the input otherwise they tend to get confused. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
with it and discard it. Client side hashing / salting is not a good idea. A much better alternative is to use SSL. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 3:23 PM, Dotan Cohen wrote: On Tue, Dec 28, 2010 at 22:02, Joshua Kehn josh.k...@gmail.com wrote: Trim usernames but not passwords. Some people put spaces at the beginning and end of their passwords. Double confirm and don't mess with the input otherwise they tend to get

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 3:29 PM, Nathan Rixham wrote: Joshua Kehn wrote: On Dec 28, 2010, at 3:18 PM, Dotan Cohen wrote: I'm toying with the idea of having the passwords hashed twice: they're already in the database hashed, and javascript hashes them on the client before sending them over

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
have a good point. Both with (1) you won't stop it, and (1) learn how to copy-paste. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 3:32 PM, Dotan Cohen wrote: On Tue, Dec 28, 2010 at 22:30, Joshua Kehn josh.k...@gmail.com wrote: indeed, and on reflection, if you're putting this much effort in to it, and security is a worry, then forget username and passwords, and issue each user with a client side RSA

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 3:24 PM, Dotan Cohen wrote: On Tue, Dec 28, 2010 at 22:11, Joshua Kehn josh.k...@gmail.com wrote: Users should not be copy-pasting passwords or usernames. Do not compromise a system to cater to bad [stupid, ignorant, you pick] users. If this is an issue then educate

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 6:28 PM, Paul M Foster wrote: On Tue, Dec 28, 2010 at 03:11:56PM -0500, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Joshua Kehn
On Dec 28, 2010, at 11:51 PM, Paul M Foster wrote: On Tue, Dec 28, 2010 at 11:28:12PM -0500, Joshua Kehn wrote: On Dec 28, 2010, at 6:28 PM, Paul M Foster wrote: On Tue, Dec 28, 2010 at 03:11:56PM -0500, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue

Re: [PHP] ORM doctrine

2010-12-10 Thread Joshua Kehn
to suit my interests. Thanks for the laugh! Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] http://www.mytrash.mail.ua spam

2010-10-13 Thread Joshua Kehn
I get the same thing but wrote it off as someone's autoresponder. I didn't check the email address. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 13, 2010, at 2:52 PM, Ashley Sheridan wrote: I know this isn't PHP related

Re: [PHP] break out of ?php... midway thru' an if { } statement ?

2010-10-11 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 11, 2010, at 7:05 PM, Govinda wrote: Hi everyone, - newbie preface - I finally got some time to come back to learning a little more PHP

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
so to speak? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 1:20 PM, tedd wrote: Hi gang: Several years ago I was involved in a court case where a programmers work was being evaluated to establish a dollar

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
In the case payment does come down to lines of code written I'm already covered. if( count 5) { /* Bracing Style } Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 1:50 PM, a...@ashleysheridan.co.uk wrote

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
I guess that's what I get for spending the last four weeks developing with JavaScript and Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 2:09 PM, Daniel P. Brown wrote: On Thu, Oct 7, 2010 at 14:04

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread Joshua Kehn
$100 a line. If you want more then one line let's meet and go over the project. I might give a significant discount. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 7, 2010, at 4:51 PM, tedd wrote: At 6:50 PM +0100 10/7/10

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Joshua Kehn
this would be to add some sort of session expiration header to the file and update that. And couldn't you make a simple check if the boss is logged in or not by the ability to access the database? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Joshua Kehn
connected to the internet? That statement throws me a bit because if it isn't connected to the public net the only alternative would be to run hard lines between hosts. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
Ash- Correct, hence my typo and nomenclature slip. ;) Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:48 PM, a...@ashleysheridan.co.uk wrote: Node.js, wouldn't that be javascript rather than java? :P Thanks

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
, it is version 0.2 after all. It won't replace PHP or Java as an enterprise level solution, but it does fill in the gaps very nicely. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:53 PM, Adam Richardson wrote

Re: [PHP] Zend framework

2010-09-09 Thread Joshua Kehn
Chris- While I find Zend to be more of a wonderful set of libraries then a framework, it does do both and is a good introduction. I do most of my framework coding on CodeIgniter though. Regards, -JOsh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

[PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
? If anyone has a decent extension building tutorial that would be great too. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 5, 2010, at 12:32 AM, Jim Lucas wrote: Joshua Kehn wrote: I'm working on creating a compiled extension for some code I've written. Mostly it's manipulating a very large multi-demensional array of values. This is some pseudo code

Re: [PHP] a quick question about array keys

2010-08-31 Thread Joshua Kehn
Quickest way I can think of would be to do something like $tmp = array(); foreach($old_array as $key = $value) { $tmp[$value] = $key; } But knowing PHP there is probably some array_reverse_keys() function. Regards, -Josh Joshua Kehn | josh.k

Re: [PHP] a quick question about array keys

2010-08-31 Thread Joshua Kehn
On Aug 31, 2010, at 11:46 AM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 11:46 -0400, Joshua Kehn wrote: Quickest way I can think of would be to do something like $tmp = array(); foreach($old_array as $key = $value) { $tmp[$value] = $key; } But knowing PHP there is probably

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Joshua Kehn
Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Joshua Kehn
On Aug 12, 2010, at 11:55 AM, tedd wrote: At 11:39 AM -0400 8/12/10, Joshua Kehn wrote: Would one option be to have a table of unencrypted SSN's with an encrypted id for the user. So you could search the SSN's and then connect them, however if the table was dumped you wouldn't be able

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 9:41 AM, Marc Guay wrote: Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
://www.php.net/unsub.php There is something wrong with having a little fun? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >