Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
ow the certificates need to be issued (dedicated ip 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] https question

2013-09-25 Thread Joshua Kehn
am I positive this is the answer. > > What do you 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 K

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:23 PM, Larry Martell wrote: > On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn 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 or another

Re: [PHP] Friday's Question

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

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
w.php.net/ 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 or another and they have built-in trackpads. Of course I also rarely use the mouse when there are so many keyboard shortcuts available.

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 wrote: > > One additional comment. > > Please change the javascript onclick to onchange -- that way the demo will > work for Chrome as well as ot

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread Joshua Kehn
while true; do curl -X POST --data "field=value&field1=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 wrote: > Folks: > > I'v

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 | @jo

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:

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Joshua Kehn
onals in the database? Regards, –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 t

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

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 > seco

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 wrote: > http://www.exxcire.com/login.php > > If nothing more than a good "bad exam

Re: [PHP] about getting a site

2011-05-27 Thread Joshua Kehn
nd run?" 5. I am assuming a true flag thrown on point #4; I do 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
ble in the case that I ever need it. 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 we

Re: [PHP] strcmp()?

2011-05-23 Thread Joshua Kehn
er tell what a programmer is > doing until it’s too late. ~Seymour Cray All this confusion makes me glad that I'm using === 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
gt; 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...@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
is <0, 0 or >0 >> -- it makes no promises about the actual value when it is non-zero. >> >> Mike > > Mike: > > That's interesting. Try the same comparisons here: > > http://www.webbytedd.com/lcc/citw229/string-compare.php > > For me they are 1

Re: [PHP] A Review Request

2011-05-20 Thread Joshua Kehn
k it's a bad shortcut to be taking. Make a dedicated class for logging and handle all this there. 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] A Review Request

2011-05-19 Thread Joshua Kehn
t; > -- > 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 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
m missing I would love to know. 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] A Review Request

2011-05-18 Thread Joshua Kehn
inline anon. functions in JavaScript, then I sometimes switch to K&R. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] A Review Request

2011-05-18 Thread Joshua Kehn
p://sperling.com/php/ to an index of examples? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Bold links

2011-05-10 Thread Joshua Kehn
s where you used > ? Don't you think that would be overkill? > > Sorry to everyone for taking this so OT for the PHP list. > > [/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://www.php.net/unsub.php

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

2011-05-10 Thread Joshua Kehn
book.com/menelion Because short tags aren't always enabled and can cause things to break when deploying code to different environments. Best practice dictates that your code should be as environmentally independent as possible. It's another few characters, why neglect it? Regards, -J

Re: [PHP] Bold links

2011-05-09 Thread Joshua Kehn
ML... In > fact, they are not even deprecated in XHTML. > > Ok, getting off of my soapbox now. :D > > [/OT] If you are only make the last name bold for stylistic purposes you should use CSS and a class. If you have text that needs to be phasized or ly put use the appropriate tags. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] Flattery will get you nowhere

2011-04-27 Thread Joshua Kehn
alidation lib written. Regards, -Josh_______ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] files outside of the web tree

2011-04-27 Thread Joshua Kehn
his? > Nope, static elements need to be stored in a web 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] 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 subscribe

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

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Joshua Kehn
w of. Are you talking about on-page injection, like comments and such? Normally 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
a) { check_answer($_POST[$q], $a); } Regards, -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; &g

Re: [PHP] Parse question

2011-01-21 Thread Joshua Kehn
ase make provision for .net web sites as well. > > 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
On Jan 19, 2011, at 12:44 PM, Micky Hulse wrote: > On Wed, Jan 19, 2011 at 6:45 AM, Joshua Kehn 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

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
> On Tue, Jan 18, 2011 at 23:39, Joshua Kehn 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 > g

Re: [PHP] switch case madness

2011-01-19 Thread Joshua Kehn
n and Voila'! - instant web app. > > > Th!! > 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
ou roll JavaScript well and have a decent 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-18 Thread Joshua Kehn
sunderstood. I'm not one to normally shun people rolling their own code, lord knows I've done it more then once or twice, but there are some 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] switch case madness

2011-01-18 Thread Joshua Kehn
Fun stuff, > Donovan > > > > -- > 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
Donovan > > -- > D Brooke I use switch cases so rarely I would have to refer you to the documentation. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] PHP tutorials

2011-01-16 Thread Joshua Kehn
re complex actions (database involvement, basic CMS, authentication systems)? Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

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

2011-01-13 Thread Joshua Kehn
some time in frontend (JavaScript) skills, as that would be the most "proper" way to implement it. If you don't have 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
entation out there. I would say that a lot of the Java documentation 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://jos

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Joshua Kehn
ses this format. I haven't used Perl. In a dynamically typed language you normally have duck typed variables. # Python a = "Hello" b = 12 // JavaScript a = "Hello"; b = 12; c = [1, 2, 3]; // PHP $a = "Hello"; $b = 12; $c = array(1, 2, 3); Unless I'm mis

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
t more than templates. That boat has long since sailed and > is irrelevant to this discussion. > > > --Larry Garfield 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 Keh

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
hen re-implement it. The OP was asking (I assume) about a standalone application built from scratch. I 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
natural CLI choice then bash or Python. Maybe I'm using PHP too much for web 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. Rega

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 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 >> do

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 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 s

