Posts Tagged ‘web development’

HTML5 Samples

July 16th, 2010

Step one

You can use standard object testing to determine if the browser supports GeoLocation.

<script>
    /**
    * This function is the callback which is passed the result from the .getCurrentPosition()
    * function. The pos argument can contain more information than just the latitude/longitude,
    * such as altitude, accuracy and speed information.
    *
    * @param object pos The result from the getCurrentPosition() call
    */
    function myCallback(pos)
    {
        var myLatitude  = pos.latitude;
        var myLongitude = pos.longitude;
    }

    /**
    * Test for GeoLocation support and make the call
    */
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(myCallback);
    } else {
        alert("Sorry, your browser doesn't appear to support GeoLocation");
    }

</script>

Step two

Once you have tested for it, we can then retrieve the position using the getCurrentPosition() method. You pass this method a callback function which you define. This callback function is given an object (if successful), with various properties:

  • latitude
  • longitude
  • altitude (optional)
  • accuracy
  • altitudeAccuracy (optional)
  • heading (optional)
  • speed (optional)
  • timestamp
more  detail go to

CMS With XML Based Data Storage

December 31st, 2009

OPEN SOURCE :)
GetSimple is The Simplest Content Management System EVER.
GetSimple has everything your client needs, and nothing a CMS doesn’t

GetSimple is an open-source project licensed under the GNU GENERAL PUBLIC LICENSE.

GetSimple don’t use mySQL to store information, but instead depend the simplicity of XML. By utilizing XML, able stay away from introducing an extra layer of slowness and complexity associated with connecting to a mySQL database. Because GetSimple was built specifically for the small-site market, feel this is the absolutely best option for data storage.

GetSimple CMS Home Page
About GetSimple CMS
Demo
Documentation

REQUIREMENTS

  • UNIX/Linux host
  • PHP 5.1.3+
  • Apache
  • No Database
  • 6 minutes to spare

FEATURE LIST

  • XML based data storage
  • Best-in-Class User Interface
  • ‘Undo’ protection & backups
  • Easy to theme
  • Great documentation
  • Growing community

symfony 2.0

July 6th, 2009

hello readers,

today i w’ll tell you about symfony 2.0  upcoming version of symfony after sucess of symfony 1.0 and 1.2,

One thing is very intersting in symfony 2.0 is it’s  more faster then old versions.

also many features updated and change in controlorrs and many more …

if you want to  know more about symfony 2.0 then  click here

enjoy,

kiran :)

Developing Symfony with Eclipse

June 3rd, 2009

hi i found a great link for symfony developers.

Developing Symfony with Eclipse

The Symfoclipse-Plugin: Currently in Version 1.2.1 this is the first Symfony-Plugin for Eclipse. Some glitches and rough edges but pretty usefull. It allows you to run common commands like freeze, cc and so on for a symfony project. First support for YAML is also available. The plugin is available from: http://noy.cc/symfoclipse

from ,

hiren sejpal :)

Creative Uses for PHP

May 6th, 2009

If you’re a familier with the word ‘PHP’ then here is some useful creative uses for it.

E-Commerce

E-commerce is one of the major uses for PHP. From a small business level to an enterprise level, businesses are always looking to create additional streams of revenue online. If you know how to integrate existing e-commerce solutions or build your own from scratch, this gives you a distinct advantage with your clients.

Beginners

Advanced Coders

· CodeIgniter

· CakePHP.

Graphical User Interface

If PHP is your favorite programming language, then you can use some of these PHP extensions to get you started creating GUI applications.

  • PHP GTK – This extension is a popular open source that implements the GIMP toolkit
  • ZZEE PHP GUI – A paid solution that allows you to turn your PHP scripts into Windows applications

Image Processing and Generation

Using the GD library with PHP, you can do more than just output HTML to the browser! You can output images in different file types including jpeg, png, and gif. This feature of PHP is useful because it allows you to create thumbnail pictures, add watermarks, resize and crop images, and even create a photo gallery!

Mailing Lists

You can write your own script to send e-mail newsletters to your client, or use a ready-made script. The PHP online documentation explains PHP mailing functions in more detail. There are also scripts you can download and install on your website:

Developing Facebook Applications

You can integrate Facebook with your website using PHP. If you have developed Facebook applications using another language or you would like to get started with PHP, the Facebook developer’s wiki can help you to get started.

Create Graphs and Charts

Do you need visual representations of numbers on your site? PHP can create graphs and charts too! Using Image_Graph, you can create up to fourteen different types of charts including pie charts, bar graphs,.

Generating PDF Files

The PDF format is Adobe’s proprietary file type for document exchange. Using a library called PDFLib, you can generate PDF files with PHP. This library is already included with PHP5; to access it, you need to uncomment the appropriate lines in your PHP configuration file. An example of why creating PDF files might come in useful is, if you were building an online invoicing application and you wanted to output an HTML-generated invoice in PDF format.

Parsing XML Files

PHP allows you to parse XML files. Parsing XML is an important feature of PHP 5 because not all browsers can output the contents of an XML file; so you can create a parser in PHP to facilitate this process. Using XML is important for RSS feeds, and also for data storage and rendering data on different devices – for example, cell phones use an implementation of XML called WML (Wireless Markup Language). Working with XML files in PHP is similar to handling the opening, closing, and reading of a file.

Content Management Systems

One of the most popular uses of PHP is creating or using Content Management System. A good CMS allows your clients to update their website and add content without any in-depth knowledge of HTML and CSS. You can use one of the widely available free or commercial solutions listed below:

Create Dynamic Website Templates

Using PHP, you can make it easier to add pages and elements to your websites dynamically. You begin by creating the HTML page and splitting it into the header, main content, and footer sections. Add the .php extension to your subsequent pages and use server-side Includes for the header and footer for each new page. You can also have dynamic sidebars and top navigation sections. As a matter of fact, the more “templated” your site is, the easier it is to update the content.

Building an Online Community

You can build your own PHP-driven online community, or choose from widely available scripts that you can implement into your website. Some popular ones include:

from kiran vadariya :)

some usefule symfony plugins :)