Header Modification through PHP
Is there a way you can modify your header with PHP like you can using firefox extension "Modify Headers"? If so how would you go about doing this so that its for the entire site you want to view and not just one page? Like lets say I wanted to add a header named HTTP_TOMANDJERRY through php would that be possible? Or is the firefox extension the only possible way?
MoshBat wrote: Go and read upon modifying Headers, then answer your own question.
I understand you can do something like this Moshbat…
header('Content-Type: text/html; charset=iso-8859-1');
header('Content-Type: text/html; charset=utf-8');
header('Content-Type: text/plain'); // plain text file
header('Content-Type: image/jpeg'); // JPG picture
header('Content-Type: application/zip'); // ZIP file
header('Content-Type: application/pdf'); // PDF file
header('Content-Type: audio/mpeg'); // Audio MPEG (MP3,...) file
header('Content-Type: application/x-shockwave-flash'); // Flash animation
but lets say I wanted a header like this….
header("SUBNO: 29391010001010996")```
Would php make one of my headers SUBNO?
MoshBat wrote: http://us3.php.net/manual/en/function.httprequest-setheaders.php http://uk3.php.net/manual/en/function.header.php Some reading materials for you there. And tell me you're wanting to set specific headers on your own site/project, and not somewhere else… (Here, for example)
Thank you Moshbat.