Rainrays Profiles
   Login | Registration | What you Want | Free Ads | Tours & Travel India

Home rainrays profile world Aadhaar Card Online Free Marketing Contact Us Online Free Marketing URL Submission Online Free Marketing Tour n Travel Free Ads with rainrays Products Web Directory Pincode India Web Directory Search India Jobs Herbalife Club Online Fm radio Recipes

Custom Search
Plan Your Tour
Best Tours India
 Week End Tours  Week End Tours
 Wildlife tours Wildlife tours
 Honeymoon  Honeymoon Tours
 Religious Tours Religious Tours
 Religious Tours International Tours
 Religious Tours Indian Tours for Overseas

South India Tour

More Topics...
  Hospitals & clinics in India Hospitals & clinics in India
  Hospitals & clinics in India World Travel Tips
 Kitchen Dictionary Kitchen Dictionary
 Recipes Recipes
 Personality Personality
 Institute/Colleges Institute/Colleges
 Indian Festivals Indian Festivals
 University University
 Restaurant Restaurant
 Districts List in India Districts List in India
 Districts Profile of India Districts Profile of India
 Hotels Hotels
 Love dating and Romance Love dating and Romance
 Baby name list Baby name list
 Jobs by location Jobs by location
 Jobs by Keyword Jobs by Keyword
 Jobs by Function Jobs by Function
 Jobs Part Time Jobs Part Time
 Shayari Shayari
 Place Profile Place Profile
 Business Profiles Business Profiles
 Professional Profiles Professional Profiles
 Rainrays Member Rainrays Member

Php headers solution

  Topic » Language » PHP » php problems
Post By : Shivam Singh, php programmer At 2010-07-15

// See related links for more status codes
// Use this header instruction to fix 404 headers

// Page was not found:
header('HTTP/1.1 404 Not Found');

// produced by url rewriting...
header('HTTP/1.1 200 OK');
// Access forbidden:
header('HTTP/1.1 403 Forbidden');
// override X-Powered-By value
header('X-Powered-By: PHP/4.4.0');
header('X-Powered-By: Brain/0.6b');

// last modified (good for caching)
$time = time() - 60; // or filemtime($fn), etc
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $time).' GMT');

// header for telling the browser that the content
// did not get changed

header('HTTP/1.1 304 Not Modified');
// set content length (good for caching):

header('Content-Length: 1234');
 // The page moved permanently should be used for
// all redrictions, because search engines know
// what's going on and can easily update their urls.

header('HTTP/1.1 301 Moved Permanently');
// you can also use the HTML syntax:
// header('Content-language: en');

// Redirect to a new location:
header('Location: http://www.example.org/');
// Server error
header('HTTP/1.1 500 Internal Server Error');

// Redriect with a delay:
header('Refresh: 10; url=http://www.example.org/');
print 'You will be redirected in 10 seconds';

// Disable caching of the current document:
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
header('Pragma: no-cache');

// Headers for an download:
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="example.zip"');
header('Content-Transfer-Encoding: binary');

// load the file to send:

// show sign in box
header('HTTP/1.1 401 Unauthorized');
header('WWW-Authenticate: Basic realm="Top Secret"');
print 'Text that will be displayed if the user hits cancel or ';
print 'enters wrong login data';

// set content type:
header('Content-Type: text/html; charset=iso-8859-1');
header('Content-Type: text/html; charset=utf-8');

header('Content-Type: image/jpeg'); // JPG picture
header('Content-Type: text/plain'); // plain text file
header('Content-Type: application/pdf'); // PDF file
header('Content-Type: application/zip'); // ZIP file
header('Content-Type: audio/mpeg'); // Audio MPEG (MP3,...) file
header('Content-Type: application/x-shockwave-flash'); // Flash animation

Refer to Friend

  Rainryas information World

Share Info/View About Profile Or Any Comment

Your Name:* 
Other Topic
Stuffed Potato
Hotel Royal Castle Kanota , Jaipur
Jobs in Gurgaon
Jobs in Agartala
Hotel Vallerina, Khandala
Create Your Profile in Category » php problems
More on rainrays.com
Top Links : FM Radio | Contact us | About us | Privacy & Policy | Terms & Condition | Extract Email | Submit URL to Search Engine
Net Search : For Cooking | Word Dictionary | Encyclopedia Search | Find Location by MAP | Find a Person | Find Your Shipping | Stock Market | Language Converter
Jobs : Jobs by Location | Part Time Jobs | Jobs by Function | Jobs by Keyword | Jobs Out of india | Jobs Search Engine
Other Links
    Girl baby Names | Boy baby Names | Love dating and Romance | University | Restaurants in India | Hotels in India | Hospitals & clinic
    Coaching Institute | Educational Institution | School/Colleges by Loaction | Recipes | Std Code | PHP | Products | Links
PHP Interview Question

Copyright © 2010 --- All Rights Reserved