Hey guys, I hope everyone has had a great start to the new year. If you're just joining us, we're making hedgeclipper: a user log-in system. Last time, we outlined the basics of how hedgeclipper will work, and wrote a controller function for the whole thing. This time, we're going to focus on checking if the user is logged in or not. Before we start demanding a username and password, we're going to check if our user already logged in on a previous page visit. Have a look: ...
The javascript location.search propery sets / returns the query portion of a URL, including the question mark (?). This means that if we put <a onclick="location.search='this is a test'">test</a> in a file named our_file.html, the URL (our_file.html) will be replaced with our_file.html?this is a test after a click on the link. Having arrived at our_file.html?this is a test, we can go back to our_file.html by using the browser's history (back) button. The content of our_file.html?this ...
Updated 01-01-2013 at 09:49 PM by molendijk
. Who Is This For? I'm going to make some assumptions about you, as a programmer: You're probably not an expert with PHP, but you know at least "the basics." If you're a copy+paste PHP coder, that's okay, but hopefully you won't be once we're done.You have some patience. Yes, you want to see results; but you can trust that they're coming.You're "okay" with doing things you've never tried before. There are some things I would like you to know ...
Updated 01-13-2013 at 11:30 PM by traq (added 'expiry' config option)
yes, I'm still doing the tutorial. : ) Did you know ...? PHP Code: <?php class alphaHeap extends SplHeap{ public function compare( $a,$b ){ return strcmp( $b,$a ); } } $alpha = new alphaHeap; # IN put: $alpha->insert( 'cat' ); // C $alpha->insert( 'dog' ); // D $alpha->insert( 'boy' ); // B $alpha->insert( 'elephant' ); // E ...
<?php class alphaHeap extends SplHeap{ public function compare( $a,$b ){ return strcmp( $b,$a ); } } $alpha = new alphaHeap; # IN put: $alpha->insert( 'cat' ); // C $alpha->insert( 'dog' ); // D $alpha->insert( 'boy' ); // B $alpha->insert( 'elephant' ); // E
Updated 12-23-2012 at 08:09 PM by traq
(To see and test what this is all about, you should download Safari if you haven't already done so. After that, use the code below with popup blocker enabled AND with popup blocker disabled, using Safari). When a new window or tab is not explicitly requested by the visitor of a site i.e. when the window's appearance is attached to such events as onload or onunload, popup blockers (if enabled) will prevent a file from being opened. But when the window's appearance is attached to an ...
Updated 12-07-2012 at 10:58 PM by molendijk