Hide those private files from prying eyes!
Powered by MaxBlogPress 

Feb
18

10 PHP Tips for noobs

posted by thinkdj at 10:32 pm in Developers,PHP,Tips n Tricks

Jeffery Vaska has “10 Tips That Every PHP Newbie Should Know“, a nice collection of tips for a newbie venturing into PHP. Tips like MySQL Connection Class, Dealing with Magic Quotes etc can be found there.

Jan
26

PHP function for Javascript redirect

posted by thinkdj at 7:35 pm in PHP,Scripts

The following code is basically JS, but has been made into a PHP function so that it could be invoked with different parameters as per our needs.

<?php
function js_redirect($url, $seconds=5) {
echo
"<script language=\"JavaScript\">\n";
echo
"<!-- hide code from displaying on browsers with JS turned off\n\n";
echo
"function redirect() {\n";
echo
"window.location = \"" . $url . "\";\n";
echo
"}\n\n";
echo
"timer = setTimeout('redirect()', '" . ($seconds*1000) . "');\n\n";
echo
"-->\n";
echo
"</script>\n";

return true;
}

js_redirect(http://blogulate.com,1); //Redirects to blogulate.com in 1 second.

?>

Eg Usage :
js_redirect(http://google.com,5); //Redirects to Google after 5 seconds.

Jan
26

Spellify : automatic input field spell check

posted by thinkdj at 7:30 pm in PHP,Scripts

auto spell check on input text field spellify

Spellify automatically checks for spelling errors on user entered text in input text fields. Spellify is powered by the Googleâ„¢ spell checker. You can see a demo at te homepage and also download the latest version there. Spellify not only works for text fields, but also on text areas.

Newer Posts »« Older Posts
Snippets from the web featuring Technology, Gadgets, Gaming, Downloads and Industry news.

 Subscribe in a reader


Categories

open all | close all