You are here: Weird link question (two different hosts) for guestbook « HTML « IT news, forums, messages
Weird link question (two different hosts) for guestbook

Posted by on 11/03/06 11:32

My friend has free space on two hosts. One bit of hosting space ( site
1 - no MySQL database access) comes with his broadband connection and
they only allow him to FTP with his home connection. So, I am not able
to upload changes to his site unless I am using his wireless connection
at his house. No good if travelling etc. He also has his site (2) as
backup on a place that gives free space (but no MySQL etc.) but can FTP
to it from anywhere. I am hosting his guestbook (MySQL database and php
file) on my space. If anyone clicks on a guestbook link from his page,
it goes to a page on my site (while looking like his site design) so
people can access the gb.
The problem is this: Because it is free hosting (site 2), he's at the
bottom of the totem-pole for service/uptime etc., and sometimes has
problems and he can't make changes because they have stopped access
temporarily.
If his domain name is pointing to site 2 and it is down (and he makes
changes to point it to site 1), is there an automated way (script etc.)
that the gb page could "detect" that the domain name is now pointing to
site 1 instead of site 2 instead of having to constantly switch the
links in the pages? The reason I ask is because I might not be able to
make changes and if he just switches the domain forwarding, it would be
great if the guestbook could always work whether it is coming from site
1 or site 2.
I hope this makes sense and somone can assist.
Thanks very much.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация