On Thu, Mar 27, 2008 at 9:27 PM, Robert Cummings [EMAIL PROTECTED] wrote:
?php
$sekret = 'the brown cow stomped on the wittle bug';
$id = isset( $_GET['id'] ) ? (int)$_GET['id'] : 0;
$key = isset( $_GET['key'] ) ? (string)$_GET['key'] : '';
if( $key == sha1(
On Fri, 2008-03-28 at 10:37 -0400, Bastien Koert wrote:
[snip] Save yourself the database trip and just stick the id AND the
hash in
the URL and validate upon request.
Cheers,
Rob.
[/snip]
The only reason I suggest a database look up is that in my application
there is further
At 9:27 PM -0400 3/27/08, Robert Cummings wrote:
$sekret = 'the brown cow stomped on the wittle bug';
:-)
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 10:02 PM
To: Joey
Cc: PHP
Subject: RE: [PHP] munge / obfuscate ?
Hi Joey,
Please keep responses on the list so others can also benefit from the
learning process.
Comments below
On 29 Mar 2008, at 02:15, Jack Sasportas wrote:
I understand what is happening here, however I really want something
simple like:
$link =http://www.whataver.com/whateverpath/;;
$image = 123456;
new_image = munge($image);
new_link = $link . $new_image;
or maybe
new_link = munge($link .
On Mar 28, 2008, at 7:15 PM, Jack Sasportas [EMAIL PROTECTED]
wrote:
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 10:02 PM
To: Joey
Cc: PHP
Subject: RE: [PHP] munge / obfuscate ?
Hi Joey,
Please keep responses on the list so
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote:
Hi All,
I have written an app to allow a person to go online and see a picture we
take of them. When we link to the picture I don't want it to be obvious
that the URL is
Domain.Com/Pix/123.jpg because the next person we take a picture
Cc: PHP
Subject: Re: [PHP] munge / obfuscate ?
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote:
Hi All,
I have written an app to allow a person to go online and see a picture
we
take of them. When we link to the picture I don't want it to be obvious
that the URL
On Thu, Mar 27, 2008 at 9:10 PM, Joey [EMAIL PROTECTED] wrote:
Hi All,
I have written an app to allow a person to go online and see a picture we
take of them. When we link to the picture I don't want it to be obvious
that the URL is
Domain.Com/Pix/123.jpg because the next person we take
On Thu, 2008-03-27 at 22:36 -0400, Bastien Koert wrote:
On Thu, Mar 27, 2008 at 9:10 PM, Joey [EMAIL PROTECTED] wrote:
Hi All,
I have written an app to allow a person to go online and see a picture we
take of them. When we link to the picture I don't want it to be obvious
that
.
Comments below...
On Thu, 2008-03-27 at 21:46 -0400, Joey wrote:
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 9:28 PM
To: Joey
Cc: PHP
Subject: Re: [PHP] munge / obfuscate ?
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote:
Hi All,
I
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 9:28 PM
To: Joey
Cc: PHP
Subject: Re: [PHP] munge / obfuscate ?
On Thu, 2008-03-27 at 21:10 -0400, Joey wrote:
Hi All,
I have written an app to allow a person to go online and see a
picture
we
take of them
12 matches
Mail list logo