[vox-tech] Configuration problem

Alan H. Lake vox-tech@lists.lugod.org
23 Sep 2002 11:51:28 -0700


--=-3oQtZrCXUTtrj1RHZMpd
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I'm writing an extranet program that I plan to release under the GPL,
but have had a problem since installing RH 7.3.  (This was a new
install.  I've been restoring files from a backup.)  My project is in
the directory /var/www/html/projects/timekeeper.  When I use this code
in PHP

   $thisMachine=getenv("HTTP_HOST");
   $location = "Location: 
http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record";
   header("$location");

 or this Javascript code in
http://ontario.lakeinfoworks.com/timekeeper/index.html

   <SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript">
       location.replace("TimeKeeperForm.php?form=Record");
   </SCRIPT>

 My browser (Mozilla 1.0) reports "resolving host timekeeper".  Then I
get a Javascript alert "timekeeper could not be found.  Please check the
name and try again."  This appears to be the only occasion when that my
machine name ontario.lakeinfoworks.com is not being recognized.

 Any suggestions?  Thanks.
 Alan




--=-3oQtZrCXUTtrj1RHZMpd
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY>
I'm writing an extranet program that I plan to release under the GPL, but have had a problem since installing RH 7.3.&nbsp; (This was a new install.&nbsp; I've been restoring files from a backup.)&nbsp; My project is in the directory /var/www/html/projects/timekeeper.&nbsp; When I use this code in PHP
<BR>

<BR>
&nbsp;&nbsp; $thisMachine=getenv(&quot;HTTP_HOST&quot;);
<BR>
&nbsp;&nbsp; $location = &quot;Location:&nbsp; http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record&quot;;
<BR>
&nbsp;&nbsp; header(&quot;$location&quot;);
<BR>

<BR>
 or this Javascript code in <A HREF="http://ontario.lakeinfoworks.com/timekeeper/index.html">http://ontario.lakeinfoworks.com/timekeeper/index.html</A>
<BR>

<BR>
&nbsp;&nbsp; &lt;SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot; type=&quot;text/javascript&quot;&gt;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location.replace(&quot;TimeKeeperForm.php?form=Record&quot;);
<BR>
&nbsp;&nbsp; &lt;/SCRIPT&gt;
<BR>

<BR>
 My browser (Mozilla 1.0) reports &quot;resolving host timekeeper&quot;.&nbsp; Then I get a Javascript alert &quot;timekeeper could not be found.&nbsp; Please check the name and try again.&quot;&nbsp; This appears to be the only occasion when that my machine name ontario.lakeinfoworks.com is not being recognized.
<BR>

<BR>
 Any suggestions?&nbsp; Thanks.
<BR>
 Alan
<BR>

<BR>

<BR>

</BODY>
</HTML>

--=-3oQtZrCXUTtrj1RHZMpd--