LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2003, 10:52 PM   #1
BaudRacer
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
loading html pages with php


I want my php script to redirect the browser to an html page. I can't find anything in the books I have, or online about it.
 
Old 12-03-2003, 02:34 AM   #2
bodhiseed
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
I think you would be better off using javascript
 
Old 12-03-2003, 02:36 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
If you are talking about automatically redirecting to page X when loading page Y, this is not done by php but by html:

Redirecting using META TAGS
Put the code below between <head> and </head>

<meta http-equiv="refresh" content="0; url=new.html">

Rename new.html to the page u want it to go to
Edit the 0 to the time (in seconds) u want before it refresh.

Hope this helps.
 
Old 12-03-2003, 08:34 AM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
<?
// Note: This only works if you have NOT sent anything to the browser yet
header("Location: new.html")
?>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print text file in html pages ariana Programming 1 11-12-2004 03:18 PM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 05:59 AM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM
Cookie Sharing Between CGI generated HTML pages and standard HTML pages rkwhited Linux - Newbie 5 08-15-2004 07:39 AM
Mails, Attachments, Html Pages Corrupted basbosco Linux - Security 1 03-03-2004 01:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration