Recent Posts
Blogulate
Return To Blog Listing
Tech, reviews, tips n tricks, internet, business news, humor and what not!
Recent Posts Tagged With 'php'
PHP function for Javascript redirect
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\&...
Spellify : automatic input field spell check
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...
Great looking charts in seconds with Open Flash Chart
Open Flash Chart lets you make great chart/pie representations from you data for a great looking output. The data file is either a text file, or a .php, Perl, Python, Java (or another flavour of dynamic) page. Open Flash Chart, is open source. It i...
PHP Performance Benchmark Script
/* PHP Performance Benchmark Script Copyright 2003 : PHP Consulting There are two settings: First, set $file to be the server and page that you want to benchmark. Secondly, set $iter to be the number of times you want it loaded. */ error_repor...
Remove invalid characters from a filename
function filename_safe($filename) { $temp = $filename; // Lower case $temp = strtolower($temp); // Replace spaces with a '_' $temp = str_replace(" ", "_", $temp); // Loop through string $result = ''; for ($i=0; $i if (preg_match(’([0-9]|[...
Browser Detection with PHP
Did you know that PHP has a built in function to detect which browser your page visitor is running? Try : < ? $get_visitor_browser = get_browser(null,true); print_r($get_visitor_browser); ?> The output of this function is an object which incl...
