FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
header() tips and tricks
Message  

Reply with quote
Post header() tips and tricks 
I know most of you will prolly know this:

but I really like the header() function. For example, using a script similar to;
Code:

header("Content-type: text/css");
print <<<CSS
body {
background-color: black;
color: whte;
font-family: sans-serif
}
CSS;


You can link to the PHP script in HTML pages for dynamic CSS requirements.

The same is true for a Javascript page. The header() only changes to header("Content-type: text/javascript");

Therefore, you can dynamically create a number of different languages in PHP. I find this feature very useful and may incorperate the concepts in future PHP software.

View user's profile Send private message

Reply with quote
Post  
You can do the same with php and not use header and just the HTML headers.... I don't see the advantage....

View user's profile Send private message Visit poster's website
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com