[PHP-WIN] fsockopen() fails in script run by IIS

2008-02-08 Thread Evan Burkitt
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

RE: [PHP-WIN] include and warning: headers already sent by ..

2008-02-08 Thread Bill Bolte
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: Frid

Re: [PHP-WIN] include and warning: headers already sent by ..

2008-02-08 Thread Piotr Pluciennik
Try to remove characters (like spaces) that can be found at the end of your php scripts... example: 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 so

[PHP-WIN] include and warning: headers already sent by ..

2008-02-08 Thread germana
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!!!

Re: [PHP-WIN] string function

2008-02-08 Thread Elizabeth M Smith
Viola Holownia wrote: > hi > > Have you tried ereg_replace() ? > http://www.php.net/manual/en/function.ereg-replace.php > > > cheers > viola > I would NOT suggest ereg_replace, especially on windows - if you need to do advanced replacement and str_replace doesn't work, try preg_replace - http: