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
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
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
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
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.
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
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
Way easier to just use a map.
$mapping = array(
'Calgary' => "abc@emailaddress",
'Brooks' => "def@emailaddress",
// etc
);
$toaddress = $mapping[$city];
Regards,
–Josh
____
Joshua Kehn | @jo
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:
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
$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
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
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
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
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
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
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
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
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
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
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
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
inline anon.
functions in JavaScript, then I sometimes switch to K&R.
Regards,
-Josh
Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com
p://sperling.com/php/ to an
index of examples?
Regards,
-Josh
Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com
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
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
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
alidation lib written.
Regards,
-Josh_______
Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com
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
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
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
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
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
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
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
> 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
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
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
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
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
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 complex actions (database involvement, basic CMS, authentication
systems)?
Regards,
-Josh
Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com
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
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
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
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
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
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
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
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
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
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
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
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
perfectly valid reasons given by Ash.
It's the wrong mindset to have.
Regards,
-Josh
____
Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com
>
>
> 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
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
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
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
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
>>>&
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.
>
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
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:
>>>
>>>&
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
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
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
>
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
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 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
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
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
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
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
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
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&
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
> -
$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
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
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.
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
>
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
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
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
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
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
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:
>
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
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
// 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
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)
>>
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
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
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
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
/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://
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
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
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
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" />
>
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 - 100 of 101 matches
Mail list logo