Develop Desktop GUI Apps with PHP-GTK, the Standalone PHP

Posted on October 31st, 2008 by admin


Learn the basic building blocks of PHP-GTK coding with a tutorial for first installing the language and then building and connecting its widgets, buttons, and functions.


PHP, an increasingly popular Web scripting language is particularly well suited for the creation of dynamic database-connected Web sites. The two strengths that make PHP a powerful server-side scripting language are its abilities to:

1.    embed directly into existing HTML
2.    connect to a wide variety of databases

PHP has itself in the standalone application arena as well with PHP-GTK. As its name indicates, PHP-GTK combines PHP with the GIMP Tool Kit (GTK), an object-oriented framework for developing graphical user interfaces (GUIs). GIMP (GNU Image Manipulation Program), which was developed using X11 on Linux platforms, basically enables the same PHP-GTK code to run on Linux, MS Windows, BeOS, and Mac 0SX without any changes. So while PHP requires a server—often Apache—to run, you can use PHP-GTK to create standalone GUIs that run on Windows, Linux, or Mac desktops, independently of a server.

This article provides a guide to getting PHP-GTK up and running on your Windows and/or Linux desktop(s), and concludes with a tutorial for building and connecting its widgets, buttons, and functions in a desktop application. Read More

Comments (0) Oct 31 2008

The Top 35 Torrent Sites of 2008

Posted on October 30th, 2008 by admin

  1. Demonoid.com is back online! After legal conflicts in April of 2008, they have reestablished themselves outside of the USA, and have resumed torrent operations. Demonoid is still a private community, and members are held liable for any leeching that their invited friends do in this community. If you are lucky enough to get a Demonoid membership, invite your friends carefully, lest you lose your own membership.
  2. YouTorrent.com Still in beta testing format, this new torrent site claims to be the largest legal torrent search engine today. Accordingly, the result sets are much smaller than the “pirate” counterparts, but definitely try this site for yourself.
  3. BiteNova (formerly known as “Bi-Torrents”, BiteNova is a free Torrent site with a spartan look and fast searching format.)
  4. Bitsoup Bitsoup is a growing favorite amongst P2P downloaders. As the trend towards private torrent sharing continues, you will need to signup and join as a member to participate in the Bitsoup swarm.
  5. Isohunt.com

(In a shocking turn of the tables this September, the Isohunt webmaster is counter-suing the Canadian music industry. He is claiming that previous copyright violation suits against him were unfounded, and that he is entitled to have his legal expenses recovered. Read the entire story at www.isohunt.com) Read More

Comments (0) Oct 30 2008

Detect Browser Compatibility with the Request Object

Posted on October 29th, 2008 by Rakesh Nair

Use JavaScript to set up Microsoft’s and the Mozilla-based browsers’ different request objects.

Browser compatibility is an important consideration. You have to make sure the “engine” behind Ajax’s server handshake is properly constructed, but you can never predict which browsers your users will favor.

The programming tool that allows Ajax applications to make HTTP requests to a server is an object that you can use from within JavaScript code. In the world of Firefox and Netscape (as well as Safari and Opera), this object is named XMLHttpRequest. However, continuing with the tradition established by IE 5.0, recent vintages of Internet Explorer implement the software as an ActiveX object named Microsoft.XMLHTTP or Msxml2.XMLHTTP.

Microsoft.XMLHTTP and Msxml2.XMLHTTP refer to different versions of software components that are a part of Microsoft XML Core Services (MSXML). Here’s what our contributing IE expert says on this matter.

“If you use Microsoft.XMLHTTP, the ActiveXObject wrapper will try to initialize the last known good version of the object that has this program (or “prog”) ID. This object, in theory, could be MSXML 1.0, but almost no one these days has that version because it has been updated via Windows Update, IE 6, or another means. MSXML 1.0 was very short-lived. If you use MSXML2.XMLHTTP, that signifies to the wrapper to use at least MSXML 2.0 libraries. Most developers do not need to use a specific version of MSXML, such as MSXML2.XMLHTTP.4.0 or MSXML2.XMLHTTP.5.0.”

Although Microsoft and the engineers on the Mozilla project have chosen to implement this object differently, we will refer to the ActiveX and XMLHttpRequest objects simply as “request objects” throughout, because they have very similar functionality.

As a first step in using Ajax, you must check if the user’s browser supports either one of the Mozilla-based orActiveX-related request objects, and then properly initialize the object. Read More

Comments (0) Oct 29 2008

Spreadsheet Excel Writer

Posted on October 28th, 2008 by Rakesh Nair

