Re: [PHP] Headers on smart phone browsers

2012-02-07 Thread Tedd Sperling
On Feb 6, 2012, at 4:01 PM, Stuart Dallas wrote: > Generally speaking you're better off with a design that automatically adapts > to the viewport on which it's being displayed. While there's more than one > reason for this, the overriding reason is that the same software (i.e. the > same user ag

Re: [PHP] Headers on smart phone browsers

2012-02-07 Thread Marc Guay
> There is only one drawback to using CSS media queries to alter the way a > page is displayed on different resolutions, and that is that any media > (i.e. background images, etc) referenced in a stylesheet is downloaded, > regardless of if it is ever used. Another one worth mentionning is that a

Re: [PHP] Headers on smart phone browsers

2012-02-07 Thread Ashley Sheridan
On Mon, 2012-02-06 at 18:09 -0600, Donovan Brooke wrote: > Mari Masuda wrote: > [snip] > > For a concrete example of responsive design in action, point your browser > > to http://www.sasquatchfestival.com/ and then slowly make the window > > wider/skinnier to see how the design adapts to differe

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Donovan Brooke
Mari Masuda wrote: [snip] For a concrete example of responsive design in action, point your browser to http://www.sasquatchfestival.com/ and then slowly make the window wider/skinnier to see how the design adapts to different viewport sizes. Very nice... makes for an easy display to a wide r

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Donovan Brooke
Paul M Foster wrote: [snip] How about this: those of you with iPhones, Androids and the like, point your phones at a page which reports $_SERVER['HTTP_USER_AGENT'] (like a page which runs the phpinfo() function), and post what you get back from that exercise and what device made the query. I'd li

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 09:01:45PM +, Stuart Dallas wrote: > On 6 Feb 2012, at 05:58, Paul M Foster wrote: > > > This is sort of obliquely related to PHP. > > > > I don't have a smart phone, but I need to know a couple of things: > > There are simulators available for most smartphones. > >

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 04:04:28PM -0500, Adam Richardson wrote: >On Mon, Feb 6, 2012 at 3:50 PM, Adam Richardson <[1]simples...@gmail.com> >wrote: > > On Mon, Feb 6, 2012 at 12:58 AM, Paul M Foster > <[2]pa...@quillandmouse.com> wrote: > >This is sort of obliquely rela

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Donovan Brooke
Stuart Dallas wrote: On 6 Feb 2012, at 21:12, Marc Guay wrote: the way your site renders should be purely based upon the size of the display. Although I mostly agree with this statement, it ignores the most interesting aspects of mobile technology, such as being able to ask the user for their

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Donovan Brooke
Ashley Sheridan wrote: [snip] Keeping a PHP angle to this, have you looked at using an up-to-date browscap.ini file with PHP? Basically, you can use that to read in the raw user agent string from the browser, and it then finds a matching entry in the ini file and gives you back some values about

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 09:02:34PM +, Ashley Sheridan wrote: [snip] > > > Keeping a PHP angle to this, have you looked at using an up-to-date > browscap.ini file with PHP? Basically, you can use that to read in the > raw user agent string from the browser, and it then finds a matching > ent

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 02:28:42PM -0600, Donovan Brooke wrote: > Paul M Foster wrote: > >This is sort of obliquely related to PHP. > > > >I don't have a smart phone, but I need to know a couple of things: > > > >1) Do smart phones use the same browsers as the desktop, or do they have > >their own

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Stuart Dallas
On 6 Feb 2012, at 21:12, Marc Guay wrote: >> the way your site renders should be purely based upon the size of the >> display. > > Although I mostly agree with this statement, it ignores the most > interesting aspects of mobile technology, such as being able to ask > the user for their GPS locat

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Mari Masuda
On Feb 6, 2012, at 1:01 PM, Stuart Dallas wrote: [snip] > Generally speaking you're better off with a design that automatically adapts > to the viewport on which it's being displayed. [snip] For a concrete example of responsive design in action, point your browser to http://www.sasquatchfest

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Marc Guay
> the way your site renders should be purely based upon the size of the display. Although I mostly agree with this statement, it ignores the most interesting aspects of mobile technology, such as being able to ask the user for their GPS location and deliver content accordingly. I worked on some r

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 3:50 PM, Adam Richardson wrote: > On Mon, Feb 6, 2012 at 12:58 AM, Paul M Foster wrote: > >> This is sort of obliquely related to PHP. >> >> I don't have a smart phone, but I need to know a couple of things: >> >> 1) Do smart phones use the same browsers as the desktop, or d

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Stuart Dallas
On 6 Feb 2012, at 05:58, Paul M Foster wrote: > This is sort of obliquely related to PHP. > > I don't have a smart phone, but I need to know a couple of things: There are simulators available for most smartphones. > 1) Do smart phones use the same browsers as the desktop, or do they have > thei

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Ashley Sheridan
On Mon, 2012-02-06 at 14:28 -0600, Donovan Brooke wrote: > Paul M Foster wrote: > > This is sort of obliquely related to PHP. > > > > I don't have a smart phone, but I need to know a couple of things: > > > > 1) Do smart phones use the same browsers as the desktop, or do they have > > their own st

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 12:58 AM, Paul M Foster wrote: > This is sort of obliquely related to PHP. > > I don't have a smart phone, but I need to know a couple of things: > > 1) Do smart phones use the same browsers as the desktop, or do they have > their own stripped down versions of browsers? > B

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Donovan Brooke
Paul M Foster wrote: This is sort of obliquely related to PHP. I don't have a smart phone, but I need to know a couple of things: 1) Do smart phones use the same browsers as the desktop, or do they have their own stripped down versions of browsers? 2) When a browser broadcasts its header telli

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Marc Guay
> 1) Do smart phones use the same browsers as the desktop, or do they have > their own stripped down versions of browsers? Different browsers, some of which are worse than IE (see Blackberry). > 2) When a browser broadcasts its header telling the server what kind of > browser is involved, do the

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Jim Giner
Nice article!! You should read up on responsive web design. http://www.alistapart.com/articles/responsive-web-design/ should get you started. HTH!= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers on smart phone browsers

