Wednesday, September 16, 2009

Show Date in your Website


Sunday, September 13, 2009

Difference between ASP.NET and VB.NET

ASP.Net is a program application with server controls with programmable objects, which can do the same job HTML did in the past. ASP.Net is used to build a Website and VB.Net is a computer language you use to build the site. Some use VB.Net and others use C# (C Sharp language) to build a website. Using ASP. Net and VB.Net or C# you can build an E-commerce store, which has multi funcitonal capabilities. You can integrate PayPal or one of the other payment programs into your site. Create an Email system, speed up the applications by caching the pages and the data within the pages of your site and do a number of other things to successfully run an E- commerce store on the Internet.

ASP.Net is very successful Web application platform used by individuals and many large companies, who want to build and run their own websites. ASP.Net provides server controls with the ability to give you rich web content and more. Anyone willing to purchase the software and learn how to properly use this technology can use the tools, and application system to build a great Website. You can develope and build your own database choosing to use VB.net or C# language. Many websites today, which were built in the past used HTML language to build their websites.

Difference Between Asp.net And Php

PHP and ASP.NET are two of the most widely used languages for development of web applications. Both allow development of complex and sophisticated sites, but both are very different.

PHP is a language. PHP consists of a platform-independent engine that parses PHP scripts. This language also provides common web application functionality such as database connectivity.

ASP.NET is not a language, but a technology and is a small part of the .NET Framework. The Dot NET Framework consists of a) CLR – Common Language Runtime which manages execution of the code b) a hierarchical set of class libraries. These libraries are extensive and provide a great deal of functionality both for web-based applications and well as windows-based.

ASP.NET framework is built entirely on an OOP paradigm and OOP concepts while PHP is not.

PHP does not follow the OOP paradigm entirely. It only supports partial encapsulation, and partial polymorphism.


Compilation is also different in PHP and ASP.NET.

In PHP, when a page is requested, the HTML and inline PHP script is compiled to binary format called Zend Opcodes. Once compiled, the opcodes are run by the Zend Engine and HTML is generated which is sent to the client. Commercial products are available that increase the speed at which PHP pages are executed.

In contrast, when an ASP.NET page is first requested it is converted into an intermediate language called MSIL (Microsoft Intermediate Language). The CLR then converts this MSIL to machine code. Conversion to machine code only takes place once for each page request (unless code has been modified). All subsequent requests use the already generated machine code. In ASP.NET no optimization product is required as the MSIL generated is already in its most optimized form.


Bookmark and Share

Thursday, September 10, 2009

Login System for your Web by PHP

Step-1:
Creating Mysql Table (databse name: "tarique"): form is name of mysql table.

CREATE TABLE `form` (
`name` VARCHAR( 50 ) NOT NULL ,
`age` INT( 20 ) NOT NULL ,
`E-mail` VARCHAR( 50 ) NOT NULL ,
`password` VARCHAR( 20 ) NOT NULL
) ENGINE = MYISAM ;



Step-2:
Crating HTML Form file (File name "registration.html"): regtoweb.php is name of php file.



















Step-3:
Crating PHP file (File name "regtoweb.php"): Must save your file name as regtoweb.php. and "tarique" is the mysql database name.

$fname=$_POST["name"];
$fage=$_POST["age"];
$femail=$_POST["E-mail"];
$fpassword=$_POST["password"];
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("alhera", $con);

mysql_query("INSERT INTO form(`name`, `age`, `E-mail`, `password`) VALUES('$fname','$fage','$femail','$fpassword')");
echo "Your record successfully added";

mysql_select_db("alhera", $con);

$result = mysql_query("SELECT * FROM form");

echo "





";

while($row = mysql_fetch_array($result))
{
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
}
echo "
nameageE-mailpassword
" . $row['name'] . "" . $row['age'] . "" . $row['E-mail'] . "" . $row['password'] . "
";

mysql_close($con);
?>



By using this code you can make login system into your localhost.

PHP Developping Site

http://www.oreillynet.com/pub/a/php/2002/10/24/simplesearchengine.html?page=3

Search This Blog

Followers