Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » RADICORE Suggestions » path generalization
path generalization [message #902] Wed, 04 July 2007 18:17 Go to previous message
evrix is currently offline  evrix
Messages: 3
Registered: July 2007
Junior Member
don't blame me for this Confused
but i have been struggling a bit to have radicore work in a user directory under linux (/home/<myself>/public_html/radicore) because of line 633 in include.xml.php5.inc of sample radicore app (http://www.tonymarston.net/sample/sample-application.zip) which uses $SERVER['DOCUMENT_ROOT'] to build a part of a path; this made some paths start with "/var/www/" instead of the correct one so i changed the whole line from
$filename = $_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']) .'/xsl/' .$xsl_file;
to
$filename = dirname($_SERVER['SCRIPT_FILENAME']) .'/xsl/' .$xsl_file;
and now it works

ps: i found a similar problem in a post about installation issues in which a solution is proposed to use rewrite rules in htaccess in order to have radicore work in "unusual" paths and i wonder (and ask... Very Happy ) if mine is an adoptable solution too
thanks

ps2: a found a similar declaration at line 849 in "official" include.xml.php5.inc file; i guess i could make the same modification there too
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: std.encryption.class.inc
Next Topic: Future options
Goto Forum:
  


Current Time: Fri Nov 22 14:42:08 EST 2024

Total time taken to generate the page: 0.01146 seconds