2012-02-05 Thread Mari Masuda
On Feb 5, 2012, at 9:58 PM, Paul M Foster wrote: [snip] > 3) Bonus question: Is there a preferred method amongst coders to > determine what type of environment is being browsed from, so as to serve > up the proper type of page (desktop or smart phone version of a > webpage)? [snip] You should

Re: [PHP] Headers already sent

2011-11-11 Thread Marc Guay
> Thanks. That was the problem. I spent a day trying to debug this. Smash head against wall first, ask questions later. That's my methodology as well. :) Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers already sent

2011-11-10 Thread Kranthi Krishna
Hi, > Perhaps your server is configured to have output buffering enabled by default Thanks. That was the problem. I spent a day trying to debug this. Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers already sent

2011-11-10 Thread Larry Garfield
Perhaps your server is configured to have output buffering enabled by default? Check php.ini / phpinfo(). --Larry Garfield On 11/11/2011 12:12 AM, Kranthi Krishna wrote: Hi all, I am missing something pretty obvious here. The PHP Manual says "Remember that header() must be called before any

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
German Geek wrote: > This didn't work. ctrl+i brought up my bookmarks. ?? Do i need a > special plugin/extension? Have web developer etc. Nope, this is standard FF. Ctrl+i should give you the "Page Info" window. Try looking for that in your menubar and pulldowns. -- Per Jessen, Zürich (3.1

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread German Geek
2009/2/23 Per Jessen > German Geek wrote: > > > Yes, that's what i thought, but with my FF 3.0 the resources > > (swf,png,jpg) don't get reloaded. I have to reload the page (after > > deleting cache). > > > > Something to do with the Apache configuration? > > Hi Tim, > > Try loading up just a sin

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
German Geek wrote: > Yes, that's what i thought, but with my FF 3.0 the resources > (swf,png,jpg) don't get reloaded. I have to reload the page (after > deleting cache). > > Something to do with the Apache configuration? Hi Tim, Try loading up just a single file in FF - one of your graphics for

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread German Geek
Yes, that's what i thought, but with my FF 3.0 the resources (swf,png,jpg) don't get reloaded. I have to reload the page (after deleting cache). Something to do with the Apache configuration? ?? Thanks for the reply. Tim-Hinnerk Heuer http://www.ihostnz.com Laurence J. Peter - "If two wrongs

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
German Geek wrote: > Hi All, > > We have an application that generates dynamic ebooks. One of the > (minor) problems (but yet annoying) is that when a user comes back to > an ebook, they have to actually delete the cache and reload the page > to not get the cached version which might be wrong bec

