PHP not being read?

From: Date: Sat, 24 Apr 2010 22:45:07 +0000
Subject: PHP not being read?
Groups: php.general 
Request: Send a blank email to php-general+get-304530@lists.php.net to get a copy of this message
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

« previous php.general (#304530) next »