php-windows Digest 9 Feb 2008 15:35:34 -0000 Issue 3420

Topics (messages 28772 through 28775):

Re: include and warning: headers already sent by ..
        28772 by: Piotr Pluciennik
        28773 by: Bill Bolte
        28775 by: trystano.aol.com

fsockopen() fails in script run by IIS
        28774 by: Evan Burkitt

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Try to remove characters (like spaces) that can be found at the end of your php 
scripts...

example: 
<?php
...
your script
...
?>####

where ### are any characters (even invisible), after the closing tag. There 
should be nothing.

HTH, let me know
Piotr

germana <[EMAIL PROTECTED]> wrote: Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!


--- End Message ---
--- Begin Message ---
Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header information like redirecting to another page.


Bill Bolte

-----Original Message-----
From: germana [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 08, 2008 1:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] include and warning: headers already sent by ..

Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!

--- End Message ---
--- Begin Message ---
 Should you also just that there are no blank spaces before the includes 
statements in the script? Because the moment there is data (or blank spaces) in 
a script then the headers are sent.

Thanks

Tryst


 


 

-----Original Message-----
From: Bill Bolte <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Fri, 8 Feb 2008 21:17
Subject: RE: [PHP-WIN] include and warning: headers already sent by ..










Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header information like redirecting to another page.


Bill Bolte

-----Original Message-----
From: germana [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 08, 2008 1:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] include and warning: headers already sent by ..

Hi there!!!

i just want to ask something...

Sometimes when i need to do several include, or require_once or both i
get the messeage:

Warning: cannot modify header information - header already sent
by ....................

How i can solve this problem...

Thanks!!!

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



 


________________________________________________________________________
AOL's new homepage has launched. Take a tour at http://info.aol.co.uk/homepage/ 
now.

--- End Message ---
--- Begin Message ---
I'm using IIS 6.0 on Windows 2003 server. There is a POP3 server running on
the machine at port 110. When I run the following script in a browser (that
is, through IIS) it reports "Could not connect to localhost at port 110
($errno=12; $errstr=)". When I run it from a command prompt on the server
the connection succeeds and the script reports "Socket connection
established". The connection succeeds even when I run cmd.exe as the
Internet guest user, which is the account IIS runs scripts under.

Any ideas as to what's going on?

-Evan
-----
 <?php
 $host = "localhost";
 $port = "110";
 ?>
 <html>
<h1>Attempting to open socket on host '<?php echo ("$host")?>' at port '<?php echo ("$port")?>'</h1>
 <h2>
 <?php
 $errno = 0;
 $errstr = "<no error reported>";
 $fp = @fsockopen($host, $port, $errno, $errstr);
 if ($fp) {
 echo "Socket connection established";
 fclose($fp);
 }else {
 echo "Could not connect to $host at port $port (\$errno=$errno;
 \$errstr=$errstr)";
 }
 ?>
 </h2>
</html>
--- End Message ---

Reply via email to