troubleshooting Question

PHP Configuration error in IIS 6.0

Avatar of goretailpro
goretailpro asked on
PHP
3 Comments1 Solution509 ViewsLast Modified:
I was going by this install guide to PHP and I ran the test and I recived this error:


Warning: session_start(): Cannot send session cookie - headers already sent by (output started at E:\Inetpub\testsite.com\test.php:8) in E:\Inetpub\testsite.com\test.php on line 8

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\Inetpub\testsite.com\test.php:8) in E:\Inetpub\testsite.com\test.php on line 8
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322)

Warning: get_browser(): browscap ini directive not set. in E:\Inetpub\testsite.com\test.php on line 13

Why would I recive that error message at the top of my page with my PHP configuration..

I installed the PHP 4.4.0 then I registered php4isapi.dll then I ran this test script and I recived the information that was asking for but this error was at the top of the page.

Test Script:


<html>
     <head>
          <title>PHP Test</title>
     </head>
     <body>
          <!-- testing sessions -->
          <?session_start();?>
         
          <!-- testing browscap.ini -->
          <?
               echo $_SERVER['HTTP_USER_AGENT'] . "<br/><br/>";
               $browser = get_browser(null, true);
               print_r($browser);
               echo "<br/><br/>";
          ?>
         
          <!-- a general PHP test -->
          <? phpinfo(); ?>
     </body>
</html>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros