Reply to Re: "Cannot send session cookie ..." I truely DON'T output ANYTHING before calling session_start()

Your name:

Reply:


Posted by Jerry Stuckle on 08/30/06 11:54

juergen wrote:
> Hi,
> there are many postings on this subject, I have read them put don't
> have an answer.
> I get these warnings: Cannot send session cookie - headers already sent
> in,
> but my php-scripts are okay.
>
> As you can see in the code and response below, I really don't output
> anything.
> I am at EVANZO.
>
> I will appreciate your help.
>
> Juergen
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> my PHP-Code
>
> #!/usr/bin/php
> <?php
> session_start();
> if (!isset($_SESSION['content'])) {
> $_SESSION['content']=""; $_SESSION['task']=0;
> }
> session_regisyoter("content");
>
> error_reporting (E_ALL);
> set_time_limit(0);
>
> ...
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> The Server Respose with telnet-command (header+body)
>
> [root@localhost cgi-bin]# telnet www.juergengerstacker.de 80
> GET /cgi-bin/get.cgi HTTP/1.1
> Host: www.juergengerstacker.de
>
>
> Trying 62.67.235.12...
> Connected to www.juergengerstacker.de (62.67.235.12).
> Escape character is '^]'.
> HTTP/1.1 200 OK
> Date: Wed, 30 Aug 2006 11:10:33 GMT
> Server: Apache/1.3.19 (Unix) (SuSE/Linux) PHP/4.3.0
> Connection: close
> Transfer-Encoding: chunked
> Content-Type: text/plain
>
> bb
> Warning: session_start() [http://www.php.net/function.session-start]:
> Cannot send session cookie - headers already sent in
> /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3
>
> 1000
>
> Warning: session_start() [http://www.php.net/function.session-start]:
> Cannot send session cache limiter - headers already sent (output
> started at /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi:3) in
> /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3
>
> Warning: set_time_limit() [http://www.php.net/function.set-time-limit]:
> Cannot set time limit in safe mode in
> /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 10
>
> <html><head><title>
> pop3-Mail: 0</title>
>

Actually, you are outputting something - you're outputting

"#!/usr/bin/php"

This is only used if you're running the script from the shell - not when
the script is run under the web server.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация