cancel
Showing results for 
Search instead for 
Did you mean: 

Internal page/file references

gladman
Grafter
Posts: 124
Thanks: 1
Registered: 17-08-2007

Internal page/file references

I am in the process of converting my Frontpage site to work on the new Plesk host. 
The new site is at gladman.plushost.co.uk, the old site being at fp.gladman.plus.com. 
But I am having a problem in that none of my internal references work and I would be very grateful for any advice people can offer on what is going wrong.
All my internal references are based on a PHP variable $r that is set at the start of each page (which I have echoed for testing):
<?php
$r = $_SERVER['DOCUMENT_ROOT'];
$rt = $r . '/mysite/';
echo $r . ' ---- ';
echo $rt . 'borders/left.php';
?>
this outputs:
/var/www/vhosts/gladman.plushost.co.uk/httpdocs
----
/var/www/vhosts/gladman.plushost.co.uk/httpdocs/mysite/borders/left.php
(without the newlines), the second reference being the location of my substitute PHP include for my old Frontpage left border.
But when I later use this address in this PHP include:
<?php include($rt . 'borders/left.php'); ?>
it fails saying:
Warning: include() [function.include]: Unable to access
  /var/www/vhosts/gladman.plushost.co.uk/httpdocs/mysite/borders/left.php
in
  /var/www/vhosts/gladman.plushost.co.uk/httpdocs/index.php on line 13
Warning: include(/var/www/vhosts/gladman.plushost.co.uk/httpdocs/mysite/borders/left.php)
[function.include]: failed to open stream: No such file or directory in
/var/www/vhosts/gladman.plushost.co.uk/httpdocs/index.php on line 13
And yet the directory and files all seem ok.
I realise there are better ways of doing this but this is a quick and dirty translation of an existing Frontpage site.
Any advice will be much appreciated. 
    best regards,
    Brian Gladman
6 REPLIES
gladman
Grafter
Posts: 124
Thanks: 1
Registered: 17-08-2007

Re: Internal page/file references

jim:quote
I found the problem - I'm sorry to have bothered you.
    Brain Gladman
gladman
Grafter
Posts: 124
Thanks: 1
Registered: 17-08-2007

Re: Internal page/file references

jim:quote
Moving from the FrontPage server to the new platform has gone well and the new platform looks to be a nice step forward.
I am now left with how to take down my FrontPage site whilst leaving a redirection message in place. 
What will happen to the old fp.username.plus.com addresses when the FrontPage host is turned off?
I ask because it might make a difference to what I say in my message on the old server.
    Brian Gladman
Ben_Brown
Grafter
Posts: 2,839
Registered: 13-06-2007

Re: Internal page/file references

If you disable frontpage in the Member Centre, the fp.username.plus.com address will be removed from DNS after a day or two.
gladman
Grafter
Posts: 124
Thanks: 1
Registered: 17-08-2007

Re: Internal page/file references

Thank you Ben for your answer about what happens when I turn off the FrontPage Server.    However, I am a bit more worried about what happens when you turn it off  Smiley
For example, it would be nice to know the answers to the following questions:
1) PAYH is a trial at the moment - does this mean that users should not rely on it and should keep their old web site(s) in place?
2) Will it be possible after the Frontpage server has been switched off to have the address fp.username.plus.com redirected to username.plushost.co.uk/xxx for a reasonable period after switch-off. 
3) If not, how much overlap will there be between PAYH going live and the FP server being withdrawn (during which time a redirection notice can be hosted).
To be honest I don't want to maintain two sites as I am now doing - I would like to replace my site on the FP server with a redirection message right now, so that my users have as much time as possible to see the change.  But if I do this I would be relying on a trial service, which doesn't sound sensible unless it is clear that it is a trial that will definitely go live.
    best regards,
        Brian Gladman
Ben_Brown
Grafter
Posts: 2,839
Registered: 13-06-2007

Re: Internal page/file references

Although PAYH is a trial for Plusnet users at the moment, it has been in production for a while now hosting sites for direct PAYH customers. It's not quite as resilient as the CCGI platform in some ways, but in many ways it is, and I'd say it's probably more stable than the frontpage platform, which is pretty flaky to be honest.
So in answer to point 1, I'd be happy to rely on it.
I've not seen the plan for what will happen about fp.username.plus.com after frontpage is decommissioned, but I would be surprised if we kept it going. We could point it somewhere else in theory, but it would take a fair bit of work in our backend systems.
As for overlap, we always give at least 30 days notice before withdrawing a service, so the best thing for you to do would be to move over to the PAYH site and redirect your FP page to the new PAYH one.
gladman
Grafter
Posts: 124
Thanks: 1
Registered: 17-08-2007

Re: Internal page/file references

Thank you Ben, that is most helpful. In order to give my users as much notice as possible, I will do as you suggest and replace my FP site with a simple redirection message.
    Brian Gladman