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

Your name:

Reply:


Posted by "bruce" on 09/19/05 15:50

chris,

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...'

the soln appears to be to use the php buffering functions, as this is
supposed to stop output from being generated/posted, allowing the app to
'buffer' the output until the page is displayed.

i've tried to use an 'ob_start()' as the very 1st line in the index.php page
that's being displayed. i've also tried to insert the 'ob_start()' in a
number of various places within the app with no change...

my question was how/what could i possibly do, short of using the javascript
soln, which seems to work...

i also stated that i could readily provide the code that i'm creating if
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:shiflett@php.net]
Sent: Sunday, September 18, 2005 8:20 PM
To: bedouglas@earthlink.net
Cc: 'php'
Subject: Re: [PHP] headers .vs javascript location.href


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
> experience/understanding of what's going on. i've thought about rewriting
> what i have to this point, but i've got code interspersed with html...
>
> yeah.. i know... cleaning it up would probably make things easier/better,
> but this is a quick/dirty test.. and i don't claim to be a web developer!

You need to ask a question if you want to receive an answer. If your
question really is whether there is anyone you can talk to, then the
answer is yes. There are quite a few people on this list who know a
great deal about the topics you mention.

(You might want to start by clarifying the reference to "the same error.")

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация