Hi Gary,
It is probably because you have the file named .html and not .php.
I took your code:
<?php
$seconds=1;
echo $seconds;
?>
and put it an a .html and .php file and put it on my server.
With the.php file, I got a result of 1
for the .html file I got a blank screen.
HTH,
Karl
On Apr 24, 2010, at 7:24 PM, Gary wrote:
Michiel
Thank you for your reply, but that is not it.
I took it down to
<?php
$seconds=1;
echo $seconds;
?>
Total code, and got nothing, blank screen. (this is just a silly
exercise
where I was going to input a date of birth and produce age in
seconds) When
I put the exact same code on my other machine, it showed numbers and
calculations, most important, it showed something at all.
This is an issue with configuration or settings somewhere, or
perhaps my
XAMPP is corrupt.
Thank you for your reply.
Gary
"Michiel Sikma" <michiel@xxxxxxxxxxxxxx> wrote in message
news:y2s6cda1ded1004241703w90e8790ay46bb77c4e1162be1@xxxxxxxxxxxxxxxxx
On 25 April 2010 00:45, Gary <gwp@xxxxxxxxxxxxxxxx> wrote:
What would cause a machine not to read/process php?
I have a laptop that I have been ever increasing using for php
scripting.
I decided to do a simple experiment, it started out something like:
$seconds=1;
$minutes=$seconds*60;
$hours=$minutes*60;
$days="$hours*24;
echo $seconds;
echo $minutes;
echo $hours;
echo $days;
-snip-
A text editor with syntax highlighting would certainly help.
There's a
double quote " right in front of the $hours variable on the fourth
line.
That's an unterminated string literal, a syntax error, which would
cause
PHP
to abort entirely. Your php's error log probably has a message in
it to
this
extent.
The reason why you got a number of different results is probably
because
you
added another double quote further down in later versions.
But if that's somehow not it, post the entire source code of your
file on
a
site like http://pastie.org/ so we can have a closer look.
Michiel
__________ Information from ESET Smart Security, version of virus
signature database 5057 (20100424) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus
signature database 5057 (20100424) __________
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php