(forgot to copy the list)
On Jan 16, 2008, at 5:08 PM, Richard Lynch wrote:
Is it possible that 4% of the time, you have spaces on the start/end
of the string, which get trimmed before encryption?
In this case, no. In trying to simplify the situation to narrow the
possibilities of error,
Many thanks, Mike --- yours works great... 0 errors.
On Jan 16, 2008, at 9:24 AM, mike wrote:
function data_encrypt($data) {
if(!$data) { return false; }
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256,
$GLOBALS['config']['salt'], $data, 'cbc', md5($GLOBALS['config']['
s
On Jan 16, 2008, at 1:28 AM, Andrés Robinet wrote:
1 - Mike is right about first encrypting and then doing a
base64_encode (then saving results to DB, cookies, etc). I don't
know why replacing " " to "+" for decrypting, though.
His other post explains that php didn't seem to like spaces
On Jan 15, 2008, at 10:48 PM, Casey wrote:
It returns the correct value. If you look at the last example, and run
base64_decode on "MDAwMzEwMDI0NDA0MTMyOQ==", you will get
"0003100244041329".
Oops. "Haste makes crappy programming."
Ken
--
PHP General Mailing List (http://www.php.net/)
To un
On Jan 15, 2008, at 11:08 PM, Andrés Robinet wrote:
I second that, you should base64 encode values before encrypting
and base64
decode them after decrypting to be safe.
Thanks for the idea.
Like this? Fails 500/500 times on my test.
if ($EorD == "D")
On Jan 15, 2008, at 11:08 PM, Andrés Robinet wrote:
-Original Message-
From: Bastien Koert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 16, 2008 12:55 AM
To: Ken Kixmoeller -- reply to [EMAIL PROTECTED]; php-
[EMAIL PROTECTED]
Subject: RE: [PHP] Encryption failing
are you
On Jan 15, 2008, at 7:06 PM, Casey wrote:
Maybe you could echo the results of the failed ones and compare.
I did that at first, thinking that "something about these strings
might cause the problem." But then I realized: I can't blame the
data. I don't have any control over what users use
Hey --- - -
I am in the process of upgrading the encryption technology I am using
from (64 bit) blowfish to (256 bit) rijndael.
The code (and some explanations) is below, but the results are, um,
unusual, and I can't see what I am doing wrong. For testing, I have a
program that generates
On Sep 6, 2007, at 1:17 PM, Ken Kixmoeller -- reply to
[EMAIL PROTECTED] wrote:
Aesthetically, though, even though I used the "horizontal" classes,
it comes out vertical
Never mind (not that you did) -- got it working fine ---
--
PHP General Mailing List (http://www.ph
On Sep 6, 2007, at 10:47 AM, Ken Kixmoeller -- reply to
[EMAIL PROTECTED] wrote:
Just wondering, though, if you have ever created PHP code to
generate these menus on-the-fly?
Never mind === I got it working. (Mechanically) --
Aesthetically, though, even though I used the "horiz
On Sep 6, 2007, at 11:02 AM, Edward Kay wrote:
You may want to take a look at Yahoo's YUI menu:
http://developer.yahoo.com/yui/menu/
These can be defined using standard XHTML markup.
Thank you --- I will do that --
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
On Sep 3, 2007, at 12:42 PM, tedd wrote:
that would be more complicated than just using css with js, like so:
http://sperling.com/examples/menuh/
http://sperling.com/examples/menuv/
Why complicate your life?
Hey, tedd - - - -
I like this tool, and am playing with it -- --
Just wonderin
On Jun 5, 2007, at 5:20 PM, Richard Lynch wrote:
am I missing something (other than a few brain cells)?
http://php.net/unset
As in, unset($array['goner']);
Yup, that's the one. Thanks to you, too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
On Jun 4, 2007, at 3:27 PM, Al wrote:
What determines the rows you want to keep?
User selection. The array is essentially a "shopping cart"-type of
object.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Jun 4, 2007, at 3:29 PM, Peter Lauri wrote:
You could use unset() for the rows you don't want to keep.
Ah --- yes, that looks like it would do it. I was expecting something
to find something array-specific.
Thank you, Pater and Roberto
--
PHP General Mailing List (http://www.php.net
On Jun 4, 2007, at 2:25 PM, Jay Blanchard wrote:
http://us2.php.net/manual/en/function.array-pop.php
Thanks, Jay ---
I did see that function, but forgot about it when I asked the
question. I should have added that *any* array row among many could
be the one that needs to be removed. I co
Hey - - - - - - --
To do this, I am:
- looping through the array
- copying the rows that I want to *keep* to a temp array, and
- replacing the original array with the "temp' one.
Seems convoluted, but I couldn't find any function to remove a row of
an array. Am I missing something (other t
On Feb 23, 2007, at 7:46 AM, tedd wrote:
On Feb 22, 2007, at 10:26 PM, tedd wrote:
Print out these three and you'll see your problem.
$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']
Thanks, Tedd - -
REQUEST_URI still generates a "Undefined Index" error
SERVER_NAME
On Feb 22, 2007, at 4:33 PM, Jochem Maas wrote:
do a var_dump($_SERVER); or phpinfo(); to see what you do have
available.
'REQUEST_URI' doesn't show. Now I see the line in the documentation
that says "You may or may not find any of the following elements..."
How do I find out whether
On Feb 23, 2007, at 12:18 AM, Jim Lucas wrote:
diddly.com?id=fred&total=goof
First of forgoing the http:// missing, this still isn't a qualified
URL
Yeah, I was just giving an example of what I wanted.
echo $_SERVER['REQUEST_URI'];
and see what it returns
I said in the post, it
On Feb 22, 2007, at 10:26 PM, tedd wrote:
Print out these three and you'll see your problem.
$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']
Thanks, Tedd - -
REQUEST_URI still generates a "Undefined Index" error
SERVER_NAME on my testing server returns its IP
***
Hey - -
I must be missing something, but in a URL such as:
diddly.com?id=fred&total=goof
$_SERVER['PHP-SELF'] gives me the diddley.com part.
I want to capture the whole URL. The documentation makes it seem like
$_SERVER['REQUEST_URI'] is supposed to do that, but I get an
"Undefined Index
Hey - -- -
Would anyone be so kind as to un-stick my brain?
I can't get sessions to work on my development machine (localhost).
They work fine on my testing server (an internal IP). Development:
W2K, Testing Server W2K Server, both using IIS 5, PHP 5.2.
The php.ini SESSION settings are the
On Feb 3, 2007, at 9:32 AM, Ken Kixmoeller -- reply to
[EMAIL PROTECTED] wrote:
I'm not putting any core code into tables, just code which
generates page content. The access rights to that page content, as
well as security code and application objects are not there. That
code is o
On Feb 2, 2007, at 6:59 PM, Richard Lynch wrote:
Putting PHP source into MySQL is the WRONG way to go for security and
efficiency...
Thank you, Richard -- I appreciate your advice.
Here is a qualifier: I'm not putting any core code into tables, just
code which generates page content. The a
Yeah, that was it. Thanks, Thomas.
(dang it, I should have been able to figure out that myself!)
Ken
On Feb 2, 2007, at 11:32 AM, Thomas Pedoussaut wrote:
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote:
Hi, folks -- - -
For security and efficiency, I am trying to store PHP scripts in
Hi, folks -- - -
For security and efficiency, I am trying to store PHP scripts in
MySQL tables. Only problem: I can't get them to execute.
In a template:
$php_code = $this->ApplicationObject->GetStoredCode($whichpage);
echo $php_code; // doesn't exec
Thanks to all -- got all of this working fine. Mostly my syntax was a
bit off. Your examples helped me mend my ways.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK, Jochem, I adapted your example and got it working. Thank you very
much.
I am still playing with it to better understand. One thing I don't
yet understand is the necessity for the getFoo()/getBar()
"handshake," especially the getbar() in the BAR class. That doesn't
seem to serve any pu
Thanks for your help, guys. I had to leave my office last evening
before I had a chance to try any of them.
I am sneaking in some office time today. I'll let you know (with
complete scripts and error messages).
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Hey - -- -
Here I am again. Anybody still working on a Friday?
I would like to have a class instance be the property of another
class, like can be done in other languages. For example: I would like
to have a "Connections" class which contains all of the database
connection logic and query
On Jan 26, 2007, at 3:08 PM, Robert Cummings wrote:
$this->foom_array[$line['WHAM_ID']] = $line;
Cheers,
Rob.
Thank you so much, Rob. That did it. (Kickin' the cobwebs out of my
head...)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello, folks -- lurking for a while, first post --
I'm relatively new to PHP but doing database design work for nearly
20 years.
I've RTFM'ed (+ books + other resources) a bunch of times but I have
a mental block around doing this:
I want to have an multidimensional array as a property of
33 matches
Mail list logo