Re: [PHP] HTTP headers and include()

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

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 mpet...@mac.com wrote: James Colannino wrote: White space can cause this - make sure your code has ?php as the very top and ? at the very bottom, or the white space may trigger the web

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 mpet...@mac.com wrote: James Colannino wrote: White space can cause this - make sure your code has ?php as the very top and ? at the

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Fri, Jul 10, 2009 at 12:54 PM, James Colannino ja...@colannino.orgwrote: 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

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 Sun, Jul 12, 2009 at 11:27 PM, James Colannino ja...@colannino.orgwrote: 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

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 and I

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 before

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

[PHP] HTTP headers and include()

2009-07-09 Thread James Colannino
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 sent out. Then, after

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 1:21 AM, James Colanninoja...@colannino.org 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

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

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

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

[PHP] HTTP HEADERS

2006-06-02 Thread kartikay malhotra
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? Thanks KM

[PHP] Apache Content Negotiation / PHP / HTTP Headers

2004-06-18 Thread Wolfgang Ulmer
Hi, i've tested Apache Content Negotiation with a PHP Content Managment System. Apache works correctly, but doesn't tell PHP what it has done. Example: I have a directory with two files: - test.de.htm - test.en.htm As Apache is configured for Content Negotiation I can enter test in my

[PHP] HTTP headers, IE and downloading

2003-12-21 Thread Andreas Magnusson
I'm writing a script to view/download an email-attachment. If the file happens to be an MS Word document and the browser IE (only tried with 6.0), then the download fails. If I choose to download (Content-Disposition: attachment; filename=whatever.doc) then only a part of the file (2/3) is saved

[PHP] HTTP Headers

2001-11-21 Thread Paul - Zenith Tech Inc
Using phpinfo() I can see that the header Last-Modified exists. How do I go about accessing the header?? Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

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?? http://www.php.net/manual/en/function.header.php http://www.php.net/manual/en/language.variables.predefined.php

Re: [PHP] HTTP Headers

2001-11-13 Thread Kintups Nada
] HTTP Headers Date: Fri, 9 Nov 2001 18:55:16 -0500 Is it possible to redirect to an IP address but have the browser address bar show an URL? Mike H. http://ibiz-tools.com http://vestudiohost.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

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

[PHP] HTTP Headers

2001-11-09 Thread Mike Harvey
Is it possible to redirect to an IP address but have the browser address bar show an URL? Mike H. http://ibiz-tools.com http://vestudiohost.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

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

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 parking,

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 to try

[PHP] HTTP headers and include()

2001-08-22 Thread Casteele/ShadowLord
I've written a separate function library for a cluster of web pages, and I then include(slib.php) in each of the web pages, instead of copying 12k of code to each page individually. Some of the pages require (simple) authentication or redirection headers, which some of the code in the library is

RE: [PHP] HTTP headers and include()

2001-08-22 Thread Andy
it before any output. As I said sometimes a simple echo() breaks all. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Casteele/ShadowLord [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 6:52 PM Subject: [PHP] HTTP

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.. (sans

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 are the two