Jan 30th, 2013, 1:08 PM
I think I have this solved. After searching and searching I found a thread here:
http://forums.formtools.org/showthread.p...is+invalid
In a response to another users post, MrGarvin posted an example of how a correct config.php should be set up. Should look like this:
<?php
// main program paths - no trailing slashes!
// The root url is the exact web adress to your formtools folder.
// Root dir is the exact folder adress on your server. This is just an example. Ask your provider for the correct address if in doubt.
$g_root_url = "http://www.website.com/formtools";
$g_root_dir = "/Applications/MAMP/htdocs/webfolder/formtools";
// database settings.
$g_db_hostname = "localhost";
$g_db_name = "mydatabase";
$g_db_username = "root";
$g_db_password = "root";
$g_table_prefix = "ft_";
?>
The path in $g_root_dir did not look like the info I had in my config.php file and the odd (to me) looking path reminded me of a cool php script that returns a path to any folder on your server.
I uploaded the php script and determined that my correct $g_root_dir path to Form Tools looks like this:
"/home/myftplogin_name/public_html/form_tools"
I updated my config.php file with that info and I'm now getting through my test install now so I think I'm going to be ok.
A note to users who may stumble upon THIS thread needing help identifying their path to Form Tools. The path can look different on different servers and different hosting companies so I would suggest using this script:
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
Save that code as fullpath.php and upload it to your Form Tools directory. Access the file by going to: http://www.yourwebsite.com/formtools/fullpath.php and the script will return the correct path for your config.php file. It will also give you the path to .htpasswd if that helps you in any way.
At least this worked for me.
Thnks to MrGarvin for the contribution on the other thread.
http://forums.formtools.org/showthread.p...is+invalid
In a response to another users post, MrGarvin posted an example of how a correct config.php should be set up. Should look like this:
<?php
// main program paths - no trailing slashes!
// The root url is the exact web adress to your formtools folder.
// Root dir is the exact folder adress on your server. This is just an example. Ask your provider for the correct address if in doubt.
$g_root_url = "http://www.website.com/formtools";
$g_root_dir = "/Applications/MAMP/htdocs/webfolder/formtools";
// database settings.
$g_db_hostname = "localhost";
$g_db_name = "mydatabase";
$g_db_username = "root";
$g_db_password = "root";
$g_table_prefix = "ft_";
?>
The path in $g_root_dir did not look like the info I had in my config.php file and the odd (to me) looking path reminded me of a cool php script that returns a path to any folder on your server.
I uploaded the php script and determined that my correct $g_root_dir path to Form Tools looks like this:
"/home/myftplogin_name/public_html/form_tools"
I updated my config.php file with that info and I'm now getting through my test install now so I think I'm going to be ok.
A note to users who may stumble upon THIS thread needing help identifying their path to Form Tools. The path can look different on different servers and different hosting companies so I would suggest using this script:
<?php
$dir = dirname(__FILE__);
echo "<p>Full path to this dir: " . $dir . "</p>";
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
?>
Save that code as fullpath.php and upload it to your Form Tools directory. Access the file by going to: http://www.yourwebsite.com/formtools/fullpath.php and the script will return the correct path for your config.php file. It will also give you the path to .htpasswd if that helps you in any way.
At least this worked for me.
Thnks to MrGarvin for the contribution on the other thread.