Jump to content


WHAT'S THIS - define('ROOT_DIR', realpath (dirname(__FILE__)));

  • Please log in to reply
No replies to this topic

#1 Gar

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 September 2006 - 03:28 AM

Hi Can anybody help me on this one ?

    I am trying to install a my space resource script and this one has got me stumped, I've been up way too late trying to figure it out  :-[

I'm stuck on this code in the config.php file:
the full path is /home/houseof/public_html/myspacestuff

URL is http://www.houseofgar.net/myspacestuff

I have been able to get the site up, limping, but it has many bugs and I think it may be the
way I have configured this syntax.

define('ROOT_DIR',    realpath  (dirname(__FILE__)));
What do I do with this part: (dirname(__FILE__)));

Currently I have it configured like this:

define('ROOT_DIR', '/home/houseof/public_html/myspacestuff/');
There is no formatting and the navigation return 404 errors, I am assuming it has something to do with the fact that I removed
Can anyone help !!
Thanks a lot I really appreciate it

here's the whole config file

// database param
define('DB_TYPE', 'mysql');
define('DB_SERVER', 'localhost');
define('DB_USER', 'root');
define('DB_PASSWORD', 'liumin');
define('DB_DATABASE', 'myspace');

// set
define('SITENAME','Myspace Codes');
define('SHOWPIMP','ON');	//ON or OFF      show left-top

define('ROOT_DIR',    realpath  (dirname(__FILE__)));

$mysql_server = DB_SERVER;
$mysql_user = DB_USER;
$mysql_pass = DB_PASSWORD;
$mysql_db = DB_DATABASE;

$strDBServer = $mysql_server;
$strDBUser = $mysql_user;
$strDBPass = $mysql_pass;
$strDBName = $mysql_db;
$strPath = $site_url;

$site_name = SITENAME;
$site_url = HOMEPAGE;

$strFPID = "44824328";
$strFPName = "Sexy Me!!!!";
$strFPAge = "22";
$strFPQuote = "ADD ME!";
$strFPImage = "http://myspace-441.vo.llnwd.net/00389/14/43/389053441_m.jpg";

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users