[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. 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.)
<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 "timekeeper". 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>> I'm writing an extranet program that I plan to release under the GPL,</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> but have had a problem since installing RH 7.3. (This was a new</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> install. I've been restoring files from a backup.) My project is in</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> the directory /var/www/html/projects/timekeeper. When I use this code</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> in PHP</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> $thisMachine=getenv("HTTP_HOST");</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> $location = "Location:</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record";</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> header("$location");</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> or this Javascript code in</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> http://ontario.lakeinfoworks.com/timekeeper/index.html</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> <SCRIPT LANGUAGE="JAVASCRIPT" type="text/javascript"></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> location.replace("TimeKeeperForm.php?form=Record");</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> </SCRIPT></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> My browser (Mozilla 1.0) reports "resolving host timekeeper". Then I</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> get a Javascript alert "timekeeper could not be found. Please check the</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> name and try again." This appears to be the only occasion when that my</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> machine name ontario.lakeinfoworks.com is not being recognized.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>></FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> Any suggestions? Thanks.</FONT></FONT></I>
<FONT COLOR="#0b0873"><FONT SIZE="3"><I>> 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--