sounds like you are having the same problem as I did: the path to your
'includes'. See the recent thread beginning here:
http://groups.yahoo.com/group/php-list/message/18331
http://groups.yahoo.com/group/php-list/message/18332
http://groups.yahoo.com/group/php-list/message/18333
http://groups.yahoo.com/group/php-list/message/18334
http://groups.yahoo.com/group/php-list/message/18336
http://groups.yahoo.com/group/php-list/message/18337
http://groups.yahoo.com/group/php-list/message/18339

Tim in Ireland


----- Original Message ----- 
From: "Kishore Balla" <[EMAIL PROTECTED]>
Sent: Tuesday, October 11, 2005 4:16 PM
Subject: [php-list] including database config file


> Hi all,
>
> I'm facing a problem with including the database config file..
>
> I kept database variables in a config file like this..
>
> connect.php
>
> <?php
>
> $dbhost='something';
> $dbuser='something';
> $dbpass='something';
> $dbname='something';
> ?>
>
> then in my home.php file I've included that file ( both connect.php and
> home.php are in same folder );
>
> <?php
>
> include 'connect.php';
>
> $db=mysql_connect($dbhost,$dbuser,$dbpass);
> mysql_select_db($dbname,$db);
>
> //some actions
>
> ?>
>
> The above thing worked fine until I moved the config file to root
> directoryso that It will be available to all scripts..
>
> the changes I've made to the script.. home.php
>
> <?php
>
> include 'http://domain.com/connect.php';
>
> $db=mysql_connect($dbhost,$dbuser,$dbpass);
> mysql_select_db($dbname,$db);
>
> //some actions
>
> ?>
>
> the above code this throwing errors.. what could the problem...
>
> thanx in advance...
>
> --
> KISHORE
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to