473,513 Members | 2,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server String?

Can anyone tell me how I can modify the Server String header?

At the moment it is:

Server: Apache/1.3.27 (Unix) PHP/4.3.3

But I would like it to become:

Server: Apache/1.3.27 (Unix) PHP/4.3.3 MyApplication/4.0

I have tried:

header('Server: ' . $_SERVER['SERVER_SOFTWARE'] . '
MyApplication/4.0');

And:

header('Server: MyApplication/4.0');

Right at the beginning of my application with no success.

Any ideas?

Thanks,

Jamie Burns.
Jul 17 '05 #1
3 2204
"Jamie Burns" <se*****@email.com> wrote in message
news:bs*******************@news.demon.co.uk...
Can anyone tell me how I can modify the Server String header?

At the moment it is:

Server: Apache/1.3.27 (Unix) PHP/4.3.3

But I would like it to become:

Server: Apache/1.3.27 (Unix) PHP/4.3.3 MyApplication/4.0

I have tried:

header('Server: ' . $_SERVER['SERVER_SOFTWARE'] . '
MyApplication/4.0');

Put this in your .htaccess file or in your VirtualHost section of your
httpd.conf
Header append server "Apache/1.3.27 (Unix) PHP/4.3.3 MyApplication/4.0"

go here to see it work:
http://gzen.myhq.info/serverchk.php

type http://gzen.myhq.info into the url box and look at the headers it
returns

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #2
Thanks for replying.

I kinda needed to do this in PHP but I am guessing it cannot be done?

I want to let people download and use my application and asking them to
fiddle with .htaccess files is probably not worth the hassle.

Cool tools on your site btw.

Thanks again.

Jamie.

"CountScubula" <me@scantek.hotmail.com> wrote in message
news:UK*****************@newssvr27.news.prodigy.co m...
"Jamie Burns" <se*****@email.com> wrote in message
news:bs*******************@news.demon.co.uk...
Can anyone tell me how I can modify the Server String header?

At the moment it is:

Server: Apache/1.3.27 (Unix) PHP/4.3.3

But I would like it to become:

Server: Apache/1.3.27 (Unix) PHP/4.3.3 MyApplication/4.0

I have tried:

header('Server: ' . $_SERVER['SERVER_SOFTWARE'] . '
MyApplication/4.0');

Put this in your .htaccess file or in your VirtualHost section of your
httpd.conf
Header append server "Apache/1.3.27 (Unix) PHP/4.3.3 MyApplication/4.0"

go here to see it work:
http://gzen.myhq.info/serverchk.php

type http://gzen.myhq.info into the url box and look at the headers it
returns

--
Mike Bradley
http://gzen.myhq.info -- free online php tools

Jul 17 '05 #3
"Jamie Burns" <se*****@email.com> wrote in message
news:bs*******************@news.demon.co.uk...
Thanks for replying.

I kinda needed to do this in PHP but I am guessing it cannot be done?

I want to let people download and use my application and asking them to
fiddle with .htaccess files is probably not worth the hassle.
You could always just put a header("X-Aplication: MyApplication/4.0")

you can hide it too, create a small php file like this:
<?php
header("X-Aplication: MyApplication/4.0");
?>

and run my encoder over it.
then place that code on in your scripts.
Cool tools on your site btw.


Thank you,

Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15207
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
0
1617
by: someone | last post by:
I am in a situation where I need to package some information from Page1, submit it via POST to another server which will process the information and then send the user to another page on my server...
6
2062
by: someone | last post by:
I am in a situation where I need to package some information from Page1, submit it via POST to another server which will process the information and then send the user to another page on my server...
20
5594
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
4
6707
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
14
6998
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
5
1917
by: James | last post by:
Hello, I have written a simple logon page that redirects to another page when successful. All works fine on my computer but when I upload it I get the error message below. I have written it...
3
6411
by: Steve | last post by:
Hi All I downloaded Sql server 2005 express SP2 and attempted to modify the Bootstrapper package files as I did with SP1 When i try to install SQL server as part of my VS 2005 deployment app I...
8
12155
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm trying to get a list of SQL Server Instances thru a VB.NET application. I have tried GetDataSource and SMO. I have also tried using ListSQLSvr.exe from...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.