![]() |
|
#1
|
||||
|
||||
Answer to - How can I redirect a page with PHP?I found this here and found it very useful: http://faq.ozoneasylum.com/497
I needed a redirect because of some work that I had done and I was basically having a nightmare with html not obeying the redirect command to a long syntaxed PHP page. So here is a PHP redirect that may help you out of a pickle PHP Code:
If you didn't want a timed redirect then you could use this: header("Location: ADDRESS"); |
|
#2
|
||||
|
||||
|
Keep this up and I may have to add a new forum: Stuff that jrobbio found on the Net that could also be found here __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
I'd love to be able to search your pages other than the forum as I'm sure I'd find the stuff I'd need.
I seriously can't find the thing I want when I need it. Rob |
|
#4
|
||||
|
||||
|
No problems Rob - I was just kidding. I appreciate all your 'finds' off the Net. I am not much of a surfer myself; so you help me get to some sites that I may have never found on my own.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
||||
|
||||
|
What can I say, I surf too much sometimes.
![]() Rob |
|
#6
|
|||
|
|||
Why does this not work?I get an error when I try to put
<?php // refresh / re-direct without delay // --------------------------------- header( 'location:http://www.desilva.biz/webdsn/' ); ?> inside a larger php script. It says something like it can't modify the header because a "required" file has already started modifying the header. I don't have the exact error right now. All I want to do is reload my index.php file automatically after a database update, etc. Thanks. |
|
#7
|
|||
|
|||
|
HI
<html dir="rtl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <script> <!-- top.location.href="http://www.sitranet.net/vb/"; //-- </script> </head> <body> </body> </html> |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP script to show last referrer url and top referrer to your site | jrobbio | MySQL / PHP Forum | 6 | 22-May-2006 01:06 |
| Optimizing your web server with Turck MMCache for PHP | JdS | Web Hosting Forum | 2 | 07-Jan-2004 07:48 |
| [script] E-mail webmaster error page | BobbyDouglas | PHP Code Library | 0 | 19-Aug-2003 20:10 |
| [script] Password Protect web pages/site using PHP and MySQL | JdS | PHP Code Library | 0 | 23-Jul-2003 10:02 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The