<div style='background-color: none transparent;'></div>

Pages

The fight is not over!! MS is now moving .net to compile native, acknowledging the short comings in the .net framework. We need to demand a new vb6 that compiles our projects as they run today. Call, write, email, do what you can to put pressure on MS to bring back VB6!!! The new move by MS means they also acknowledge what we want is legitimate!!! Tell all your friends and colleagues to join in and help! Read more
Think Analytically, Verbalized what you have Thought, and Actualized what you had Verbalized... Read more
1 2 3 4 5 6 7
More Article »
More Article »
Showing posts with label Lectures. Show all posts
Showing posts with label Lectures. Show all posts

PHP Tutorial for Beginners

Saturday, August 29, 2015

PHP is a powerful scripting language that fits gracefully into HTML and puts the tools for creating dynamic websites in the hands of the people — even people like me who were too lazy to learn Perl scripting and other complicated backend hoodoo.
This lecture is for the person who understands HTML but doesn’t know much about PHP. One of PHP’s greatest attributes is that it’s a freely distributed open-source language, so there’s all kinds of excellent reference material about it out there, which means that once you understand the basics, it’s easy to find the materials that you need to push your skills.


What Is PHP?

So, what is this whole PHP business all about?
PHP is a program that gets installed on top of your web server software. It works with versions of Apache (Tutorial:Apache for Beginners), Microsoft IIS and other server software packages.
You use PHP by inserting PHP code inside the HTML that makes up your website. When a client (anybody on the web) visits a web page that contains this code, your server executes it. That’s why you need to install your own server in order to test PHP locally — the server is the brain here, not your browser. Users don’t need any special plug-ins or anything to see your PHP in action — it gets to the end user as regular old-fashioned HTML.
PHP is a scripting language, like HTML. That means that code does not need to be compiled before it gets used — it gets processed on the fly as necessary.
Before we dig in, you should know about a site called PHP.net. PHP is an open-source language, and PHP.net is its control center, with extensive reference material about the language and tips sent in by users across the globe. PHP.net has exceptional, deep information about the language, but it can be a little cryptic for the newcomer. We’ll look more closely at how to use PHP.net at the end of this tutorial.
So, what kinds of things can PHP do? Welllll … it can:
  • take info from web-based forms and use it in a million ways (store it in a database, create conditional pages depending on what the forms said, set cookies for later, send e-mail, write your mom on her birthday);
  • authenticate and track users;
  • run threaded discussions on your site;
  • serve different pages to people using different browsers or devices;
  • publish an entire website using just a single layout template (server-side includes-style);
  • serve XML pages.
But before we can get to the specific uses of PHP, we need to start with a quick preview of the building blocks of PHP, beginning with a sample script. This example script is titled “chickenman.php.” When called by a web browser, it would simply read, “I am the CHICKEN MAN!”
1<?php
2
3
4
5 print ("I am the CHICKEN MAN");
6
7
8
9 ?>
The  ?php and ?¢ tags start and end a PHP script, and your meat goes in the middle. Got that? Good! Now let’s walk through the basic rules you need to know to before you can write your first PHP script.
Continue Reading | comments

Standard and ActiveX .exe projects: A Beginner’s Guide

Thursday, August 27, 2015


    Here we develop a simple ActiveX EXE with just one form. The name of the ActiveX component is clsActivexEx. The example is chosen to demonstrate the use of ActiveX EXE in conjunction with Standard EXE. We will develop a Standard EXE later.
The example provided is simple. It works like this: You select either numbers or alphabets in the Main (Standard EXE). The selection (number/alphabet but not both) is passed on to the ActiveX EXE. Now, in the ActiveX EXE, you select specific number (say “2”) or alphabet (say “A”). That specific number or alphabet is again passed back to the Standard EXE. It is similar to, say, the Standard EXE selects either birds or animals. If the Standard EXE chooses birds, then the ActiveX EXE can choose any one of a given set of birds. It doesn’t have the option to choose any animal (because the Standard EXE already chosen birds). The selected bird is passed back to the Standard EXE. The example makes it clear as you read on.
1. Open Visual Basic 6.0 - it should be on your start menu if you have just installed it Programs -> Microsoft Visual Basic 6.0 -> Microsoft Visual Basic 6.0
Open an instance of Visual Basic Choose ActiveX EXE and select Open.
Continue Reading | comments

Standard and ActiveX .exe projects: A Beginner’s Guide


Overview

This beginner’s guide deals with the fundamental aspects of developing a standard exe file, as well as an AactiveX EXE file. We also demonstrate the techniques for interacting between Standard EXE and ActiveX EXE programs by passing parameter values. Screenshots are provided for ease of understanding the concepts involved. Code for the examples used in this tutorial is provided in the appendix. It is recommended to have some prior working experience with VB6 applications programming before proceeding with this tutorial.

2. Standard and ActiveX Applications:


2.1 What is a standard exe application?

A standard exe application is one that is created using Standard EXE project. It is the most widely used Project type using VB6. Standard EXE application is normally the most widely used among the available Project types in Visual Basic. Stand-alone programs have an .EXE file extension.

2.2 Standard EXE areas of use:

A standard EXE application is normally used when you want to develop a stand-alone application. Examples include calculators, text editors, and other similar applications.

2.3 What is an ActiveX EXE application?

An ActiveX EXE application is one that is created using ActiveX EXE project. ActiveX EXE are widely used in conjunction with standard EXE applications. There are three types of widely used of ActiveX projects. These are:
a. ActiveX EXE
b. ActiveX DLL
c. ActiveX Control

ActiveX EXE: Unlike a stand-alone EXE file, an ActiveX EXE file is designed to work as an OLE server, which is nothing more than a program designed to share information with another program. It has an .EXE file extension.
ActiveX DLL: ActiveX DLL files are not meant to be used by themselves. Instead, these types of files contain subprograms designed to function as building blocks when creating a stand-alone program. It has a .DLL file extension.
ActiveX Control: Unlike an ActiveX DLL or ActiveX EXE file, an ActiveX Control file usually provides both subprograms and a user interface that you can reuse in other programs. It has an .OCX file extension.

2.4 ActiveX EXE/DLL Usage

  1. The ActiveX EXE/DLL is normally used when you need to build a component that is separate from the main program. The concept is based on COM model.
  2. ActiveX DLL/EXE allows multiple applications to share the same code. This allows for scalability of programs, and saves time because you only need to write the code once.
  3. ActiveX DLLs and ActiveX EXEs are almost same in the ways they are built and used. In either case, you build one or more classes that applications can use to do something.
  4. One of the main differences between ActiveX EXE and an ActiveX DLL's is that the code is executed within the main program's address space for ActiveX DLL. This is because the code lies inside the program's address space, calling methods and execution of code is very fast.

2.5 Compare Standard EXE ActiveX EXE/DLL projects

An ActiveX Exe provides the reusability of code, by accessing it from different clients.
An ActiveX Exe is a component that can be called by another application by providing a reference to the component. But a Standard Exe application cannot be called in this way.
An ActiveX EXE's code is run in a separate process. When the main program calls an ActiveX EXE's method, the application passes required parameters into the ActiveX EXE's and calls the method. The ActiveX EXE, upon execution may return the results to the main program. This is slower than running an ActiveX DLL's method inside the main program's address space.

Continue Reading | comments
 
Copyright © 2011. datasavvy . All Rights Reserved
Company Info | Contact Us | Privacy policy | Term of use | Widget | Advertise with Us | Site map
Template Modify by Creating Website . Inpire by Darkmatter Rockettheme Proudly powered by Blogger