News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Auto installer help

Started by Isaac, July 24, 2005, 02:37:05 AM

Previous topic - Next topic

Isaac

More troubles with my auto installer.  I've gotten it so it gets the the install.php, but alas, it doesn't like localhost.  I can't seem to figure out what to do.  Try it for yourself.

http://isaac.hostdestroyer.com/timmy/install.php

Now, in install.php, the line that I believe needs tweaking is currently set as:
$db_server = @ini_get('mysql.default_host') or $db_server = 'localhost';

But I have also tried:

$db_server = 'localhost';
And that failed also, giving me the same error.

Any help is much appriciated. :)

[Unknown]


Isaac

Quote from: [Unknown] on July 24, 2005, 02:38:51 AM
Try 127.0.0.1.

-[Unknown]

$db_server = '127.0.0.1';
and
$db_server = @ini_get('mysql.default_host') or $db_server = '127.0.0.1';


Did not work.  I still get the error message:

QuoteCannot connect to the MySQL database server with the supplied data.

If you are not sure about what to type in, please contact your host.
Unknown MySQL Server Host 'localhost (localhost will probably do)' (1)
Click here to try this step again.

[Unknown]

Try changing this line:

$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);

-[Unknown]

Isaac

Ok, I got that part working, thanks for the help.

Now, I need to have the database password entered, but without it being viewable via "View Source".  I know this has something to do with _POST, but I cannot figure it out.

Can anyone offer any insight to my problem?  Thanks!

[Unknown]

Just remove the field, and hardcode it in the other function.

-[Unknown]

Isaac

YES!  YES!  It works!

Thank you so much [Unknown], I'd be lost without you. :)

Isaac

Bah, I knew it was too good to be true. X_X

I'm trying to figure out why all the boards turn out like this.  If you could offer any advice, I'd be grateful. :)

[Unknown]


Isaac

Ah, I had a hunch it was something to do with the language settings!  Thanks a million!  :)

Advertisement: