[vox-tech] Configuration problem

Alan H. Lake vox-tech@lists.lugod.org
23 Sep 2002 15:55:50 -0700


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

I found the problem.  I was looking in the wrong place.  It isn't likely
to hit anyone else.  (I am adding session controls to the project and I
failed to set $thisMachine in one place.)  

Thanks for the responses, folks.

On Mon, 2002-09-23 at 12:21, Rod Roark wrote:

    Sounds like $thismachine is being set either to an empty
    string or to "timekeeper".  So your hostname is probably
    not set properly.
    
    A phpinfo() call will tell you a lot.
    
    -- Rod
       http://www.sunsetsystems.com/
    
    On Monday 23 September 2002 11:51 am, Alan H. Lake wrote:
    > 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
    
    _______________________________________________
    vox-tech mailing list
    vox-tech@lists.lugod.org
    http://lists.lugod.org/mailman/listinfo/vox-tech
    
    

--=-Kp03PBoSnYmRWN8Hcak6
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 found the problem.&nbsp; I was looking in the wrong place.&nbsp; It isn't likely to hit anyone else.&nbsp; (I am adding session controls to the project and I failed to set $thisMachine in one place.)&nbsp; 
<BR>

<BR>
Thanks for the responses, folks.
<BR>

<BR>
On Mon, 2002-09-23 at 12:21, Rod Roark wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#0b0873"><FONT SIZE="3"><I>Sounds like $thismachine is being set either to an empty</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>string or to &quot;timekeeper&quot;.  So your hostname is probably</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>not set properly.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>A phpinfo() call will tell you a lot.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>-- Rod</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>   http://www.sunsetsystems.com/</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>On Monday 23 September 2002 11:51 am, Alan H. Lake wrote:</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; I'm writing an extranet program that I plan to release under the GPL,</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; but have had a problem since installing RH 7.3.  (This was a new</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; install.  I've been restoring files from a backup.)  My project is in</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; the directory /var/www/html/projects/timekeeper.  When I use this code</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; in PHP</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;    $thisMachine=getenv(&quot;HTTP_HOST&quot;);</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;    $location = &quot;Location:</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record&quot;;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;    header(&quot;$location&quot;);</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;  or this Javascript code in</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; http://ontario.lakeinfoworks.com/timekeeper/index.html</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;    &lt;SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot; type=&quot;text/javascript&quot;&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;        location.replace(&quot;TimeKeeperForm.php?form=Record&quot;);</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;    &lt;/SCRIPT&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;  My browser (Mozilla 1.0) reports &quot;resolving host timekeeper&quot;.  Then I</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; get a Javascript alert &quot;timekeeper could not be found.  Please check the</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; name and try again.&quot;  This appears to be the only occasion when that my</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt; machine name ontario.lakeinfoworks.com is not being recognized.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;  Any suggestions?  Thanks.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>&gt;  Alan</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>vox-tech mailing list</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>vox-tech@lists.lugod.org</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>http://lists.lugod.org/mailman/listinfo/vox-tech</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I></FONT></FONT></I>
</PRE>
    </BLOCKQUOTE>
</BODY>
</HTML>

--=-Kp03PBoSnYmRWN8Hcak6--