• Login
  • Become a blogger
  • Scripts


    Browser Detection with PHP

    Posted on Wednesday, December 5th, 2007 by thinkdj

    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 includes details of the user’s browser:
    [browser_name_regex] => ^mozilla/5.0 (windows; .*; windows nt 5.1.*) gecko/.* firefox/1.5.*$
    [browser_name_pattern] => Mozilla/5.0 (Windows; *; Windows NT 5.1*) [...]

    PHP Script – Open port check

    Posted on Friday, November 16th, 2007 by thinkdj

    Got this from Vinu’s blog. This simple script will attempt to connect to the site:port using fsockopen to determine if a service is running on the port.
    < ?php

    $site = “vinuthomas.com”;
    $port = 80;
    $fp = fsockopen($site,$port,$errno,$errstr,10);
    if(!$fp)
    {
    echo “Cannot connect to server”;
    }
    else{
    echo “Connect was successful – no errors on Port “.$port.” at “.$site;
    fclose($fp);
    }
    ?>

    Tripoli – generic CSS standard for HTML rendering

    Posted on Wednesday, November 14th, 2007 by thinkdj

    Seems Dave has brought out Tripoli. Tripoli is a generic CSS standard for HTML rendering. By resetting and rebuilding browser standards, Tripoli forms a stable, cross-browser rendering foundation for your web projects.
    The ideas behind Tripoli

    to form a generic standard for rendering HTML 4 tags
    to reset and rebuild all browser defaults for maximum compability
    to address deprecated [...]

    Simple, fast and light Image gallery using Javascript and CSS

    Posted on Wednesday, November 14th, 2007 by thinkdj

    Here is a very simple script ( Javascript + CSS + HTML ) for a lightweight photogallery for webmasters who doesn’t want a full fledged gallery like Gallery2. It’s lightweight, uses unobtrusive javascript to create thumbnails and supports great cross-browser consistency.

    Try a Demo online
    Visit Homepage

    More from "Scripts"

    Find what you are looking for

    Recently added

    Categories

    Blogulate

    Keeping you updated of the latest fads and developments of the industry via amalgamated web content.

    Join us

    Post articles on blogulate and monetize them. Learn more »

    Stay updated

    Subscribe now and stay aware of the latest trends and happenings on the www. Get notified via email when we update.

    Enter your email address:

    Blogulate is based on Magnus premium theme by WizeDesigns
    © 2009 Blogulate. Some rights reserved.