Hi Linly,

Thanks your email -- you made me realize my mistake.  Apologies, but I
was careless and wrote the wrong code in my previous email.  The
correct code is given below.

Please allow me to clarify what I was trying to say.  I believe there
is a syntax error with the PHP code for the index.php under the setup
for "Simple and safe in upgrade".  The following code on the tutorial
page (http://www.boltwire.com/index.php?p=docs.tutorials.farms) will
generate a parse error, because the variable $boltwire in the last
line is undefined:

<?php
$BOLTadmin='admin';
$farmPath = "../farm";
include_once("$boltwire/barn/scripts/engine.php");

To fix the problem, we can add one more line so that the code will
look like this:

<?php
$BOLTadmin='admin';
$farmPath = "../farm";
$boltwire = '../boltwire';
include_once("$boltwire/barn/scripts/engine.php");

I have tried this setup and it works, as long $boltwire is defined
before being used in the last line.

I hope I've got the code right this time.  If I make another mistake,
please help point it out!  :-)

Cheers,
JF


On Sep 22, 11:39 pm, Linly <[EMAIL PROTECTED]> wrote:
> Hi JF,
>
> Thank for pointing this out. Please take a second look at that page.
> There are "several alternative setups". The " Simple and safe in
> upgrade" is an independent setup from others. You can see the
> difference in the file tree that the boltwire is "inside" the root
> folder:
>
> Root
>     boltwire2.30
>     boltwire3.31
>     boltwire2.32
>     boltwire    <--Put the latest version here
>     ...
>
> While the " High Security" way is putting the system at the same level
> with root:
>
> Root
> boltwire    <--Put the latest version here
> ...
>
> So the original setting is no problem. But, in other hand, you are
> right in combining these two setting to get all the benefits of both
> method.
>
> Cheers,
> linly
>
> On Sep 22, 10:09 pm, JF <[EMAIL PROTECTED]> wrote:
>
> > Hey guys,
>
> > I think I spotted a mistake on the tutorial 
> > page:http://www.boltwire.com/index.php?p=docs.tutorials.farms
>
> > Scroll down to near the bottom, under "Simple and safe in upgrade".
> > Last code block on the page:
>
> > <?php
> > $BOLTadmin='admin';
> > $farmPath = "../farm";
> > include_once("$boltwire/barn/scripts/engine.php");
>
> > Notice the $boltwire variable hasn't been defined.  There's a missing
> > line:
>
> > $boltwire = '../../boltwire';
>
> > which you should insert before the last line.
>
> > I would have corrected this myself, but unfortunately, I don't seem to
> > have the necessary privileged to edit tutorials.
>
> > Cheers,
> > JF
>
> > On Sep 18, 9:51 am, Linly <[EMAIL PROTECTED]> wrote:
>
> > > Done. And I added a link on "docs.install.setup#upgrade".
>
> > > Cheers,
> > > linly
>
> > > On Sep 18, 1:07 am, "The Editor" <[EMAIL PROTECTED]> wrote:
>
> > > > Linly, perhaps this should be added to the tutorial on farms
>
> > > >http://www.boltwire.com/index.php?p=docs.tutorials.farms
>
> > > > Or somewhere else. It's good information...
>
> > > > Cheers,
> > > > Dan
>
> > > > On Tue, Sep 16, 2008 at 9:15 PM, Linly <[EMAIL PROTECTED]> wrote:
>
> > > > >> > POTENTIAL for problems. So upgrade carefully!
>
> > > > >> I suggest my system:
>
> > > > > I have another BoltWire file tree which make me happy in upgrade:
>
> > > > > boltwire230/
> > > > > boltwire231/
> > > > > boltwire232/
> > > > > boltwire/          <--This is the latest version
>
> > > > > farm/*.*           <--I move the farm folder here
>
> > > > > myfield1/
> > > > > myfield2/
> > > > > ...
>
> > > > > The index.php of every site is:
>
> > > > > <?php
> > > > > $BOLTadmin='admin';
> > > > > $farmPath = "../farm";
> > > > > include_once("$boltwire/barn/scripts/engine.php");
>
> > > > > In this method, I don't need to move the skins and plugins to new
> > > > > boltwire version. The first thing to do in upgrade is rename the old
> > > > > version boltwire folder to "boltwire+version_number" and upload the
> > > > > new BoltWire system folder. Keeping the "index.php" the same. If there
> > > > > is something wrong, just rename back the folders, and all system would
> > > > > go back.
>
> > > > > All can be done by ftp or any server cPanel.
>
> > > > > Cheers,
> > > > > linly
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to