7
Try this. Save the code below as a new file titled rootpath.php and upload it to your main directory (same directory where you find files like mainfile.php, index.php, backend.php, user.php) Then point your browser to this file -
http://yoursite/rootpath.php and it will display your physical root path. Make sure that this is exactly the same as you have defined in mainfile.php for XOOPS_ROOT_PATH
// Use this script to get the physical root path of your server
// Just upload this file to the main directory and point your browser to it
// http://your_xoops_directory/rootpath.php
echo "Your root path is ".str_replace("\","/",getcwd())."
";
echo "without string replace: ".str_replace("\","/",getcwd())."";
?>