There was a simple solution to generating excel sheets using PHP. A friend of mine had created it using a simple code and without much formatting. Unfortunately, when it came to client side demands everything had to “LOOK” good.

This forced me to look for an alternate solution to the generation of fully formatted excel sheets. And then I found Spreadsheet_Excel_Writer. Well, this was class based and I had to include a lot of files (some of them weren’t even there in the package) but the final output was sweet and since it included formatting too, the clients were pretty happy with the stuff too.

Just to go thru the entire thing in basic details I’ll explain a pretty short example and hope that you’ll follow up on the stuff later.
Let’s start off then. ;)

/*
* Creating object of class
* The second part within ()
* indicates the save location
* of the file
*/

$workbook = new Spreadsheet_Excel_Writer(’../../../excelfiles/OnlineExcel.xls’);
Read More

Comments (2) Oct 28 2008

The Humorous Adventure.. by Rakesh Nair

Posted on October 27th, 2008 by admin

Chapter 2 - The Problem

“Well, Ted. The manager of the company told me about his problem with English.”

“What problem? He speaks English as good as I do. Except for…”

“It’s that exception that I am talking about. Yes, he can speak English very well. However, it is not possible for you to use idioms and phrases in front of him and expect him to understand. He takes English only in its literal meaning.”

“That’s why he reacted so awkwardly to what I said. But that can be handled, I suppose.”
More..

Previous Chapter Click Here

Comments (0) Oct 27 2008

Web 1.0 vs Web 2.0: The Visual Difference

Posted on October 27th, 2008 by admin

Read More

Comments (0) Oct 27 2008

Dropdown with the file names

Posted on October 24th, 2008 by sagar

hii guys today i came across a problem wherein i had to fill in a dropdown menu with all the file names in a particular folder. and this is wat i hav got from a free source and believe me guys this is as simple as you can imagine.. Read More

Comments (3) Oct 24 2008

Announcement

Posted on October 23rd, 2008 by admin

hii guys ..
its always a pleasure to interact with you and here i am again to hav some words with you all. first of all i am very thankful to all of you for your immense response and your interest towards my new practises. i am vry hapy with your response in form of enormous hits in my story section introduced last monday i.e. 20 - oct- 2008 on the other hand i realy apologize to all my seed readers as i have received so many complaints from them for not being able to find this story section easily. so for all you seed readers i am placing a link below here which will redirect you to this new section with all ease.

The Humorous Adventure

Comments (0) Oct 23 2008

Dabo Desktop Application Framework

Posted on October 22nd, 2008 by admin

Desktop applications. That’s what Dabo does. It’s not YAWF (yet another web framework). There are plenty of excellent web frameworks out there, so if that’s what you are looking for, Dabo isn’t for you. But there are almost no desktop application frameworks out there, and if you want to create applications that run on Windows, OS X or Linux, Dabo is for you!

    Dabo is a 3-tier, cross-platform application development framework, written in Python atop the wxPython GUI toolkit. And while Dabo is designed to create database-centric apps, that is not a requirement. Lots of people are using Dabo for the GUI tools to create apps that have no need to connect to a database at all.

    Dabo’s authors, Ed Leafe and Paul McNett, have strong backgrounds in database application development using the awesome and underrated Microsoft Visual FoxPro development environment.

    While Visual FoxPro shines at developing data-centric applications, it has one limitation that cannot be ignored: it only runs on Microsoft Windows, and Ed and Paul both have clients that want their applications to run on Linux and Macintosh. We are sure we are not alone in this regard: it is a multi-platform world with more diverse needs than one vendor can fulfill. Read More

    Comments (0) Oct 22 2008

    Should we shift? iWeb - the Features

    Posted on October 21st, 2008 by Rakesh Nair

    There was a recent blog post which said that Opera study: only 4.13% of the web is standards-compliant.
    The blog also included a small bit of extra info which said that of the web pages that were available on the sites, those made with Adobe Dreamweaver were less than 4% compliant with the standards whereas those made with Apple iWeb had a compliance rate of a whopping 84%.

    This prompted me to do a bit of research on iWeb. Now since I’m a Windows user, I haven’t experienced any of the features that have been mentioned here but I have tried to mention those features which Dreamweaver (as far as my knowledge goes) does not automatically do.

    Let’s begin then. Have fun reading it.

    Web widgets

    With iWeb, it’s easy to add live content from other websites — like videos, stock tickers, and news headlines — directly into your web pages. So you can create pages that are informative, interesting, or just plain fun. Read More

    Comments (0) Oct 21 2008