a version that works with php 4.0.6 ?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

a version that works with php 4.0.6 ?

Post by dmoreman »

Hi

What is the latest version of phpmyFAQ that will work with php 4.0.6 ?

Would that be version 1.2.x ?

regards

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

Post by Thorsten »

Hi,

the last version which works with PHP 4.0.6 is phpMyFAQ 1.1.5. This version is very old, buggy and insecure. We do not offer this version for download because of copyright issues.

Sorry.

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

v 1.1.5

Post by dmoreman »

Thanks for the answer - the reason I asked is that our webserver is due to upgrade to php 4.3.x at the end of January, but I need to run the faq script now.

I have seen a number of sites that are running phpmyfaq 1.1.5 and they look OK - is there no way at all of getting a copy?

or...

is there a way of getting the new version to work with php 4.0.6 ?

all the best

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

Post by Thorsten »

Hi Dave,

I search around and found a fix for your problem.

Just add this code in index.php, admin/index.php and the installer.php in the top of the file after the "<?php" tag:

Code: Select all

    if (isset ($HTTP_SERVER_VARS))
    {
        $_SERVER = &$HTTP_SERVER_VARS;
    }
   
    if (isset ($HTTP_GET_VARS))
    {
        $_GET = &$HTTP_GET_VARS;
    }
   
    if (isset ($HTTP_POST_VARS))
    {
        $_POST = &$HTTP_POST_VARS;
    }
   
    if (isset ($HTTP_COOKIE_VARS))
    {
        $_COOKIE = &$HTTP_COOKIE_VARS;
    }
   
    if (isset ($HTTP_POST_FILES))
    {
        $_FILES = &$HTTP_POST_FILES;
    }
   
    if (isset ($HTTP_ENV_VARS))
    {
        $_ENV = &$HTTP_ENV_VARS;
    }
   
    if (isset ($HTTP_SESSION_VARS))
    {
        $_SESSION = &$HTTP_SESSION_VARS;
    }
This sould work, but is not tested by me.

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

Post by dmoreman »

Hi Thorsten,

Thanks for the code - I'm afraid it still won't install though :

I get

You need PHP Version 4.1.0 or higher!

© 2001 - 2003 phpMyFAQ-Team | All rights reserved.

at

http://www.staffs.ac.uk/schools/science ... taller.php

any ideas

(thanks for looking this by the way! :)


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

Post by Thorsten »

Hi Dave,

sorry....

Open the file installer.php and search for

Code: Select all

if (php_check("4.1.0") == FALSE) {
and change it to

Code: Select all

if (php_check("4.0.0") == FALSE) {
Then everything should work.

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

not yet .....

Post by dmoreman »

still not there yet!

unbelievably we only have MySQL 3.22.30 !!!!!!! :(

I hacked the installer.php again as per your last tip

if (mysql_check("3.22.30") == FALSE) {
print "<p align=\"center\">You need MySQL Version 3.23.23 or higher!</p>";
HTMLFooter();
die();
}

and I can then get to the install screen! :)

BUT

it won't read my passwords and gives

"Error:

Your password or retyped password are empty. Please set your password and your retyped password. "

even though I did type them in

sorry for the continued problem

dave
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

anyone in?

Post by dmoreman »

Hiya

Anybody there?

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

Post by Thorsten »

Hi,

I'll look tomorrow for a solution for you, okay?

btw, the fulltext search will not work with MySQL 3.22.x!

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

thanks Thorsten

Post by dmoreman »

Thanks! Will check in tomorrow :

8)

info that might help

install page
http://www.staffs.ac.uk/schools/science ... taller.php

php info
http://www.staffs.ac.uk/schools/science ... n/info.php

email me if you need db passwords etc.

cheers and thanks again!

dave
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

Any News?

Post by dmoreman »

Hi Thorsten,

Any news on this problem?

cheers

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

Post by Thorsten »

Hi,

could you please test this code in the first line of index.php, admin/index.php and installer.php:

Code: Select all

if (isset ($HTTP_SERVER_VARS))
    {
        $_SERVER = &$HTTP_SERVER_VARS;
    }
   
    if (isset ($HTTP_GET_VARS))
    {
        $_GET = &$HTTP_GET_VARS;
        $_REQUEST = &$HTTP_GET_VARS;
    }
   
    if (isset ($HTTP_POST_VARS))
    {
        $_POST = &$HTTP_POST_VARS;
        $_REQUEST = &$HTTP_GET_VARS;
    }
   
    if (isset ($HTTP_COOKIE_VARS))
    {
        $_COOKIE = &$HTTP_COOKIE_VARS;
    }
   
    if (isset ($HTTP_POST_FILES))
    {
        $_FILES = &$HTTP_POST_FILES;
    }
   
    if (isset ($HTTP_ENV_VARS))
    {
        $_ENV = &$HTTP_ENV_VARS;
    }
   
    if (isset ($HTTP_SESSION_VARS))
    {
        $_SESSION = &$HTTP_SESSION_VARS;
    }
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
meikel
Posts: 135
Joined: Wed Feb 12, 2003 11:12 am
Location: Erfurt
Contact:

Post by meikel »

Thorsten wrote:could you please test this code in the first line of index.php, admin/index.php and installer.php:

Code: Select all

if (isset ($HTTP_SERVER_VARS))
    {
        $_SERVER = &$HTTP_SERVER_VARS;
    }
#
Dadurch wird zB. $_SERVER nicht *superglobal* und ist somit nicht automatisch innerhalb von Funktionen und Klassen gültig.
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

a little confused ..

Post by dmoreman »

Hi folks,

'Entschuldigang sie bitte' (sorry for spelling - I did some German 25 years ago at school!)

I'm a little confused as my german is 'nicht sehr gut' :roll:

Thorsten - presumably I replace the code you posted first with that new block of code?

Meikel - could you possibly translate your post please ??

I make it :

"Through it zB becomes. $_SERVER not *superglobal* and is therefore not automatic within functions and classes valid. "

Does that mean that

if (isset ($HTTP_SERVER_VARS))
{
$_SERVER = &$HTTP_SERVER_VARS;
}
#

will not work ?


Thanks for all the continuing help!! :)
dmoreman
Posts: 13
Joined: Wed Nov 19, 2003 1:44 pm

still no luck

Post by dmoreman »

I tried it with the new code anyway but still get

"Your password or retyped password are empty. Please set your password and your retyped password. "

:(

Dave
Post Reply