Problem solved--Re: Seems like "echo" isn't working (yeah, right)

From: Michael Flanagan (google_mjf_at_MJFlanagan.com)
Date: 11/29/03


Date: 29 Nov 2003 05:37:22 -0800

The problem seems to be that I cannot simply get the response with this:

$getResponse = fread($fp, 1024);

I should put that in a 'while' loop until I get EOF or no error.

Michael

google_mjf@MJFlanagan.com (Michael Flanagan) wrote in message news:<96f13513.0311200915.53f4b45c@posting.google.com>...
> Thanks for the suggestion. I took out the chars you suggested--no
> change. I then added some newline echos after the last header
> call--still no change. BTW, this code works on Apache/Linux.
>
> ??
>
> Michael
>
> ng4rrjanbiah@rediffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<abc4d8b8.0311192353.55692c12@posting.google.com>...
> > google_mjf@MJFlanagan.com (Michael Flanagan) wrote in message news:<96f13513.0311191946.4993b1b0@posting.google.com>...
> > > Of course "echo" is working, but I've got a case where php doesn't
> > > seem to be sending out the result of an "echo." I'm probably doing
> > > something wrong, but I can't see it.
> > >
> > > I've got the following code on IIS 5.0, Win 2000, PHP 4.3.3, in file
> > > LH_Svc.php:
> > >
> > > <?php
> > > $resp = "<response>\r\n";
> > > $respLen = strlen ($resp);
> > > header ("Content-Type: text/xml\r\n");
> > ^^^^^
> >
> > You don't need to add \r\n
> >
> > ---
> > "One who mix sports and patriotism is a barbarian"
> > Email: rrjanbiah-at-Y!com



Relevant Pages

  • Re: Healthier discussions
    ... Michael has been on target from the very start. ... The Chinese response is, "Nali, nali." ... harmonious outcomes truly benefiting all, ... better responses to people in the margins of our community. ...
    (talk.religion.bahai)
  • Re: Mechanical Dualism versus Naturalized Epistemology
    ... > Michael, I'll await your response. ... relevant time scale would have to be very, ... and delayed reinforcement) could be detectable. ...
    (comp.ai.philosophy)
  • Re: Terminating a running Loop in GUI!
    ... I am having a problem in GUI. ... in the opening function of your gui, set some flag ... getting the handles structure in the loop might not ...
    (comp.soft-sys.matlab)
  • Re: Homeless smomeless... somebody has got to live under a bridge!
    ... well, Michael, why not?? ... With "moral watchdogs" like you and O'Leary ... Dia has never heard of these surrulous allegations you have attempted ... > Perhaps my low key response to you wasn't as clear as I hoped. ...
    (alt.gathering.rainbow)
  • Re: Mechanical Dualism versus Naturalized Epistemology
    ... >> Michael, I'll await your response. ... > the relevant time scale would have to be very, ... > immediate and delayed reinforcement) could be detectable. ...
    (comp.ai.philosophy)