php-windows Digest 29 Dec 2004 08:07:50 -0000 Issue 2517
Topics (messages 25197 through 25198):
PHP files aren't parsed
25197 by: Phaeilo
About the unexpected T_VARIABLE
25198 by: michael.skys.com.cn
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I've set up an Apache Server under Windows 2000. I've installed PHP with the
following lines in the httpd.conf and apache starts without errors:
#PHP
LoadModule php5_module d:/Programme/php/php5apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddModule mod_php5.c
So, but if I open an php file, Firefox shows me the download window in order
to download the file. What's wrong there?
Thanks for help.
Phaeilo
--- End Message ---
--- Begin Message ---
Hi;
I'm new in php. I has try some sample code in the book
<? php
$hamburger = 4.95;
$milkshake = 1.95;
$cola = .85;
$food = 2 * $hamburger + $milkshake + $cola;
$tax = $food * .075;
$tip = $food * .16;
$total = $food + $tax + $tip;
print "Total cost of the meal is \$$total";
?>
But I always get "Parse error: syntax error, unexpected T_VARIABLE in
e:\Inetpub\wwwroot\meal.php on line 2"
So any suggestion
Regards
Michael
--- End Message ---