By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,537 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,537 IT Pros & Developers. It's quick & easy.

variable interpolation syntax (SERVER_SIGNATURE)

P: n/a
I have a tiny custom 404 script I'm working on; I'd like to imitate the
standard Apache 404 page insofar as I'd like "Apache/1.3.29 Server at
www.example.com Port 80" to appear below my 404 message.

The problem is that when I try to interpolate
$_SERVER['SERVER_SIGNATURE'] into the html output of my script it
produces a link of the following (incorrect) format:

http://www.example.com/\"mailto:we*******@example.com\"

I've tried placing the contents of SERVER_SIGNATURE into a variable in
the php code in my page:

$VAR = $_SERVER['SERVER_SIGNATURE'];

....and tried direct interpolation in the html output:

echo "$_SERVER['SERVER_SIGNATURE']";

Can I get a clue here?

Thanks.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter Horst wrote:
I have a tiny custom 404 script I'm working on; I'd like to imitate the
standard Apache 404 page insofar as I'd like "Apache/1.3.29 Server at
www.example.com Port 80" to appear below my 404 message.

The problem is that when I try to interpolate
$_SERVER['SERVER_SIGNATURE'] into the html output of my script it
produces a link of the following (incorrect) format:

http://www.example.com/\"mailto:we*******@example.com\"

I've tried placing the contents of SERVER_SIGNATURE into a variable in
the php code in my page:

$VAR = $_SERVER['SERVER_SIGNATURE'];

...and tried direct interpolation in the html output:

echo "$_SERVER['SERVER_SIGNATURE']";


Didn't figure out why it was happening, but I worked around it by
eliminating the '\' character in the output string:

$VAR = str_replace("\\", "", $_SERVER['SERVER_SIGNATURE']);

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.