Reply
Old 07-01-2009, 08:31 AM Please Help??
Beaurepairs's Avatar
Novice Talker

Posts: 13
Name: Beau Lee Clarke
Location: Australia
Trades: 0
Where do i put my information in like username and password. like i know it goes were the host,user,pass info is but like were.can someone show me?

if i have put this in the wrong section please move it sorry



# include "connect.inc";

if (!$dblink||!$dbsel) { $e5=true; }
else
{
if (file_exists("var.php")) { @unlink("inc/var.php"); }

$read=@fopen("install_var.php", "r");
$result=@fread($read, 1024);
@fclose($read);

$result=str_replace("{{dbhost}}", $dbhost, $result);
$result=str_replace("{{dbuser}}", $dbuser, $result);
$result=str_replace("{{dbpass}}", $dbpass, $result);
$result=str_replace("{{db}}", $db, $result);

$read=fopen("var.php", "w");
fwrite($read, $result);
fclose($read);

chmod("var.php", 0755);

header("Location: install2.php");
Beaurepairs is offline
Reply With Quote
View Public Profile Visit Beaurepairs's homepage!
 
 
When You Register, These Ads Go Away!
Old 07-01-2009, 11:27 AM Re: Please Help??
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,048
Name: Matt
Location: Irvine, CA
Trades: 0
Assuming you are talking about the username and password for your database, I'm guessing it would be in the connect.inc file you include.
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is offline
Reply With Quote
View Public Profile
 
Old 07-01-2009, 11:41 AM Re: Please Help??
Lashtal's Avatar
PHP Learner

Posts: 480
Name: Lashtal
Trades: 0
I would say so.

But who is to say whether or not that connect.inc file references a config.php file with the info in it?
__________________
AmandaRodrigues.com
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 07-02-2009, 04:40 AM Re: Please Help??
Beaurepairs's Avatar
Novice Talker

Posts: 13
Name: Beau Lee Clarke
Location: Australia
Trades: 0
thanks for responding.

but i figured it out

thanks again
Beaurepairs is offline
Reply With Quote
View Public Profile Visit Beaurepairs's homepage!
 
Old 07-02-2009, 06:04 AM Re: Please Help??
Average Talker

Posts: 28
Trades: 0
I don't understand why you remove var.php file in inc folder ,not current dir's var.php.

if (file_exists("var.php")) { @unlink("inc/var.php"); }
freemori is offline
Reply With Quote
View Public Profile Visit freemori's homepage!
 
Reply     « Reply to Please Help??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11818 seconds with 13 queries