close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Choose Image - Slashes are incorrect in path

Thread began 6/22/2011 4:28 pm by codamedia | Last modified 11/25/2011 4:49 pm by codamedia | 3534 views | 21 replies


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
$startKFMDir = getcwd();
require_once( "library.php" );
<?php require_once( "../../Connections/xxx.php" ); ?>
<?php //Security ?>
<?php chdir($startKFMDir); ?>
$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?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...