[ciapug] What does it mean?
ciapug@cialug.org
ciapug@cialug.org
Sat, 21 Jun 2003 18:02:00 -0000
So, I'm assuming this is a hosting company that you're paying to host your
web site?
According to netcraft.com, you're running:
The site www.website-center.com is running Apache/1.3.26 (Unix)
ApacheJServ/1.1.2 FrontPage/4.0.4.3 on IRIX
.. if "properly" configured, your Apache server shouldn't require the
#!/usr/local/bin/php line at the beginning. This is something to talk to
the server sysadmin about.
-dc
Jane Swanson <jswanson@website-center.com> said:
> I've already been that route with my hosting co:
> "Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> Please contact the server administrator, jswanson@website-center.com and
> inform them of the time the error occurred, and anything you might have done
> that may have caused the error.
>
> More information about this error may be available in the server error log."
>
> Guess that means I do not run as a CGI. However '#!/usr/local/bin/php " must
> come first. But, considering I can send values [see the second part of my
> message] , is there some other lost capability the warning tells me about?
> I can turn off the warning with @.
>
> JBS
>
> ----- Original Message -----
> From: "David Champion" <dave@visionary.com>
> To: <ciapug@cialug.org>
> Sent: Friday, June 20, 2003 4:38 PM
> Subject: Re: [ciapug] What does it mean?
>
>
> > Looks like maybe you're running PHP as a CGI?
> >
> > If your web server knows to parse PHP, then no you don't need it.
> > Easiest way would be to create a test page:
> >
> > <? echo("test") ?>
> >
> > ... and see if it prints "test" or if it shows the PHP code.
> >
> > -dc
> >
> > Jane Swanson wrote:
> > > My code starts:
> > >
> > > #!/usr/local/bin/php
> > > <?php
> > > session_start();
> > > $_SESSION['sessID'] = 'test';
> > > $_SESSION['searchID'] = 2;
> > > // ?>
> > > // <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > //<html>
> > > //<head>
> > >
> > > Both warning messages show. Then, on the next program
> > >
> > > #!/usr/local/bin/php
> > > <?php
> > > session_start();
> > > echo 'The content of $_SESSION[\'searchID\'] is '
> > > .$_SESSION['searchID'].'<br />';
> > > echo 'The content of $_SESSION[\'sessID\'] is '
> > > .$_SESSION['sessID'].'<br />';
> > > ?>
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > > <html>
> > >
> > > This does print the values, but the second warning shows.
> > >
> > > My host requires "#!/usr/local/bin/php" to identify the location of PHP.
> > > Am I doing that wrong? Is that statement why I'm getting the warnings?
> > >
> > > JBS
> > > ----- Original Message -----
> > > From: <vanish@dreamscapevisionery.com>
> > > To: <ciapug@cialug.org>
> > > Sent: Friday, June 20, 2003 12:38 PM
> > > Subject: Re: [ciapug] What does it mean?
> > >
> > >
> > >
> > >>That means you're sending session_start() after you've sent HTML. YOu
> need
> > >
> > > to
> > >
> > >>place session_start() above any HTML sent by the page. Once you send any
> > >>information to the browser, you can't request a session or Location
> > >
> > > change,
> > >
> > >>among others.
> > >>
> > >>Quoting Jane Swanson <jswanson@website-center.com>:
> > >>
> > >>
> > >>>First [of many]: I get the following warning message at the first page
> > >
> > > of my
> > >
> > >>>session:
> > >>> Warning</b>: Cannot send session cookie - headers already sent
> by
> > >>>(output started at /home/...cgi-bin/select.php:2) in
> > >>><b>/home/...cgi-bin/select.php</b> on line <b>3</b><br>
> > >>>
> > >>> ANd on all pages:
> > >>> <b>Warning</b>: Cannot send session cache limiter -
> headers
> > >>>already sent (output started at /home/....cgi-bin/select.php:2) in
> > >>><b>/home/....cgi-bin/select.php</b> on line <b>3</b><br>
> > >>>
> > >>> I can suppress the messages if I use @ with my session_start().
> > >
> > > What
> > >
> > >>>do they mean? My session variables pass as:
> > >>>
> > >>> $_SESSION['sessID'] = 'test';
> > >>> $_SESSION['searchID'] = 2;
> > >>>
> > >>> Enough for the first Q. Is this telling me something I should
> > >
> > > know?
> > >
> > >>> JBS
> >
> >
> > _______________________________________________
> > ciapug mailing list
> > ciapug@cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
> >
>
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>
--