I put XOT files inside my main site under a subdirectory<b>'library\includes\xot\'</b>, and I didn't use the XOT setup process. Instead, I write the config.php manually to point things to my site.<br>Now I have problem config the path-- the root file path is with "\" while the XOT short pathes are with "/" , when joining the 2 pathes, I got wrong path. For example:<br>
<br><span style="color: rgb(51, 51, 255);">define( 'XOT_DIR', substr(getcwd(),0,strlen(getcwd())-5) );</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">$xerte_toolkits_site->users_file_area_short = 'USER_FILES/'</span><br style="color: rgb(51, 51, 255);">
<br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> $xerte_toolkits_site->users_file_area_full =<br> $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short;</span><br style="color: rgb(51, 51, 255);">
<br>The output is:<br><pre class="xdebug-var-dump" dir="ltr"><font color="#cc0000" size="4">'D:\xampp\htdocs\testjet\library\includes\xotUSER-FILES/'</font></pre>so, I modified the full path to:<br><span style="color: rgb(51, 51, 255);">$xerte_toolkits_site->users_file_area_full =<br>
$xerte_toolkits_site->root_file_path .<b> '\\' </b>. $xerte_toolkits_site->users_file_area_short;</span><br>The output is:<br><pre class="xdebug-var-dump" dir="ltr"><font color="#cc0000" size="4">'D:\xampp\htdocs\testjet\library\includes\xot\USER-FILES/'</font></pre>
Seems not right. Is it how the thing supose to be, or should I use str_replace to change the '\' to '/' ?<br><br>Thanks for helping!<br><br><br>