[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP or ASP script Help.
- Subject: Re: [cobalt-users] PHP or ASP script Help.
- From: "Steven Werby" <steven@xxxxxxxxxxxx>
- Date: Fri Feb 11 05:50:08 2000
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}