Re: [PHP] headers-excel file-bad data

2007-08-07 Thread Richard Lynch
On Tue, July 31, 2007 12:32 pm, blackwater dev wrote: > I have an excel file that I am generating. If I copy over the > generated > file and then open it in excel, it works fine, if I try to let the > user > download it using the headers below, when I then open it excel > complains > that it is an

Re: [PHP] headers-excel file-bad data

2007-07-31 Thread tedd
At 1:32 PM -0400 7/31/07, blackwater dev wrote: Hello, I have an excel file that I am generating. If I copy over the generated file and then open it in excel, it works fine, if I try to let the user download it using the headers below, when I then open it excel complains that it is an unrecogni

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Jochem Maas
Martin Marques wrote: > On Thu, 20 Jul 2006 11:30:14 -0400, John Nichel <[EMAIL PROTECTED]> wrote: >> Jochem Maas wrote: >>> I never add the final closing '?>' in any script for this very reason. >>> >> 'Cause you're a SLACKER!!! > > What the hell is a SLACKER??? I'm a slacker. > > -- > ---

Re: [PHP] headers and newline at end of script

2006-07-20 Thread John Nichel
Jochem Maas wrote: Martin Marques wrote: On Thu, 20 Jul 2006 11:30:14 -0400, John Nichel <[EMAIL PROTECTED]> wrote: Jochem Maas wrote: I never add the final closing '?>' in any script for this very reason. 'Cause you're a SLACKER!!! What the hell is a SLACKER??? I'm a slacker. Which is

RE: [PHP] headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 14:39, Kilbride, James P. wrote: > He never said he didn't want you to do his coding, simply that you were > a slacker. Considering he's self proclaimed 'lazy' just means the two of > you should get on great and you'll probably understand his code better. Won't work because J

RE: [PHP] headers and newline at end of script

2006-07-20 Thread Kilbride, James P.
He never said he didn't want you to do his coding, simply that you were a slacker. Considering he's self proclaimed 'lazy' just means the two of you should get on great and you'll probably understand his code better. James Kilbride SNIPPAGE(Jochem Maas wrote:) > no chance of me getting that code

RE: [PHP] headers and newline at end of script

