System File Path ?

admin

Administrator
Staff member
Hi all<br /><br />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<br /><br />It should be something like this<br /><br />C:/Program Files/Abyss Web Server/htdocs/<br /><br />If somebody could help me ith this that would be great<br /><br />thanx<!--content-->
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.<br /><br />Can you please give us some more details of what it is you are trying to implement?<!--content-->
Here is a copy of the config file for you to view hope this helps<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?<br /><br />#=============================================<br /># SimNews.net - News Scripts v1.0.0<br />#=============================================<br /># ?003 SimNews.net All Rights Reserved<br /># Scripting by Straetis Interactive (www.straetis.com)<br />#=============================================<br /><br />// Used to let other pages know that the <br />// Config file has been included<br />define("_CONFIG",1);<br /><br /><br />// File system path to these scripts<br />// ===========================<br />$config['filepath'] = "C:/program Files/Abyss Web Server/htdocs/";<br /><br />// URL to these scripts<br />// =================<br />$config['path_url'] = $config['url_path'] = "http://www.fs-vaa.com/simnews/Simnews/";<br />$config['template_library'] = $config['filepath'] . "/tpl";<br /><br />// Database Wrapper Class - DO NOT EDIT<br />// =================================<br />$config['database_engine'] = "mysql";<br /><br />// Database Connection Info<br />// =====================<br />$config['dbserver'] = "localhost";<br />$config['dbuser'] = "removed";<br />$config['dbpass'] = "removed";<br />$config['database'] = "Removed";<br /><br />// Display Settings<br />// =====================<br />$config['alternating'][] = "#F0F0F0";<br />$config['alternating'][] = "#FAFAFA";<br />//////////////////////////////////////////////////////////////////////<br /><br />$mtime = microtime();<br />$mtime = explode(" ",$mtime);<br />$mtime = $mtime[1] + $mtime[0];<br />$starttime = $mtime;<br /><br />?><!--c2--></div><!--ec2--><!--content-->
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?<br /><br />Dunno if this will help, but one of my php apps references:<br /><b>/home/<!--coloro:blue--><span style="color:blue"><!--/coloro-->myusername<!--colorc--></span><!--/colorc-->/public_html/<!--coloro:blue--><span style="color:blue"><!--/coloro-->myappfolder<!--colorc--></span><!--/colorc-->/</b><!--content-->
I will try that thanx alot <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Hmmmm................. I tryed that here is a copy of mine /home/fs-vaac/public_html/simnews/Simnews that is where the files are if you go here you can see the error that i am getting from this <a href="http://www.fs-vaa.com/simnews/Simnews/1index.php" target="_blank">http://www.fs-vaa.com/simnews/Simnews/1index.php</a><!--content-->
Also, Whare, this is a coding/scripting issue not a server issue. So, I'm moving this post to the appropriate forum.<!--content-->
Sorry about that i did not no<!--content-->
No problem, whare.<br /><br />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.<br /><br />To get the script, and to see it in action, go to the TCH Help Web site -- <a href="http://www.totalchoicehosting.com/help/toolspage.htm" target="_blank">click here.</a><br /><br />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.<br /><br />-kw<!--content-->
 
Top