PHP and HTTPS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
loosus
Forum Newbie
Posts: 3
Joined: Fri May 27, 2005 12:45 pm

PHP and HTTPS

Post by loosus »

I've never used the HTTPS protocol, but I probably will be in the next month or two because I'm helping a guy setup a site that'll be collecting some relatively private information (e.g., social security numbers).

If I use HTTPS, will I need to make any changes to my PHP code? For example, will I need to decrypt the posted form data, or is the encryption/decryption all transparent to the PHP code?

Thanks in advance!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you need to buy a certicate from a CA, and install it on your server. You don't need to do anything with php.

a couple popular CA's are thawte and verisign.
loosus
Forum Newbie
Posts: 3
Joined: Fri May 27, 2005 12:45 pm

Post by loosus »

Burrito wrote:you need to buy a certicate from a CA, and install it on your server. You don't need to do anything with php.

a couple popular CA's are thawte and verisign.
I know that. But what I'm asking is this: does the PHP interpreter know (or care) if the protocol is either HTTP or HTTPS?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Burrito wrote:You don't need to do anything with php.

^^
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

if you deal with cookie in secured area, make sure to set the last paramet to 1 for set_cookie function

and session, i am not sure how - I had posted a questions similar to yours, and no one answered :roll:
Post Reply