PHP not being read?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

Nothing showed in the browser on my local server. I then tried various changes, adding single quotes, double quotes, parenthsis, changing echo to print....nothing.

Finally, after looking online and through a couples of books, I was able to get this in the browser:

$minutes"; echo $hours; echo $days; ?>

I also got this in a browser (code not included in this post but you can see how far back to the basics I went to get this to work).

Hello World'; echo "

$minutes
"; echo $hours; echo $days; ?>

When I sent the file over to my other computer...I got what I thought I was going to get, numbers and calculations.

What would cause a browser to display the closing tags of php?

I dont know where to begin to look, could this be a setting in my editor (Dreamweaver CS3), the testing server config file, the browsers?

Thanks for your help.

Gary

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5057 (20100424) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux