Currently Exploring


There are quite a handful of different post thumbnail solutions out there, but it seems that I found a very simple and compatible one that uses the famous timthumb library. Add this code to your functions page, functions.php: function post_image() { global $post, $posts; $thumb = ”; $output = preg_match_all(‘/<img.+src=[\'"]([^\'"]+)[\'"].*>/i’, $post->post_content, $matches); $thumb = $matches [...]

There are 2 ways to pass variables in PHP: “GET” and “POST“. You might recognize these from the form tag (<form method=”GET”>). What’s the difference? GET passes the variables in the URL, and POST passes the variables hidden. Ever get the error “resubmit POST data” when you click back on your browser? This is POST [...]

I told you earlier about the PHP5 upgrade. I will go deeper into the register_globals feature and some issues about it. The register_globals feature is off by default in PHP5 and deprecated and removed in PHP6. Relying on this feature is highly discouraged. The most controversial change in PHP was when the default value for [...]

Blog WebMastered by All in One Webmaster.