Re: [PHP] Command line PHP

2011-01-07 Thread Joshua Kehn
you explain the requirements / use cases a bit more? 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
o go 100% open > source, 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-02 Thread Joshua Kehn
ons and bigger then basic project using a decent framework or main routing file to handle routes 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 G

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
the extension should indicate the file type. Adding a mod_rewrite rule (as you suggest) can lead 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
perfectly 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-01 Thread Joshua Kehn
> > > Untitled Document > > > > $a = "hello"; > $hello ="Hello Everyone"; > echo $a; > echo $hello; > ?> > > > > On Sat, Jan 1, 2011 at 9:55 PM, Joshua Kehn wrote: > On Jan 1, 2011, at 7:50 PM, David Rob

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
2nd day of Chaos in the YOLD 3177. Save 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 ____ Joshu

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
omething like the following: 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-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: >>> >>>> Spec

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 >>>&

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. >

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

2010-12-29 Thread Joshua Kehn
length of time between password changes. Also if they _have_ managed to crack the password changing it forces them to crack 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-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: >>> >>>&

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 >>&g

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 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 t

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 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 >

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

2010-12-28 Thread Joshua Kehn
is the users > problem, not the developers. Learn how to copy-paste. You 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: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

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 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

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

2010-12-28 Thread Joshua Kehn
decide what to do about leading > and trailing spaces. Toy 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

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://joshuakeh

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

2010-12-28 Thread Joshua Kehn
to cater to bad [stupid, ignorant, 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 userna

Re: [PHP] ORM doctrine

2010-12-10 Thread Joshua Kehn
t; -- > --- > http://sperling.com/ Tedd- I guess it's time to starting being religious again if they have upgraded the Bible 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] Closing Browser

2010-12-03 Thread Joshua Kehn
ipt exits, I want that tab to close. > > Sorry for any confusion. > > Ethan Ethan- You can't do that. Better to simply close the tab when done. Regards, -Josh ____ Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

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&

Re: [PHP] break out of

2010-10-11 Thread Joshua Kehn
If I'm understanding the question right, yes you can. if($AlertUser2success != 0) { ?> http://joshuakehn.com On Oct 11, 2010, at 7:05 PM, Govinda wrote: > Hi everyone, > > - newbie preface > -

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

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

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.

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

2010-10-07 Thread Joshua Kehn
complete it's half 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 >

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Joshua Kehn
Tedd- What do you mean "without ever being 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Joshua Kehn
A way to bypass 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

Re: [PHP] newbie question about code

2010-09-10 Thread Joshua Kehn
ith Node, 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, A

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 j

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
Adam- That is a function call. In Java: class Code { public static void function do_command(){ } } Code.do_command(); Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Sep 10, 2010, at 2:27 PM, Adam Williams 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

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

2010-09-04 Thread Joshua Kehn
rds, -Josh ________ 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-deme

[PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
// Use $key1, $key2, and $value here } } My question is how does this translate into the C code I will have to write? 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] 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) >>

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 | jos

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 t

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

2010-08-12 Thread Joshua Kehn
scribe, visit: http://www.php.net/unsub.php > 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 to link it directly to the person (as it would just have a SSN and an id). Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 11:12 AM, tedd wrote: > At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: >> On Aug 6, 2010, at 7:27 AM, tedd wrote: >> >> >> There is something wrong with having a little fun? >> >> Regards, >> >> -Josh > > Ye

Re: [PHP] PHP The Anthem

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

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] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 3:03 PM, Paul Halliday wrote: >> >> Paul- >> >> Why are those values not defaulted to 0 in the database? >> >> Regards, >> >> -Josh >> >> > > They are defaulted, the query is grouping: > > select count(status) as count, status from table group by status

Re: [PHP] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 2:36 PM, Paul Halliday wrote: > I have a query that may not always return a result for a value, I need > to reflect this with a "0". I am trying to overcome this by doing this > (the keys are ID's): > > while ($row = mysql_fetch_row($statusQuery)) { > >$cat = > arra

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-29 Thread Joshua Kehn
On Jul 29, 2010, at 12:50 PM, Don Wieland wrote: > I am trying to create an UPLOAD form and need to figure a way to only allow > PDF files to be selected. Something like: > > > > >accept="application/pdf" /> > Choose a file to upload: type="file" /> >

Re: [PHP] the state of the PHP community

2010-07-29 Thread Joshua Kehn
On Jul 29, 2010, at 3:32 AM, Nathan Rixham wrote: > Hi Josh, > > Thanks for taking the time - comments in-line from here :) > > Josh Kehn wrote: >> Java, JS (in the form of Node and MongoDB, +raw client / jQuery stuff) and >> PHP get used regularly. Python / Ruby infrequently. > > With true co

  1   2   >