PHP 5.1.2 on IIS6 test.php works but index.php prints sytax
Posted: Mon Feb 12, 2007 12:01 pm
feyd | Please use
but when i run my index.php, it just prints like half the php syntax onto the browser. what could be wrong here?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
we are reconfiguring the directory structure for a client of ours. unfortunately they are running on IIS. i have had a lot of trouble configuring everything correctly but after i followed [url=http://www.peterguy.com/php/install_IIS6.html]this guide[/url] for the most part, and now i am much closer to completing this install than ever before.
test.php works fine:Code: Select all
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<!-- testing sessions -->
<?php session_start(); ?>
<!-- testing browscap.ini -->
<?php
echo $_SERVER['HTTP_USER_AGENT'] . "<br/><br/>";
$browser = get_browser(null, true);
print_r($browser);
echo "<br/><br/>";
?>
<!-- a general PHP test -->
<?php phpinfo(); ?>
</body>
</html>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]