a version that works with php 4.0.6 ?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Dave,

okay, let's try this:

Search for all the superglobal variables like $_SERVER, $_REQUEST and $ENV like $_SERVER["PHP_SELF"].

Change them from $_SERVER["PHP_SELF"] to $PHP_SELF.

Then it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

Will give it a go

Post by dmoreman »

Thanks Thorsten

I presume this is just in the index.php admin/index.php and installer.php files?

also - I only change the PHP_SELF bit to $PHP_SELF wherever it occurs?

or do i replace the entire variable?


Dave
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Dave,

you have to change it in every PHP file of the FAQ. :-(

... and change the whole variable: $_SERVER["PHP_SELF"] -> $PHP_SELF

or for example $_REQUEST["id"] -> $id

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

still not quite clear ...

Post by dmoreman »

Just so I am clear :

$_SERVER -> $PHP_SELF
$_REQUEST -> $PHP_SELF
$_SERVER["PHP_SELF"] -> $PHP_SELF
but
$_SERVER["id"] -> $ID

any others beside $_SERVER and $_REQUEST ?

$ENV ??

Dave
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: still not quite clear ...

Post by Thorsten »

Hi,
dmoreman wrote:$_SERVER -> $PHP_SELF
$_REQUEST -> $PHP_SELF
WRONG
dmoreman wrote:$_SERVER["PHP_SELF"] -> $PHP_SELF


but
$_SERVER["id"] -> $id
correct....
dmoreman wrote: any others beside $_SERVER and $_REQUEST ?

$ENV ??
yes...

It would be safer and easier if you would upgrade your version of PHP and MySQL....

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

Well - I tried (and so did you!)

Post by dmoreman »

I changed EVERY superglobal but it still won't install :(

Time to give up I think!

Thanks so much for all your support - I will be back in touch when our server team upgrade! :?

All the best

Dave
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Dave,

sorry. :(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
meikel
Posts: 135
Joined: Wed Feb 12, 2003 11:12 am
Location: Erfurt
Contact:

Re: a little confused ..

Post by meikel »

dmoreman wrote:Meikel - could you possibly translate your post please ??
sorry, my 'english' is very bad.

Code: Select all

if (isset ($HTTP_SERVER_VARS)) 
    { 
        $_SERVER = &$HTTP_SERVER_VARS; 
    }
will not work ?
example:

Code: Select all

$_REQUEST['test'] = 'OK';
function test()
{
  printf ('%s', (isset($_REQUEST['test'])) ? $_REQUEST['test'] : 'empty');
}
test();
PHP 4.0.6 ($_REQUEST is not 'superglobal'):
output: 'empty'

PHP >= 4.1.x ($_REQUEST is 'superglobal'):
output: 'OK'
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

thanks - 1.1.5?

Post by dmoreman »

Thanks Meikel

Thorsten - I don't suppose there is any chance of getting a copy of v1.1.5 to play with is there?

cheers

Dave
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Dave,

please send me an e-mail to thorsten@phpmyfaq.de, okay! Let's see what I can do...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply