Hello !
Thank you for advice!
I know where was a problem.
This is correct code which works fine now:
<?php
print("PHP works fine");
?>
...and before I tried with this code:
<php?
print("PHP works fine");
?>
After I have installed SuSe 10.1 I have faced following problems with Apache:
1) I couldn't start apache with command apache2ctl start because of the error (file include.conf not found)
SOLUTION:
I have commented this line in config file
#Include /etc/apache2/sysconfig.d/include.conf
2) Second problem was with php (described before --- I couldn't open *.php file in browser, every time I was asked to download it)
SOLUTION:
SUSE installed Apache with PHP but config files were wrong.
In loadmodule.conf I have added this line:
LoadModule php5_module /usr/lib/apache2/mod_php5.so
.. and in mod_mime-defaults.conf this line:
AddType application/x-httpd-php .php
This line informs Apache about new type with extension *.php (this was a reason why browser asked me to download file, *.php file was unknown for Apache)
I have also made mistake in code and instead of '<?php' I had '<php?' , but after I have corrected it, I was able to execute this simple PHP code.
I hope my explanation can be helpful for everybody who faced similar problem.
regards
Rafal