DeveloperSide.NET Forums
July 06, 2020, 05:41:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Alternative to header('location:xzy.php')?  (Read 5046 times)
0 Members and 1 Guest are viewing this topic.
fbg111
Member
*
Posts: 5

121680358 fbg111 fbg111 fbg111
View Profile
« on: March 13, 2004, 06:27:29 PM »

Is there any alternative to the header() function in PHP to redirect a request to a page other than what was requested?  If I understand correctly, header() actually returns a page to the client with a redirect request in the HTTP header, which causes the client to issue a new request to the server.  That seems a little inefficient.  Is there any php function that simply causes a different page to be returned to the client in the first place, skipping the intermediate step of having the client issue a new request?  Or is that technically impossible?

Thanks,
Byron
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: March 13, 2004, 07:51:22 PM »

I do not see why not, you just have to code the page in PHP... so the code under whatever-page.php would dynamically returns whatever html data you want.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!