Hi all
I've created a PHP script which interrogates a database and draws a graph based on the results. I used EasyPHP2.01b under XP for the development, but when I tried to access the files using Linux and xampp, I got parse errors on line 1. I've since installed xampp and get the same parse error. I can't understand why the code works with EasyPHP and not xampp.
I've included the first couole of lines, plus the error message.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>......
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\Temperature\temperature_dti.php on line 1
I've tried to change the double quotes to single quotes, I've changed the text editor from Notepad++ to Notepad - same result. I've only got one set of quotes on my keyboard, so don't know how I could change to anything different.
If anyone can help, it would be appreciated.
Thanks
Al