Monthly Archives: September 2005

Load javascript with random query param

For now, I am just getting this logged somewhere I can find it later: Code:<script>  var el = document.createElement( “script” );  el.setAttribute( “type”, “text/javascript” );  el.setAttribute( “src”, “time.php?rand=”+bigRandomString);  document.getElementsByTagName( “head” )[ 0 ].appendChild( el );   function receiveTime(minLeft)  {     // … Continue reading

Posted in Code | Leave a comment

Turn a Text Form Element into a drop down / text box

Imagine you have a text box, like this: Name: [ ]Email: [ ] You want them to be text boxes that the user can type in, but you also have some default choices to give. For example, I may have … Continue reading

Posted in Code | Leave a comment

Storing weak passwords stronger

PostPosted: Wed Aug 24, 2005 12:18 am Post subject: Reply with quoteWe store our passwords in an md5 style password hash that the PHP crypt function provides. It takes a 13 character salt. My friend and co-worker brought up a … Continue reading

Posted in Code | Leave a comment

Run two SSL sites on a single IP and port on Apache

The way Apache works, this cannot be done. Let me explain why: Consider this request header for https://www.modphp.org/: Share This Post On:u=http://www.koopman.me/2005/09/run-two-ssl-sites-on-a-single-ip-and-port-on-apache/&title=Run+two+SSL+sites+on+a+single+IP+and+port+on+Apache” title=”Share ‘Run two SSL sites on a single IP and port on Apache’ on BlueDot”>

Posted in Uncategorized | Leave a comment