Yeah, the PHP code will stay the same. People just use [url]https://your_url[/url] instead of [url]http://your_url[/url] to access your site. If you want to force all visitors to use SSL then you can have a function like this, which you call at the top of every page:
function SSL_page()
{
if ($_SERVER['HTTPS'] != 'on')
{
header("Location: https://{$_SERVER['HTTP_HOST']}".
"{$_SERVER['REQUEST_URI']}");
exit();
}
}
That seems to work for Apache/Linux and PHP5 anyway, you may need to tweak it slightly.