[PHP] Re: header() not working.

2001-08-21 Thread Gijsbert te Riet

Hi Jay,

> anyone know why the header() wouldn't work?  I don't have anything
> being printed out before or after I call the header().  The only thing
> that does happen is when it tries to redirect the user it sends them
> to a 404 page error.  Also, when I check the web server log it says
> it's trying to call ".php" (note no file name in front of the '.php').
> I'm not sure what's going on but any suggestions?
>

If you call the function Header, like:
Header($name.".php");

Then there's an possibility that $name (your variable name) isn't set.
Could you supply the part of your code where you call Header? That
should make the problem better traceable.

Regards,
Gijs.



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: strange error

2001-08-22 Thread Gijsbert te Riet

Hi Jeremy,

> I get an error message which I can't figure out.
>
> Its a Parse error: on line 142 which is the last line of the page containing
> absolutly no code. The last line of code is simply ..Did
> anyone have a similar experience? Can anyone help me out please?

I guess you haven't closed the , before your 
code.
Otherwise, the php parser will think that it's still parsing php code,
which results in an parse error.

Regards,
Gijs.



-- 
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 administrators, e-mail: [EMAIL PROTECTED]