Re: [PHP] PhP 4.2.1 (and various)

2002-05-16 Thread Olav Bringedal
--- Analysis Solutions [EMAIL PROTECTED] wrote: Olav: Perhaps because you're ignoring what I said. This will generate an error message if there's no player variable in the request string and you have error reporting set high enough. Evaluate for empty($_GET['player']) Why

[PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Olav Bringedal
Hi! I've recently upgraded to 4.2.1, but i have gotten a lot of problems with it. First of all my pbpBB 2.0 forums stopped working (http://utge.dyndns.org/phpbb2/index.php). When you try to log in i get an error, malfomed header request? (im not on the actual machine now :)). I also have

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Analysis Solutions
On Wed, May 15, 2002 at 07:34:13AM +0100, Olav Bringedal wrote: First of all my pbpBB 2.0 forums stopped working Do they use variables straight up, rather than via the new superglobals such as $_POST? Simple solution, change your php.ini to have register_globals = on.

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Vincent Oostindie
On Wed, 15 May 2002 08:52:49 +0200, Analysis Solutions wrote: So my question is, why has that changed, and what do we do now to authenticate users and redirect them to anothe page? And what the hell is this thingy, i cant see to find anything on it in the manual, and search doesnt work for

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Olav Bringedal
--- Vincent Oostindie [EMAIL PROTECTED] wrote: Not only that: if you are running a production server, you will probably want to log your error messages to a file (or syslog, or whatever), instead of printing them. So 'display_errors' should be off. If that is the case, you don't need to

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Analysis Solutions
Olav: On Wed, May 15, 2002 at 11:53:06AM +0100, Olav Bringedal wrote: $user=$Session[user]; if(!$Authorized) { header (Location: http://jaggu.org;); } As I was saying before, write your code in a way that doesn't generate error messages. For example, the above passage would be

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Miguel Cruz
On Wed, 15 May 2002, Olav Bringedal wrote: That is all well, but if php 4.2.1 interprets any output (as errors not only screen errors) as something that is sent before a header in a redirect, there is no other way (that i'm aware of) around it. Like this: $user=$Session[user];

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Olav Bringedal
--- Analysis Solutions [EMAIL PROTECTED] wrote: Olav: On Wed, May 15, 2002 at 11:53:06AM +0100, Olav Bringedal wrote: $user=$Session[user]; if(!$Authorized) { header (Location: http://jaggu.org;); } As I was saying before, write your code in a way that doesn't

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Analysis Solutions
Olav: if( empty($Authorized) ) { header ('Location: http://jaggu.org'); } else { $user = $Session['user']; } Thanks for the reply, but it didnt help :) Perhaps because you're ignoring what I said. The code is without errors. What I submitted was written on the