[Xerte] Re: Problem with XOT file path

Jenny.S jennysong.ss at gmail.com
Wed Nov 30 11:09:03 GMT 2011


Thanks! That's encouraging :-)
I will move on with this path, let's see how this works after I finish
composing the config.php and test it.

On Wed, Nov 30, 2011 at 7:05 PM, Julian Tenney <
Julian.Tenney at nottingham.ac.uk> wrote:

> Yes, you can mix up \ and / in paths.
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
> Sent: 30 November 2011 11:00
> To: Xerte discussion list
> Subject: [Xerte] Re: Problem with XOT file path
>
> windows usually resolves \\, \ and / when dealing with file systems
> (from what I recall)
>
> On Wed, Nov 30, 2011 at 10:47 AM, Jenny.S <jennysong.ss at gmail.com> wrote:
> > I put XOT files inside my main site under a
> > subdirectory'library\includes\xot\', and I didn't use the XOT setup
> process.
> > Instead, I write the config.php manually to point things to my site.
> > 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:
> >
> > define( 'XOT_DIR', substr(getcwd(),0,strlen(getcwd())-5) );
> > $xerte_toolkits_site->users_file_area_short = 'USER_FILES/'
> >
> >  $xerte_toolkits_site->users_file_area_full =
> >  $xerte_toolkits_site->root_file_path  .
> > $xerte_toolkits_site->users_file_area_short;
> >
> > The output is:
> >
> > 'D:\xampp\htdocs\testjet\library\includes\xotUSER-FILES/'
> >
> > so, I modified the full path to:
> > $xerte_toolkits_site->users_file_area_full =
> >  $xerte_toolkits_site->root_file_path  . '\\' .
> > $xerte_toolkits_site->users_file_area_short;
> > The output is:
> >
> > 'D:\xampp\htdocs\testjet\library\includes\xot\USER-FILES/'
> >
> > Seems not right. Is it how the thing supose to be, or should I use
> > str_replace to change the '\'  to '/' ?
> >
> > Thanks for helping!
> >
> >
> >
> > This message and any attachment are intended solely for the addressee and
> > may contain confidential information. If you have received this message
> in
> > error, please send it back to me, and immediately delete it. Please do
> not
> > use, copy or disclose the information contained in this message or in any
> > attachment. Any views or opinions expressed by the author of this email
> do
> > not necessarily reflect the views of the University of Nottingham.
> >
> > This message has been checked for viruses but the contents of an
> attachment
> > may still contain software viruses which could damage your computer
> system:
> > you are advised to perform your own checks. Email communications with the
> > University of Nottingham may be monitored as permitted by UK legislation.
> >
> >
> > _______________________________________________
> > Xerte mailing list
> > Xerte at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >
> > This message and any attachment are intended solely for the addressee and
> > may contain confidential information. If you have received this message
> in
> > error, please send it back to me, and immediately delete it.   Please do
> not
> > use, copy or disclose the information contained in this message or in any
> > attachment.  Any views or opinions expressed by the author of this email
> do
> > not necessarily reflect the views of the University of Nottingham.
> >
> > This message has been checked for viruses but the contents of an
> attachment
> > may still contain software viruses which could damage your computer
> system:
> > you are advised to perform your own checks. Email communications with the
> > University of Nottingham may be monitored as permitted by UK legislation.
> >
> >
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111130/fc59952f/attachment-0001.html>


More information about the Xerte mailing list