Results 1 to 7 of 7

Thread: redirect page

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179

    redirect page

    Hello,

    I am going to replace asp code with php code, I am php beginner

    How to redirect to another php file using php? i.e. how to replace the following asp code:

    <%
    response.redirect "join.asp?e=1"
    %>

    Thanks

  2. #2
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    Code:
    <?PHP
    header("Location: http://www.php.net/");
    ?>
    As with ASP, no headers can be written when redirecting pages.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179
    so, what is the equivalent to:

    <%response.buffer = true%>

    also, what is the equivalent to:
    <!--#Include file="connection.asp"-->

  4. #4
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    all of these questions are answered in the PHP manual which you can get off the official site. i suggest giving it a try.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179
    ok, I will search for manuals, but until this:

    Is there is a difference between php capabilities when running with IIS or PWS (windows) and when it runs with Apache?

    someone told me that redirection statement doesn't run with IIS , it only runs with Apache.

    Thanks

  6. #6
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    I shouldn't think that is likely since redirect is an instruction sent in an HTTP header to the browser.

  7. #7
    Fanatic Member ubunreal69's Avatar
    Join Date
    Apr 2001
    Location
    Morayfield, Australia
    Posts
    609
    Originally posted by chrisjk
    I shouldn't think that is likely since redirect is an instruction sent in an HTTP header to the browser.
    echo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width