2011-09-23

The benefit of Using Php and MySql

One of the first choices to make when planning a new web site is if it should be static or dynamic. Static web sites show the same article to each visitor. Of course there can be more than one page on the site, but the article is fixed. On dynamic web sites the article can change. Visitors can interact with it. For example it might be inherent for them to leave a annotation for other visitors to see. In normal a dynamic web site offers much more possibilities. But if you only want to give a short presentation of yourself or a company, the static solution might be the answer. However in most other cases the dynamic web page is the way to go.

Static pages consists of Html files generated locally on your Pc and then uploaded to the web server. This can be done in dedicated programs like Adope Dreamweaver, Microsoft Expression Web or Coffeecup Html Editor. If a turn is to be made the files are changed on the Pc and then uploaded to the server again.

ASP Web Host

To generate dynamic web pages you need to use a script. That means the web server reads and "translates" the file instead of just sending it as it is to the web browser. Php is a commonly used script language. Approximately all web hosting provides have it even in the entry level packages.

Example of Php:

?php>

Echo "Hello world!";
?>

The above example shows the text Hello world! Php and Html can indeed be mixed in one file. Start and end tags shows the server what is Php and Html. In the same way as Html files Php files can be created in any editor that can save files as plain text. The example don't indeed show the real vigor of Php. What makes it well excellent for dynamic web pages is the ability to associate to a database. This gives the possibility to store and receive information. This can be used for a wide collection of data such as user names, comment, narrative texts and so on. This also means you can add data to your web page from any computer with Internet access.

A popular database is MySql. Both Php and MySql are Open Source software and there and many resources for sustain available.

But even if you don't want to learn how to schedule Php and Sql, it is still inherent to reap the benefits of this strong combination. There are many projects that organize scripts you can use for free on your own web page. WordPress is a blogging software. Once it is set up and running it is very easy to add new posts to your page. Another solution is to get a Cms (Content administration System) like Joomla. The script files comes with instructions on how to setup them, so it can be done with a minimum of knowledge of Php. Some web hosts has even made it more easy. They offer an premise script, where you only have to supply a few lines of information, the principles takes care of the rest. You can also get other solutions like Forums or bulletin boards programmed in Php and ready to run.

Php and MySql is also a very scalable solution. From a hidden web page or blog hosted on a cheap hosting victualer up to indeed big communal networks. For example is Facebook based on Php and MySql.

The benefit of Using Php and MySql

No comments:

Post a Comment