|
From: Rene R. <re...@gr...> - 2002-10-14 06:31:47
|
A few examples of what needs to be changed:
getenv("DOCUMENT_ROOT") is now:
$_SERVER["DOCUMENT_ROOT"]
Variables should be be like this:
before: $username
now: $_POST['username'] (or $_GET['username'] depending on the type of
form method used)
Sessions are a problem too.
to register a session:
if (!$_SESSION['srvcfg']) {
$srvcfg =3D new server();
$_SESSION['srvcfg'] =3D $srvcfg;
}
to use it without changing every instance with refers to it:
$srvcfg =3D &$_SESSION['srvcfg'];
I'm not sure this is a "best pratice" way of doing it, but it worked in
my tests.
Some of this will cause problems with php versions older than 4.0.6
unless we spend some time on making it work in all 4.x versions
-Ren=C3=A9
On Mon, 2002-10-14 at 07:39, Rene Rask wrote:
> I wasn't thinking.. The problem is that I'm using php 4.2.2 now. This
> means that the new default settings are "register_globals =3D off" and
> "php_short_tags =3D off".
>=20
> As I think bobs should work out of the box, we'll have to make some
> adjustments to the code. I'm not sure how much is required though.
> If you want to test it, just change those two line in php.ini and
> restart httpd.
>=20
> -Ren=C3=A9
>=20
>=20
>=20
> On Mon, 2002-10-14 at 07:11, Rene Rask wrote:
> >=20
> > BOBS seems to have some problems with running on redhat 8 which is usin=
g
> > apache 2.
> >=20
> > The first problem is easy to solve. All php starting tags should be
> > "<?php" instead of just "<?". It is already in most places but not all.
> > It seems there are other problems as well. I had to change some
> > require() lines as well. I'll have to look more into that before I
> > continue.
> >=20
> > -Rene
> >=20
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Bobs-devel mailing list
> > Bob...@li...
> > https://lists.sourceforge.net/lists/listinfo/bobs-devel
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Bobs-devel mailing list
> Bob...@li...
> https://lists.sourceforge.net/lists/listinfo/bobs-devel
|