2006-07-20 Thread Kilbride, James P.
I'd explain but it'd be too much work. James Kilbride > -Original Message- > From: Martin Marques [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 20, 2006 2:32 PM > To: John Nichel > Cc: php-general@lists.php.net > Subject: Re: [PHP] headers and newline at

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006 11:30:14 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > Jochem Maas wrote: >> >> I never add the final closing '?>' in any script for this very reason. >> > > 'Cause you're a SLACKER!!! What the hell is a SLACKER??? -- ---

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Jochem Maas
John Nichel wrote: > Jochem Maas wrote: >> Martin Marques wrote: >>> I'm looking for an opinion on programming style. >>> >>> Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This >>> last one puts all the HTML away from the PHP code, which has made life >>> much easier. >>> >>>

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Robert Cummings
On Thu, 2006-07-20 at 11:30, John Nichel wrote: > Jochem Maas wrote: > > Martin Marques wrote: > >> I'm looking for an opinion on programming style. > >> > >> Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This > >> last one puts all the HTML away from the PHP code, which has m

Re: [PHP] headers and newline at end of script

2006-07-20 Thread John Nichel
Jochem Maas wrote: Martin Marques wrote: I'm looking for an opinion on programming style. Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This last one puts all the HTML away from the PHP code, which has made life much easier. Now, sometimes I warning messages like this one

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Jochem Maas
Martin Marques wrote: > I'm looking for an opinion on programming style. > > Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This > last one puts all the HTML away from the PHP code, which has made life > much easier. > > Now, sometimes I warning messages like this one: > > P

Re: [PHP] headers already sent.

2006-04-08 Thread Stephen Lake
There is no real way of knowing if output is going to be sent before a header or not, unless its a very simple page. Your best bet is to investigate the output buffering functions here: http://www.php.net/manual/en/ref.outcontrol.php HTH Steve ""P. Guethlein"" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] headers already sent.

2006-04-08 Thread P. Guethlein
At 10:30 PM 04/07/2006, you wrote: Comment inline: Thanks, I just found that out after, well I don't want to say how long it took . Is that just the way things are in PHP or is there a command / configuration to make something like this more obvious? Hmmm. maybe the IDE I'm using? U

Re: [PHP] headers already sent.

2006-04-07 Thread Chris
Comment inline: P. Guethlein wrote: (Know enough to be dangerous beginner...) Routine for a web login asked user name and password. User Name is entered correctly. Password is Incorrect. Next Try. User Name is enter correctly. Password is Entered Correctly. PHP notifies me on the html out

Re: [PHP] headers .vs javascript location.href

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote: bruce wrote: i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...' If

Re: [PHP] headers .vs javascript location.href

2005-09-19 Thread Chris Shiflett
bruce wrote: i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...' If you're absolutely certain that your script produces no

RE: [PHP] headers .vs javascript location.href

2005-09-19 Thread bruce
anyone wanted to take an actual look. and as i also stated, yeah, it could/should be cleaned up, but for now, it's a test app... -bruce -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Sunday, September 18, 2005 8:20 PM To: [EMAIL PROTECTED] Cc: 'php&#x

Re: [PHP] headers .vs javascript location.href

2005-09-18 Thread Chris Shiflett
bruce wrote: need to talk to someone to figure out how/what i need to do to use the php 'headers' function, as opposed to the javascript 'location.href'. i've tried to implement the buffering functions, but still get the same error... is there someone that i can talk to about this, who ha exper

Re: [PHP] headers and session

2005-06-07 Thread Angelo Zanetti
Hi Alessandro try this as well (Put these lines before and after your redirect/header statement); session_write_close(); header( "Location: ".$PHPcmd ); exit(); hope this helps Angelo Zanetti Z Logic www.zlogic.co.za Alessandro Rosa wrote: >Hi to all, > >I got a problem while storing sessio

RE: [PHP] Headers already sent error

2005-02-03 Thread yangshiqi
Pls Make sure that outside your tags, these is no any blankspace or sth else. Best regards, Yang Shiqi -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 3:44 PM To: [php] PHP General List Subject: Re: [PHP] Headers already sent error Tim

Re: [PHP] Headers already sent error

2005-02-02 Thread Chris
Tim Burgan wrote: Hello, I'm receiving an error "Cannot modify header information - headers already sent by XXX". In my php, I have a heap of code, then use header("Location: blah.php"); to redirect the user. I get this error on the webhost, but not on my local host. I've searched and found th

Re: [PHP] Headers already sent error

2005-02-02 Thread Robby Russell
On Thu, 2005-02-03 at 12:59 +1030, Tim Burgan wrote: > Hello, > > > I'm receiving an error "Cannot modify header information - headers > already sent by XXX". > > In my php, I have a heap of code, then use header("Location: blah.php"); > to redirect the user. I get this error on the webhost, b

Re: [PHP] Headers Again

2004-02-20 Thread Chris Shiflett
--- PETCOL <[EMAIL PROTECTED]> wrote: > Unfortunately history tells me that php like ColdFusion will one day > be bought out by the big corporates, or at least they'll have a > considerable financial vested interest in it. There's nothing to buy. Welcome to open source. Chris = Chris Shiflet

Re: [PHP] Headers Again

2004-02-20 Thread Stuart
PETCOL wrote: Unfortunately history tells me that php like ColdFusion will one day be bought out by the big corporates, or at least they'll have a considerable financial vested interest in it. Not likely. Since PHP is open source if Zend decided to change the license I'm certain it would be forked

Re: [PHP] Headers Again

2004-02-19 Thread PETCOL
Stuart, Unfortunately history tells me that php like ColdFusion will one day be bought out by the big corporates, or at least they'll have a considerable financial vested interest in it. At which time we hope way off in the future, we'll all have to start paying for support and maintenance contra

Re: [PHP] Headers Again

2004-02-17 Thread Comex
[EMAIL PROTECTED]> Petcol: > Jason, > > What I shock, 307,000 entries returned. > > Maybe someone with ability greater or other than I, should give some > serious consideration to a solution or work around. > > I've been using ColdFuion for 7 years and I can do a url="anotherlocation.htm"> anywher

Re: [PHP] Headers Again

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 17:21, PETCOL wrote: > Alliare and Macromedias forums for ColdFusion and other software, allow a > search through the entire post, archive everything. Which always avoid > this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's a > search like this for

Re: [PHP] Headers Again

2004-02-17 Thread Stuart
PETCOL wrote: Stuart Thank you. Don't thank me[1], thank them. Preferably with cash[2]. [1] I will accept cash if offered. [2] http://marc.theaimsgroup.com/?q=about#Begware -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
nctions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file." Not hard is it? Regards, Michael Egan > -Original Message- > From: PETCOL [mailto:[EMAIL PROTECTE

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Stuart Thank you. "Stuart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PETCOL wrote: > > Alliare and Macromedias forums for ColdFusion and other software, allow a > > search through the entire post, archive everything. Which always avoid this > > problem of a newsgroup. Maybe

Re: [PHP] Headers Again

2004-02-17 Thread Stuart
PETCOL wrote: Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's a search like this for a newsgroup? http://marc.theaimsgroup.com/?

RE: [PHP] Headers Again

2004-02-17 Thread Michael Egan
exists when using a single PHP/HTML file." Not hard is it? Regards, Michael Egan > -Original Message- > From: PETCOL [mailto:[EMAIL PROTECTED] > Sent: 17 February 2004 09:22 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Headers Again > > > Jason, > >

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Jason, I appreciate people get just as frustrate by reading repetative posts. Alliare and Macromedias forums for ColdFusion and other software, allow a search through the entire post, archive everything. Which always avoid this problem of a newsgroup. Maybe I'm wrong, but I don't thing there's

Re: [PHP] Headers Again

2004-02-17 Thread Jason Wong
On Tuesday 17 February 2004 16:37, PETCOL wrote: What you're asking is a VERY FAQ. Something that's asked almost every other day. The list archives will have plenty of answers. > What I shock, 307,000 entries returned. If you don't want to trawl through those search results then read the error

Re: [PHP] Headers Again

2004-02-17 Thread PETCOL
Jason, What I shock, 307,000 entries returned. Maybe someone with ability greater or other than I, should give some serious consideration to a solution or work around. I've been using ColdFuion for 7 years and I can do a anywhere in the page, no matter if I've run CFML, Javascript it still wo

Re: [PHP] Headers Again

2004-02-16 Thread Jason Wong
On Tuesday 17 February 2004 09:57, PETCOL wrote: > I have authenticated a user, after that I want to take them to another > page: > > Header("Location: welcome.php"); > > But I get the following error? > > error > Cannot modify header information - headers already sent > --

Re: [PHP] Headers Again

2004-02-16 Thread John Nichel
PETCOL wrote: Hi, I have authenticated a user, after that I want to take them to another page: Header("Location: welcome.php"); But I get the following error? error Cannot modify header information - headers already sent error Suggestions? Don't s

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> > I have a problem setting my headers right with php running as > > .cgi. I have to specify a Content-type for the cgi file to work. > > But how should I do both that and start a session? > > Try using header() instead of print to set Content-Type. > > Hope that helps. Thanks Chris. I tried t

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> >I have a problem setting my headers right with php running as .cgi. I > >have to specify a Content-type for the cgi file to work. But how > >should I do both that and start a session? > > > >I have a few options: > > > >#! /usr/local/bin/php > > >session_start(); > >print 'Content-type:

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Chris Shiflett
--- Børge Strand <[EMAIL PROTECTED]> wrote: > I have a problem setting my headers right with php running as > .cgi. I have to specify a Content-type for the cgi file to work. > But how should I do both that and start a session? Try using header() instead of print to set Content-Type. Hope that he

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread David Otton
On Sat, 10 Jan 2004 17:44:18 +0100 (MET), you wrote: >I have a problem setting my headers right with php running as .cgi. I >have to specify a Content-type for the cgi file to work. But how >should I do both that and start a session? > >I have a few options: > >#! /usr/local/bin/php >session_s

RE: [PHP] Headers Problem

2003-12-24 Thread Beauford
testing. I have looked at both php.ini files, and other than the OS specific stuff, they are the same as well. Thanks again... -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: December 24, 2003 8:52 AM To: Beauford Cc: 'PHP' Subject: Re: [PHP] Headers Pro

Re: [PHP] Headers Problem

2003-12-24 Thread CPT John W. Holmes
From: "Beauford" <[EMAIL PROTECTED]> > Just a clarification, session_start() is on the first line of restricted.inc > and restricted.inc is included on the first line of > update-corrections-input.php. All update-corrections-write.php does is write > info to a database and includes update-correctio

RE: [PHP] Headers Problem

2003-12-24 Thread Beauford
Beauford wrote: > I'm getting the following error. My question is, where would I use the > ob_start() and ob_end_flush() function so I can get rid of this. I > have read the PHP manual, but not quite getting it.Or if there is a better way? > Don't work around the problem with output bufferin

Re: [PHP] Headers Problem

2003-12-23 Thread John W. Holmes
Beauford wrote: I'm getting the following error. My question is, where would I use the ob_start() and ob_end_flush() function so I can get rid of this. I have read the PHP manual, but not quite getting it.Or if there is a better way? Don't work around the problem with output buffering; try fix

Re: [PHP] Headers Sent Message

2003-11-14 Thread Marek Kilimajer
Mark Roberts wrote: Could someone help me out with this. I had this problem about a year ago with another site and I can't for the life of me remember what I had to do to fix it. I am in a oscommerce application, however I think it is really a php problem. I get this message when ever I try to upd

Re: [PHP] Headers Sent Message

2003-11-14 Thread Chris Shiflett
--- Mark Roberts <[EMAIL PROTECTED]> wrote: > Warning: Cannot modify header information - headers already sent by > (output started at /home/virtual/site1/fst/var/www/html/admin3/includes/application_top.php:267 > ) in > /home/virtual/site1/fst/var/www/html/admin3/includes/functions/general.php > o

Re: [PHP] Headers Sent Message

2003-11-14 Thread CPT John W. Holmes
From: "Mark Roberts" <[EMAIL PROTECTED]> > Could someone help me out with this. I had this problem about a year ago > with another site and I can't for the life of me remember what I had to do > to fix it. I am in a oscommerce application, however I think it is really a > php problem. I get this m

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Curt Zirzow
* Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): > Wouter van Vliet wrote: > > > 110 $File = $this->Get($User); > > 111 > > 112 foreach($File['Headers'] as $H) header($H);; > > 113 readfile($File['Path']); > >

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Adam i Agnieszka Gasiorowski FNORD
Wouter van Vliet wrote: > 110 $File = $this->Get($User); > 111 > 112 foreach($File['Headers'] as $H) header($H);; > 113 readfile($File['Path']); Do I see TWO ; here or it's just a typo? -- Seks, seksić, seksolatki... news:pl.

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread frederik feys
alled the function and assigned it to a variable and... gone with the wind! Thanks again Mike! Regards Fred -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: vrijdag 18 juli 2003 18:20 To: 'frederik feys '; '[EMAIL PROTECTED] ' Subject: RE: [

RE: [PHP] headers already sent and cookie problem

2003-07-18 Thread Ford, Mike [LSS]
-Original Message- From: frederik feys To: 'Ford, Mike [LSS]'; [EMAIL PROTECTED] Here's the URL: http://www.aurelis.org/store/cart.txt and the get_cartID: http://www.aurelis.org/store/includes/functions/get_cartID.txt -- I've only had time for a quic

RE: [PHP] headers already sent and cookie problem

2003-07-17 Thread frederik feys
20 To: 'frederik feys'; [EMAIL PROTECTED] Subject: RE: [PHP] headers already sent and cookie problem > -Original Message- > From: frederik feys [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 10:21 > > One nasty thing to debug is that the error only shows up from time

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread Ford, Mike [LSS]
> -Original Message- > From: frederik feys [mailto:[EMAIL PROTECTED] > Sent: 16 July 2003 10:21 > > One nasty thing to debug is that the error only shows up from time to > time. > So now everything seems OK. > > What do i have now? > I start my code with session_start > Then include some

RE: [PHP] headers already sent and cookie problem

2003-07-16 Thread frederik feys
of text, sorry for that. But I still don't have the clue. Maybe you like to see my code? Any help welcome! Fred -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: dinsdag 15 juli 2003 11:36 To: 'frederik feys'; [EMAIL PROTECTED] Subject: RE: [PHP] h

RE: [PHP] headers already sent and cookie problem

2003-07-15 Thread Ford, Mike [LSS]
> -Original Message- > From: frederik feys [mailto:[EMAIL PROTECTED] > Sent: 15 July 2003 09:45 > > This is what i get: > "Warning: Cannot add header information - headers already > sent by (output started at /home/u/r/html/store/cart.php:188) > in /home/u/r/html/store/includes/function

Re: [PHP] headers already sent and cookie problem

2003-07-15 Thread Ryan Gibson
You cannot send any page information before you send headers (ie setting a cookie), that means there should be no html before the php that sets the cookie, also any function that are called before you set the cookie cannot output to the browser. Ry On 15/7/03 9:45 am, "frederik feys" <[EMAIL PRO

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread Jeff Harris
On Jun 12, 2003, "-{ Rene Brehmer }-" claimed that: |>You have an extra \r\n. There is one contained in the variable $from so the |>line $headers .= "From: ".$from."\r\n"; is putting \r\n\r\n which signifies |>the end of the headers and the begining of the message body. | |Stupid me ... so simple

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread -{ Rene Brehmer }-
It's not future when I send them ... my clock's within the 15 second limit my NTP sync allows... but maybe the time difference causes ezmlm to do some dancing when sending it out ?? I know listserv based lists can get confused about the time differences... but thanks anyway ;-) Rene At 22:50

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread -{ Rene Brehmer }-
At 22:31 11-06-2003, Jennifer Goodie wrote: >// pull fields from form query >$to = "[EMAIL PROTECTED]"; >$name = $HTTP_POST_VARS['name']; >$address = $HTTP_POST_VARS['address']; >$listname = $HTTP_POST_VARS['listname']; >$action = strtoupper($HTTP_POST_VARS['action']); > >

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> > PS some mailservers do not like \r\n, check the manual on mail() and see > what they suggest, i think it was just \n. RFC for SMTP states that CRLF (\r\n) should be used. A lot of mail servers will accept just \n, but it is best to try and be standards compliant, you have less potential for p

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Chris Hayes
(darn, this one was already answered, i hate it that some people ask questions with a future time.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Chris Hayes
When using my yahoo account as test-target for this script, I get this in return from my Mercury server: == quote from error message == The mail server has encountered errors processing your request: * Unrecognized command "Reply-to:". From: "DeltaPower" <[EMAIL PROTECTED]> Reply-to: "DeltaPowe

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-11 Thread Jennifer Goodie
> >// pull fields from form query >$to = "[EMAIL PROTECTED]"; >$name = $HTTP_POST_VARS['name']; >$address = $HTTP_POST_VARS['address']; >$listname = $HTTP_POST_VARS['listname']; >$action = strtoupper($HTTP_POST_VARS['action']); > >// build headers >$from = "\"$name\"

Re: [PHP] Headers bust ?

2003-02-15 Thread Miles Thompson
Malcom, Do your logic test before your input form. When you think of how a script is processed, on the server, then you'll see that the logic portion must precede any display portion. Juli Meloni has a good example of this structure in her custom error message example. You'll find it at www.t

Re: [PHP] Headers bust ?

2003-02-15 Thread Marco Tabini
On Sat, 2003-02-15 at 09:01, Malcolm wrote: > Hello, > > I've been fooling with this for a few days now. > I'm getting a hearders already sent error. > I know it means I've got output before the header but > I can't figure how else to do this. Hi Malcom-- Looks like you are outputting data ri

[PHP] Re: php headers already sent error.

2003-02-06 Thread Justin Garrett
http://www.php.net/manual/en/faq.using.php#faq.using.headers-sent Justin Garrett "Chris Winters" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Im SO CLOSE! > > Welll to start I had everything running FINE (MySQL, Apache, and PHP) until > I installed STUPID Ze

RE: [PHP] headers and redirect

2003-02-05 Thread John W. Holmes
> I have a question about clearing or resetting headers. My script executes > a > function based on the variables passed to it, such as: > > events.php?action=add > > However, when the function is finished, I need to redirect to "events.php" > with no variables, because refreshing the page cause

Re: [PHP] headers and cookies

2002-10-29 Thread Chris Shiflett
This is not correct. Both the setcookie() and header() functions manipulate the HTTP headers in the response. You cannot have output prior to any function that manipulates headers - that's the limitation. These two functions work fine together in any order; it's prior output that will cause an

  1   2   >