[vox-tech] Configuration problem

Rod Roark vox-tech@lists.lugod.org
Mon, 23 Sep 2002 12:21:22 -0700


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=3Dgetenv("HTTP_HOST");
>    $location =3D "Location:
> http://$thisMachine/timekeeper/TimeKeeperForm.php?form=3DRecord";
>    header("$location");
>
>  or this Javascript code in
> http://ontario.lakeinfoworks.com/timekeeper/index.html
>
>    <SCRIPT LANGUAGE=3D"JAVASCRIPT" type=3D"text/javascript">
>        location.replace("TimeKeeperForm.php?form=3DRecord");
>    </SCRIPT>
>
>  My browser (Mozilla 1.0) reports "resolving host timekeeper".  Then I
> get a Javascript alert "timekeeper could not be found.  Please check th=
e
> 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