[vox-tech] Configuration problem
Alan H. Lake
vox-tech@lists.lugod.org
23 Sep 2002 15:20:15 -0700
--=-NlHPlONikOEnMTyrQAjj
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I did a test code change :
$thisMachine=getenv("HTTP_HOST");
$location = "Location:
http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record";
echo("$location");
// header("$location");
The output was: Location:
http://ontario.lakeinfoworks.com/timekeeper/TimeKeeperForm.php?form=Record
I also replaced the echo line with "phpinfo();", but didn't see anything
strange.
This is sure a head-scratcher.
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
--=-NlHPlONikOEnMTyrQAjj
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 did a test code change :
<BR>
<FONT COLOR="#0b0873"><FONT SIZE="3"></FONT></FONT>
<BR>
<FONT COLOR="#0b0873"><FONT SIZE="3"> $thisMachine=getenv("HTTP_HOST");</FONT></FONT>
<BR>
<FONT COLOR="#0b0873"><FONT SIZE="3"> $location = "Location: http://$thisMachine/timekeeper/TimeKeeperForm.php?form=Record";</FONT></FONT>
<BR>
<FONT SIZE="3"> echo("$location");</FONT>
<BR>
<FONT COLOR="#0b0873"><FONT SIZE="3">// header("$location");</FONT></FONT>
<BR>
<FONT SIZE="3"> </FONT>
<BR>
<FONT SIZE="3">The output was: </FONT>Location: <A HREF="http://ontario.lakeinfoworks.com/timekeeper/TimeKeeperForm.php?form=Record">http://ontario.lakeinfoworks.com/timekeeper/TimeKeeperForm.php?form=Record</A>
<BR>
<BR>
I also replaced the echo line with "phpinfo();", but didn't see anything strange.
<BR>
<BR>
This is sure a head-scratcher.
<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>
--=-NlHPlONikOEnMTyrQAjj--