Welcome, Guest. Please Login or Register.
April 27, 2025, 06:47:04 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  Will YaBB SE 1.3.0 work with php 4.2.0 default settings? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Will YaBB SE 1.3.0 work with php 4.2.0 default settings?  (Read 750 times)
b4zz
Noobie
*
Posts: 26


I love YaBB SE!

Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« on: May 14, 2002, 02:39:38 PM »
Reply with quote

I was just about to install YaBB SE 1.3.0 when i noticed that I couldnt get any further than the intro page in install.php.

I just looked abit in the code and saw this line:
elseif($step == 'zero')
$step is set thru the the URL /install.php?step=zero

But that code isnt right by php 4.2.0 default php.ini file where register_globals is set Off.

Will YaBB SE 1.3.0 work correctly after installing it, or are there more places where it expect register_globals is set to On ?

Im asking this because if i am gonna get alot of these, id rather wait until there is a new version which doesnt require register_globals = On  :)


/b4zz
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #1 on: May 14, 2002, 02:49:01 PM »
Reply with quote

SE is built assuming register globals is on.  A couple of solutions were posted so far...I'll try to find them.
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #2 on: May 14, 2002, 02:58:24 PM »
Reply with quote

Add this to the top of your install.php file and see if it helps:

ini_set ( "register_globals", 1);
Logged

b4zz
Noobie
*
Posts: 26


I love YaBB SE!

Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #3 on: May 14, 2002, 03:12:20 PM »
Reply with quote

That didnt work for me.
I also tried this, just to see if id would work:
<?
$mode = ini_get("safe_mode");
echo $mode;
?>
That didnt give any output either.

I could set register_globals = On.. but how close is a newer YaBB release where this new default php setting could be taken in consideration?


/b4zz
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #4 on: May 14, 2002, 03:21:59 PM »
Reply with quote

Nobody is working on one.  Do you have access to change register globals in the ini file?
Logged

b4zz
Noobie
*
Posts: 26


I love YaBB SE!

Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #5 on: May 14, 2002, 03:34:36 PM »
Reply with quote

Yes its my very own freshly installed freebsd server.
I installed the newest apache, mysql and php.
because I wanted to make sure that every script that it runs is as secure and supported as well as it can be.

I did have a problem with some script on my older installation. some scripts wouldnt work out-of-the-box because of things like this: mysql_unbuffered_query
it had to be changed to: mysql_query

So I installed the newest of everything, also because I have heard something about a serious security flaw in a php upload function or something.

But as soon as I got everything up and running I ran into new problems.. simple stuff like: echo $HTTP_HOST;
wouldnt work now, people on usenet told me that now it had to be $_SERVER["HTTP_HOST"].. supposedly this would make people make neat'ier phpcoding!?.


/b4zz
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #6 on: May 14, 2002, 03:39:31 PM »
Reply with quote

Yeah it's supposed to :)  Anyway, I'm working on something for this - see the News From SE Team board...
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #7 on: May 22, 2002, 08:20:42 PM »
Reply with quote

Jeff, ini_set only works for the duration of the script ;)
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #8 on: May 22, 2002, 08:31:39 PM »
Reply with quote

Jedi, and that's all someone would want...the duration of a call to SE.  besides, it doesn't matter anymore as we have code that is coming out for 1.4
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #9 on: May 23, 2002, 12:05:21 AM »
Reply with quote

But if it's in install.php, how is that going to affect the actual forum itself, it'd need to be in index.php would it not? ;)
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #10 on: May 23, 2002, 01:21:25 AM »
Reply with quote

Don't worry, 1.4 will work fine...
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #11 on: May 23, 2002, 10:15:53 AM »
Reply with quote

Hehe, I bet it will, but I tested it and ini_set at the beggining of index.php fixes it, lol.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Will YaBB SE 1.3.0 work with php 4.2.0 default settings?
« Reply #12 on: May 23, 2002, 11:24:27 AM »
Reply with quote

 ::)

Why don't you beat it to death?  ini_set doesn't work in safe mode...
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Will YaBB SE 1.3.0 work with php 4.2.0 default settings? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.038 seconds with 16 queries.