Re: ... of Mating and Security
| From: | Chris Lee | Date: | Fri, 24 Nov 2000 09:29:16 +0000 |
| Subject: | Re: ... of Mating and Security | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27063@lists.php.net to get a copy of this message | ||
The first one shouldnt be a problem if you can get all the infrmation in
the db.
using the mail() function isn't bad at all.
http://www.php.net/manual/function.mail.php
here's an idea I allways had, but have never had the chance of accually
testing in use.
use mcrypt
http://www.php.net/manual/function.mcrypt-encrypt.php
have a set key, identical on server1 as on server2 and encrypt / decrypt the
sessioID. then the value is never sent plain text. What Ive wanted to do
is use time() for the key, this would make a great key I figure.
$key = "can you guess my number ? the value is " . time() ;
I use ntp time on all of my servers and therefore the time is almost
allways bang on.
never put this idea to test though.
well back to where we were, just cross reference the SessionID with a
MySQL db to make sure the customer exists. and good enough I figure eh.
I would like to hear comments on this idea though for sure :)
Chris Lee
Mediawaveonline.com
In article <4.3.2.7.0.20001124153556.00b8b430@mail.islandnet.com>,
richardc@dreamriver.com wrote:
> Hi All, I have not one but two unrelated algorithms to solve:
>
> MATING
> 1. What is the best way to mate a 12,000 member database with 12,000
> email letters that go out daily? It's ok if there is minimal commercial
> (paid) software involved, and we presently have our membership on a
> mySQL database but the elist presently run on Topica.com. We need to
> join the two - what's the BEST way?
>
> SECURITY
> 2. A user will click on a url which opens Page A. Before Page A opens on
> Website 1, i will retrieve embedded CONSTANTS, including a unique key,
> then take this key and go to Script X on Website 2 and make sure the
> unique key is valid against a mySQL customer database, and if all is
> well open Page A, and if not then open Page B on Website 2. My question
> for this list is how is this best accomplished and specifically what php
> functions should I be learning and looking at? I'm happy to write the
> code (ain't php such an easy language to write in) but I need a better
> understanding of the tool set to learn and use - specifically what
> functions should I be looking at ... Anyone?
>
> Kind Regards,
>
> Richard Creech richardc@dreamriver.com Phone: 250.744.3350 Pacific Time
> Canada Get a free link at http://www.dreamriver.com/phpYellow/
> Download
> phpYellow Pages 2000 - Now shipping Version 1.061 with EasySQL! Add
> Dynamic Database Content to your Website
> http://dreamriver.com/software/
>
>