Jump to content

Recommended Posts

Posted

Hi all

 

I would like to no the system file path if i can pleaseas i need it for a script that i am running on my hosting

 

It should be something like this

 

C:/Program Files/Abyss Web Server/htdocs/

 

If somebody could help me ith this that would be great

 

thanx

Posted

Are you sure that 's what it should look like? That example would apply if the system path is local, but not for the server.

 

Can you please give us some more details of what it is you are trying to implement?

Posted

Here is a copy of the config file for you to view hope this helps

 

><?

#=============================================
# SimNews.net - News Scripts v1.0.0
#=============================================
# ©2003 SimNews.net All Rights Reserved
# Scripting by Straetis Interactive (www.straetis.com)
#=============================================

// Used to let other pages know that the 
// Config file has been included
define("_CONFIG",1);


// File system path to these scripts
// ===========================
$config['filepath'] = "C:/program Files/Abyss Web Server/htdocs/";

// URL to these scripts
// =================
$config['path_url'] = $config['url_path'] = "http://www.fs-vaa.com/simnews/Simnews/";
$config['template_library'] = $config['filepath'] . "/tpl";

// Database Wrapper Class - DO NOT EDIT
// =================================
$config['database_engine'] = "mysql";

// Database Connection Info
// =====================
$config['dbserver'] = "localhost";
$config['dbuser'] = "removed";
$config['dbpass'] = "removed";
$config['database'] = "Removed";

// Display Settings
// =====================
$config['alternating'][] = "#F0F0F0";
$config['alternating'][] = "#FAFAFA";
//////////////////////////////////////////////////////////////////////

$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;

?>

Posted

Ok, so the config file shows the definition of 'filepath', but what I'm asking for is what is supposed to happen at that filepath? Look through your php page to find references for filepath and see what's happening. Is that supposed to be a local or server path? Is the script trying to use the filepath to define where to get info from the server systems or is it a destination location for some info of some kind?

 

Dunno if this will help, but one of my php apps references:

/home/myusername/public_html/myappfolder/

Posted

No problem, whare.

 

Also, information, such as your home or root directory can be determined by installing a simple script (env.pl) on your web siteand then accessing it through a web browser.

 

To get the script, and to see it in action, go to the TCH Help Web site -- click here.

 

Again - be sure to download it, install and run it on YOUR web server -- as the results will be different that for the server that the Help Web site is running on.

 

-kw

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...