Problem solved--Re: Seems like "echo" isn't working (yeah, right)
From: Michael Flanagan (google_mjf_at_MJFlanagan.com)
Date: 11/29/03
- Next message: Janwillem Borleffs: "Re: Detecting and displaying the domain name"
- Previous message: Charles: "Re: Detecting and displaying the domain name"
- In reply to: Michael Flanagan: "Re: Seems like "echo" isn't working (yeah, right)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Janwillem Borleffs: "Re: Detecting and displaying the domain name"
- Previous message: Charles: "Re: Detecting and displaying the domain name"
- In reply to: Michael Flanagan: "Re: Seems like "echo" isn't working (yeah, right)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|