By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

Location Header from class

P: n/a
I try to call a Location header from an included class.
It didn't work.
If I didn't include but write the code of the class in the page everything
is fine.
So I thought it is an include problem but the instantiation of the class is
even when included working.
A print_r shows me the type of the class.
What else can be a problem?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sven <sa************@gmx.de> writes:
I try to call a Location header from an included class.
Do you mean that you're calling the header() function to set the
Location header? Where exactly in the "included class" are you
doing this?
It didn't work.
Did you get any errors, either in the browser or in the web server
logs?
If I didn't include but write the code of the class in the page everything
is fine.
By "fine" do you mean that it redirects the browser, if that's
indeed what you're trying to do?
So I thought it is an include problem but the instantiation of the class is
even when included working.
A print_r shows me the type of the class.
What else can be a problem?


Please post the smallest possible code that demonstrates the problem.
It might also be helpful to see code that works (as your non-included
class supposedly does) in addition to code that doesn't work.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
Jul 17 '05 #2

P: n/a
Sven <sa************@gmx.de> wrote in message news:<Xn****************************@195.202.32.23 0>...
I try to call a Location header from an included class.
It didn't work.
If I didn't include but write the code of the class in the page everything
is fine.
So I thought it is an include problem but the instantiation of the class is
even when included working.
A print_r shows me the type of the class.
What else can be a problem?


Add these two lines in the beginning of your script and then trap the problem.

error_reporting(E_ALL);
ini_set('display_errors', 1);
---
"Dying is an art, like everything else"---Sylvia Plath
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.