Will PHP application run on other OS


I have taken the unix shared plan from cpwebhosting.net, but, now I am feeling one problem, that on my PC I am having windows, and I am doing the development in PHP on that, will that application will run on the UNIX system.

No problem in that, PHP is designed to run on many operating systems and to cooperate with many servers and databases. You can build for a Unix environment and shift your work to NT without a problem. You can test a project with Personal Web Server and install it on a Unix system running on PHP as an Apache module.

Is PHP easy to learn


Is PHP an easy language to learn?

yes. You really can learn the basics of PHP in 24 hours. PHP provides an enormous wealth of functions that allow you to do things for which you would have to write custom code in other languages.

PHP developed for use in banking industry


I have heard that PHP was originally developed for use in the banking industry

No it is not true, PHP was originally developed for Web publishing.

Web Servers supporting PHP


Which web servers are supporting PHP?

PHP is truly cross-platform. It runs on the Windows operating system; most versions of Unix, including Linux; and Macintosh OS X.

Support is provided for a range of Web servers including Apache (itself open-source and cross-platform), Microsoft Internet Information Server, WebSite Pro, the iPlanet Web Server, and Microsoft’s Personal Web Server. The latter is useful if you want to test your scripts offline on a Windows machine, although Apache can also be run on Windows.

To know that PHP is there on Server


How to know that PHP is there on the server?

Create a page, and upload it on the server, with the following content:
<?php
phpinfo();
?>
Give the .php extension to the page.
The code causes information about our PHP installation to be output to the browser. The phpinfo() function is very useful for debugging scripts because of the contextual information it provides.

Best start and end tags in PHP


Which are the best start and end tags to use in PHP?

It is largely a matter of preference. For the sake of portability, the standard tags (<?php and ?>) are probably the safest choice. Short tags are enabled by default and have the virtue of brevity, but to promote portability, it might be safest to avoid them.

Editors to be avoided while creating PHP code


Which editors should I avoid when creating PHP code?

Do not use word processors that format text for printing (such as Word or OpenOffice). Even if you save files created using this type of editor in plain text format, hidden characters can creep into your code.

Comment PHP code


When should I comment my PHP code?

This is a matter of preference. Some short scripts will be self-explanatory to you, even after a long interval. For scripts of any length or complexity, you should comment your code. This will save you time and frustration in the long run

Output a string on browser


What are you using to output a string to the browser?

We would usually use print() to write to the browser, although we could use echo() with the same results