When we want to redirect to new page page in PHP we need header(' Location : www.example.com' )..but this need output buffering..! Is there any other method in php to redirect to another page without header() and javascript..?
-
-
Answer:
first let me know reason behind without php and javascript
Shiva Vs at Quora Visit the source
Other answers
Except PHP header(....) or javascript you can use html tag 'meta' refresh for redirection http://en.wikipedia.org/wiki/Meta_refresh
Sandeep Singh Bisht
yes you can redirect even via HTML meta tag (no php, jquery required) add this code in head part: <meta http-equiv="REFRESH" content="0;url=www.the-domain-you-want-to-redirect-to.com">
Avil Porwal
Javascript: window.location = "your url"; More info: http://www.tizag.com/javascriptT/javascriptredirect.php
Sven Al Hamad
Simply Replace: header("Location: www.example.com"); with $URL="http://www.example.com/"; echo "<script type='text/javascript'>document.location.href='{$URL}';</script>"; Here's one more way to http://mycodingtricks.com/snippets/php/redirect-php-without-using-header/.
Shubham Kumar
Related Q & A:
- Does anyone know if www.16income.com is real or a scam?Best solution by answers.yahoo.com
- Is it reliable to buy in www.consoleshop.com?Best solution by Ask.Metafilter.Com
- Is www.islandsurf.com a reliable site?Best solution by Yahoo! Answers
- Private or Public school when you want to study in another country?Best solution by Yahoo! Answers
- What is my incoming server example(pop.example.com) and also my outgoing server example (smtp.example.com?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.