Am a first-time PHP user and am wanting to be able to test pages locally with Expression Web 2. I've installed PHP 5.2.5 (into C:/program files/php) and pointed Expression Web to php-cgi.exe in that folder. I used the php.ini-recommended file as the basis for my php.ini and following instructions turned on display_errors and set cgi.force_redirect to off.
I created a basic PHP test page as follows:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Test</title>
</head>
<body>
<? php
print "Hello world.";
echo phpinfo();
?>
</body>
</html>I'm not sure if this is related, but I renamed a working htm page to php and tried to bring it up in MEDS and the html code does display, except none of the images show up, just red-X boxes. The paths worked fine when it was an htm page...
Any ideas?
Thank you very much.
Edit: Scratch part-one of my question. An extra space cut-and-pasted from a web example was forcing a syntax error. My test page now displays. I'm still wondering why my images disappear when I rename an .htm to a .php? Thanks.