[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP or ASP script Help.



Victory Systems ( ebizhosting.com ) <rclark@xxxxxxxxxxxxxxxxxx> wrote:
> I am trying to write an ASP or PHP (NT or UNIX) page that will take the
> address that shows in
> the browser address field and write it out to the page.

Simple enough. <smile> Create a PHP page with the following code:

<?
echo $SERVER_NAME; // returns foo.bar.com
echo "$SERVER_NAME . $SCRIPT_NAME"; // returns foo.bar.com/dir/file
?>

You can see environment variables available to you using PHP along with
configuration info. and other goodies by creating a page with the following
code:

<? phpinfo() ?>

Check out php.org and consider joining the PHP users' mailing list.  It's
higher volume than this list, but it's very valuable if you program in PHP.

Steven {steven@xxxxxxxxxxxx}