RE: [PHP] Upload Progress Meter

2011-03-24 Thread Brad Broerman
Essentially, they all require Flash or Java... Most use Flash... If you want one that is in Java, and is scriptable in JavaScript, I have one on my website: http://www.bbroerman.net/code.html -Brad -Original Message- From: Floyd Resler [mailto:fres...@adex-intl.com] Sent: Wednesday

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

2010-08-24 Thread Brad Broerman
One thing I would do, and I have done this in many of my applications: a) Store the username / password in a database. b) Encrypt passwords (with a salt) with AES-256 using a key stored in a file OUTSIDE the document path. c) Add code to the beginning of the included file to ensure it is

[PHP] RE: Paypal and Php

2009-05-03 Thread Brad Broerman
into more detail later if you're interested. As others have mentioned, there are some more complex Zend framework classes for this, but you may opt for the simpler and more direct route... Cheers, Brad Broerman -Original Message- From: Matthieu [mailto:spama...@gmail.com] Sent: S

[PHP] RE: Multiple return statements in a function.

2009-04-23 Thread Brad Broerman
Well, the latter method is generally easier to understand later. Most programming style books preach this method, and it's the one that most of my previous employers use. Cheers... -Original Message- From: Peter van der Does [mailto:pvanderd...@gmail.com] Sent: Thursday, April 23, 2009 8:

[PHP] RE: AJAX with POST

2009-04-04 Thread Brad Broerman
Well, as the "A" in Ajax is asynchronous, there's no real way to make it wait. What you would normally do is use a callback: function createXHRObject( ) { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (typeof

[PHP] Issues with mcrypt (Rijndael 128) and external C application.

2009-03-14 Thread Brad Broerman
Hi, I am trying to encode a string using Rijndael-128 using a C application that I wrote, based on the BSD crypt/rijndael libarary and decode it in PHP using mcrypt_decrypt. Each part of the program works separately (I can encrypt with the c app, and decrypt with it, and I can encrypt with mcrypt_e