Usually <?php ... ?> or <? ... ?>
Ratinonal program in php
On earlier versions of PHP, when PHP sleep was called on Windows machines, it returned an error. The command can also be interrupted by the Operating System.
PHP files are HTML files with any amount of PHP intermingled into it, so the file can be empty or only contain HTML and be valid, yes.
PHP code can be stored in any kind of file -- the extension of the file indicates what said file contains, but may not necessarily be true. The "php" extension is used to indicate PHP which is meant for execution and presentation.
Neither. It depends on your needs.
PHP is it is open-source and there are a lot of frameworks, ecommerce and cms built using PHP. It is comparatively easier to learn.
in the past ive found jsp to be much slower than PHP (correct me if im wrong) PHP is a solid stable web language and much faster in my opinion :D
Yes. It has better API's, classes and methods for developing various projects. Your job becomes a whole lot easier. Furthermore it supports multi-threading which is not supported by PHP.
python 2 is better than php coding btw
<?php // your php code goes here ?> If your product pages are created in PHP (have the .php extension) then you can simply add the php start/end tag. There is a way to have the server recognize PHP inside of HTML files but that would require some work on the server, better left to the server manager.
Depends on what you are doing, PHP does somethings Faster than JSP and in reverse.
. NET
Ultimately PHP is a programming language and MySQL is a database language. Using PHP with MySQL is a nice combination with built-in support and the simplicity of it all. However, there aren't a lot of disadvantages of using PHP with a database, it just allows for better data organization and whatnot. There are definitely advantages and disadvantages to using a database other than MySQL (such as MongoDB or PostgreSQL).
As a web developer and software engineer doing both - PHP and RoR, I'd say it's mostly a matter of taste, although the framework capacities of Ruby on Rails are really cool compared to Symfony (which is a pain in the *!~#). PHP is more frequent and I think you might find more beginner resources for PHP than RoR.
PHP is better. PHP is a general scripting language on which developers depend on a great level and on the other hand, ASP.NET is one of the top web application development frameworks by Microsoft.
considering the fact that PHP is open source and does not depend on a licensed operating system like ASP (windows), i'd say PHP is better suited if you want to learn it. although (of course) ASP has its up- and downsides, as PHP has.