DeveloperSide.NET Forums
July 06, 2020, 04:38:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Alternative to header('location:xzy.php')?  (Read 5045 times)
0 Members and 1 Guest are viewing this topic.
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?

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.

Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
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!