Rainrays Profiles
   Pregnancy & Care | Submit Your Free Ads | Tours & Travel India

Home rainrays profile world Contact Us Online Free Marketing Aadhaar Card Online Free Marketing Pregnancy & Care Online Free Marketing Tour n Travel Free Ads with rainrays Festivals  Tourist Attraction India Pincode India  Tourist Attraction India Tourist Attraction India Jobs Recipes Jobs Select Babies Name

Custom Search
More Topics...
  Pregnancy tips and care  Pregnancy tips and care
 YouTube Videos YouTube Videos
  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

Best Indian Tours
 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

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

File Upload using php

File Upload using php

$target_path = $target_path . basename( $_FILES['my-file']['name']); if(move_uploaded_file($_FILES['my-file']['tmp_name'], $target_path)) {     echo "File Uploaded"; } else{     echo "Some error uploading the file, please try again!"; } Note: The $_FILES array is where PHP stores all the information about files. There are two elements of this ar..


Refer to Friend

  Rainryas information World

Share Info/View About Profile Or Any Comment

Your Name:*  
Other Topic
Balaghat :: Sardar Patel College Of Technology
Bajra Kela ki Roti
Green Chana Paneer Curry
Colleges in Raipur
Pincode Chhindwara District Madhya Pradesh
Create Your Profile in Category » php problems
Related Content..
 327  File Upload using php
 325  Create a Cookie
Special Tours Type India
 Week End Tours  Week End Tours
 Wildlife tours Wildlife tours
 Honeymoon  Honeymoon Tours
 Religious Tours Religious Tours
 International Tours International Tours
 Tours for Overseas Indian Tours for Overseas
More on rainrays.com
Top Links : Contact us | About us | Privacy & Policy | Terms & Condition | Extract Email | Submit URL to Search Engine
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 | Pregnancy & Care
    Coaching Institute | Educational Institution | School/Colleges by Loaction | Recipes | Std Code | PHP | Products | Links | PHP Interview Question

Copyright © 2010 --- All Rights Reserved