Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Sun, Jul 12, 2009 at 11:27 PM, James Colannino wrote: > Zareef Ahmed wrote: > > > You should get a "headers already sent output started at " kind of > error > > if you have enabled error reporting with display_errors ON. > > Actually, I did. I just didn't think to mention it in my first po

Re: [PHP] HTTP headers and include()

2009-07-12 Thread James Colannino
Zareef Ahmed wrote: > You should get a "headers already sent output started at " kind of error > if you have enabled error reporting with display_errors ON. Actually, I did. I just didn't think to mention it in my first post. The thing was that it said it was coming from one of my includes,

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Fri, Jul 10, 2009 at 12:54 PM, James Colannino wrote: > Eddie Drapkin wrote: > > > HTTP headers are sent and finalized after the first bit of output. I > > had the same problem before and it turned out to be because I had a > > close tag "?>" at the end of a file followed by some whitespace.

Re: [PHP] HTTP headers and include()

2009-07-12 Thread tedd
At 12:09 PM +0100 7/12/09, Ashley Sheridan wrote: On Sunday 12 July 2009 12:01:12 Lenin wrote: On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters wrote: > James Colannino wrote: > > > > White space can cause this - make sure your code has top and ?> at the very bottom, or the white spac

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Ashley Sheridan
On Sunday 12 July 2009 12:01:12 Lenin wrote: > On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters wrote: > > James Colannino wrote: > > > > > > > > White space can cause this - make sure your code has > top and ?> at the very bottom, or the white space may trigger the web > > server to send a he

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Lenin
On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters wrote: > James Colannino wrote: > >> > White space can cause this - make sure your code has and ?> at the very bottom, or the white space may trigger the web server to > send a header and the white space as data before the cookie for > session

Re: [PHP] HTTP headers and include()

2009-07-10 Thread Michael A. Peters
tedd wrote: At 12:24 AM -0700 7/10/09, James Colannino wrote: Eddie Drapkin wrote: HTTP headers are sent and finalized after the first bit of output. I had the same problem before and it turned out to be because I had a close tag "?>" at the end of a file followed by some whitespace. The

Re: [PHP] HTTP headers and include()

2009-07-10 Thread tedd
At 12:24 AM -0700 7/10/09, James Colannino wrote: Eddie Drapkin wrote: HTTP headers are sent and finalized after the first bit of output. I had the same problem before and it turned out to be because I had a close tag "?>" at the end of a file followed by some whitespace. The solution wa

Re: [PHP] HTTP headers and include()

2009-07-10 Thread kranthi
a single line break after the closing ?> will not cause this problem. PHP interpreter will neglect a single line break after ?> a good debugger like xdebug will be helpful in this case. u can also see the source code of the file to locate the output. any thing before php warning is the output befor

Re: [PHP] HTTP headers and include()

2009-07-10 Thread James Colannino
Eddie Drapkin wrote: > HTTP headers are sent and finalized after the first bit of output. I > had the same problem before and it turned out to be because I had a > close tag "?>" at the end of a file followed by some whitespace. The > solution was to remove the ?> from the end of all the files

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Michael A. Peters
James Colannino wrote: Hey everyone, I've been hard at work on a new web application, and discovered something that I would never have seen coming. I was noticing that when I called session_start() after a few lines of includes, I was getting complaints because the HTTP headers had already been

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 1:21 AM, James Colannino wrote: > Hey everyone, > > I've been hard at work on a new web application, and discovered > something that I would never have seen coming.  I was noticing that when > I called session_start() after a few lines of includes, I was getting > complaints

Re: [PHP] HTTP HEADERS

2006-06-03 Thread Joe Wollard
(sorry for the dup kartikay, forgot to hit reply to all;-) So is the file going from server to server or from a client machine to the server? It sounds like server to server - which if that's the case you can use headers_list() to see what your server is going to be sending out to the other server

Re: [PHP] HTTP HEADERS

2006-06-03 Thread David Tulloh
kartikay malhotra wrote: > Hi all! > > I use HTTP POST to upload a file. I've a PHP script running on the server. > Are HTTP headers passed with this request? How can I see the headers passed > to the server? Headers are passed by the client and server with every request. The Firefox Tamper Data

Re: [PHP] HTTP Headers

2001-11-21 Thread Brian Clark
Hi Paul, @ 7:42:49 AM on 11/21/01, Paul - Zenith Tech Inc wrote: > Using phpinfo() I can see that the header "Last-Modified" exists. > How do I go about accessing the header??

Re: [PHP] HTTP Headers

2001-11-13 Thread Kintups Nada
Yes, you can do it, but this is not a PHP feature, it is an HTML trick, the only thing you need to do is create a page which contains a frame only (yes neither two or more, only one frame). Then, when you select a link on this page the URL displayed on the browser does not change. This is a nic

Re: [PHP] HTTP Headers

2001-11-10 Thread Brent Rieck
On Fri, 2001-11-09 at 15:55, Mike Harvey wrote: > Is it possible to redirect to an IP address but have the browser address bar > show an URL? assuming you have a valid url with a hostname, just wrap the ip address url inside of a frame that takes up the entire window. --Brent -- PHP General

Re: [PHP] HTTP Headers

2001-11-09 Thread Richard S. Crawford
Boy, that's one of those "Imagine the trouble we would get into if we could!" questions, isn't it? Just like "How do I disable the back button?", or "How do I use PHP to feed me the contents of a web browser's hard drive?" That said, some hosting services support what is called "domain parkin

Re: [PHP] HTTP Headers

2001-11-09 Thread Christopher William Wesley
On Fri, 9 Nov 2001, Mike Harvey wrote: > Is it possible to redirect to an IP address but have the browser address bar > show an URL? Assuming that you meant "hostname" instead of "URL" since the browser address bar will always display a URL ... No. ~Chris /"\

Re: [PHP] HTTP headers and include()

2001-08-23 Thread Christian Reiniger
On Thursday 23 August 2001 02:36, Casteele/ShadowLord wrote: > Andy <[EMAIL PROTECTED]> wrote in article > > See if is there some kind of echo before header()s, or HTML sent to > > browser. > > No, I've been extremely careful to avoid that. The following are the > two test files I've been using

Re: [PHP] HTTP headers and include()

2001-08-22 Thread David Robley
On Thu, 23 Aug 2001 10:06, Casteele/ShadowLord wrote: > Andy <[EMAIL PROTECTED]> wrote in article > <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>... > > > See if is there some kind of echo before header()s, or HTML sent to > > browser. > > No, I've been extremely careful to avoid that. The following a

Re: [PHP] HTTP headers and include()

2001-08-22 Thread Casteele/ShadowLord
Andy <[EMAIL PROTECTED]> wrote in article <003b01c12b23$d1f245d0$0b01a8c0@ANDreY>... > See if is there some kind of echo before header()s, or HTML sent to > browser. No, I've been extremely careful to avoid that. The following are the two test files I've been using to try to solve this.. (s

RE: [PHP] HTTP headers and include()

2001-08-22 Thread Andy
See if is there some kind of echo before header()s, or HTML sent to browser. You cannot do this Bla bla Why? Because there is already content sent to the browser. If some code uses header() place it before any output. As I said sometimes a simple echo() breaks all.