PDA

Click to See Complete Forum and Search --> : redirect page


bmarzouk
Feb 17th, 2002, 02:17 AM
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

ubunreal69
Feb 17th, 2002, 02:45 AM
<?PHP
header("Location: http://www.php.net/");
?>As with ASP, no headers can be written when redirecting pages.

bmarzouk
Feb 17th, 2002, 05:34 AM
so, what is the equivalent to:

<%response.buffer = true%>

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

ubunreal69
Feb 17th, 2002, 05:55 PM
all of these questions are answered in the PHP manual which you can get off the official site. i suggest giving it a try. ;)

bmarzouk
Feb 17th, 2002, 11:05 PM
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

chrisjk
Feb 18th, 2002, 09:55 AM
I shouldn't think that is likely since redirect is an instruction sent in an HTTP header to the browser.

ubunreal69
Feb 18th, 2002, 06:43 PM
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 :D