Remove Document Root...
I cannot believe your amazing patience with trying to help me.
I've tried my best but I still cannot correctly remove the document root from the image path: "D:/Hosting/5230337/html/FileUploads/Images/gift_giving.jpg". I thought it best to include all of my original code for you to review...
In my WebAssist GUI screen: Sub-directory: /FileUploads/
My configuration.php file:
" <?php
@session_start();
$startKFMDir = getcwd();
chdir(dirname(__FILE__));
require_once( "library.php" );
?>
<?php require_once( "../../Connections/xxx.php" ); ?>
<?php //Security ?>
<?php chdir($startKFMDir); ?>
<?php
$kfm_hidden_sidebar = false;
if(isset($_GET['showsidebar']) && $_GET['showsidebar'] == 'false') {
$kfm_hidden_sidebar = true;
}
$kfm_db_type = 'mysql';
$kfm_db_prefix = 'wafm2_';
$kfm_db_host = $hostname_xxx;
$kfm_db_name = $database_xxx;
$kfm_db_username = $username_xxx;
$kfm_db_password = $password_xxx;
$kfm_db_port = '';
$use_kfm_security = false;
$kfm_userfiles_address = '../../FileUploads/';
if (isset($_SESSION['useOverrideRoot'])) {
$kfm_userfiles_address = abs2rel($_SESSION['useOverrideRoot'],dirname(__FILE__));
}
$kfm_userfiles_output = rel2abs($kfm_userfiles_address,dirname(__FILE__));
$kfm_workdirectory = '.thumbnails';
$kfm_imagemagick_path = '/usr/bin/convert';
$kfm_dont_send_metrics = 1;
$kfm_server_hours_offset = 1;
/**
* This function is called in the admin area. To specify your own admin requirements or security, un-comment and edit this function
*/
function kfm_admin_check(){
return false;
}
?> "
Could you repeat this back to me with any of your suggested code in place to make sure I'm not botching up the syntax?