Connecting Tech Pros Worldwide Forums | Help | Site Map

problem retrieving html header made by php

Fabrice
Guest
 
Posts: n/a
#1: Jul 17 '05
hi !

here is my problem ! I add a field to an html header using php
function header("field_name: value"). When the php page is on my local
machine (which act as a server) i can read the "value" of field_name
(i also on my local machine). But when i put the file on another
server and i'm still on my local machine i cannot read this field_name
(but i can see the page on my browser). Can any one tell me what is
the problem ?

Thanks
Fabrice

Pedro Graca
Guest
 
Posts: n/a
#2: Jul 17 '05

re: problem retrieving html header made by php


Fabrice wrote:[color=blue]
> here is my problem ! I add a field to an html header using php
> function header("field_name: value"). When the php page is on my local
> machine (which act as a server) i can read the "value" of field_name
> (i also on my local machine). But when i put the file on another
> server and i'm still on my local machine i cannot read this field_name
> (but i can see the page on my browser). Can any one tell me what is
> the problem ?[/color]

How do you read the value?
Do you look at the headers sent by your server?
Does it appear as HTML content inside your browser?

(fishing)
Is the configuration of your web-server and the other server alike?

(still fishing)
Are there no proxies between you and the second server 'eating' headers?

Try (yes, still fishing :) )
header('X-field_name: name');

I don't know if all headers you could make up are allowed, I think all
"X-???" headers are
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Closed Thread


Similar PHP bytes