redirect command for php

I am trying to create a page that simply loads a redirect. The page is:

redirect(append_sid("../login.php", true));

I was modeling this after something I had seen in a script I downloaded, but it does not work.

essentially... I want it to redirect to a page called login.php that sits one folder down from the originating file. What code would I use here?

Who is Participating?
b0lsc0ttConnect With a Mentor IT ManagerCommented:

Try using the following ...


The exit line after is recommended, especially if you want to make sure that the script stops.

blue_hunterConnect With a Mentor Commented:
$url = "";
header("Location: ".$url);

a space between Location:   and $url

b0lsc0ttIT ManagerCommented:
@Blue_hunter - Thank you for correcting that mistake.  :-)
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

aumandgAuthor Commented:
excellent... thank you. protocol has me giving some points ot b0lsc0tt too? if so, how would you suggest i break it down?

C&P from the help files. : More than one Expert helped solve my problem. What do I do?

You split the points. Scroll down to the bottom of the question and click the "Split Points" link at the bottom of the page. Select the radio button of the comment who you want to Accept as the answer. Only one button can be selected. Set the point value (a text box above the comment) of how much you want this person to receive of the points. Then set the point values for each of the experts comments to whom you want to allocate points and these will be considered Assisted answers in helping you resolve the issue. Double check your information and then click the Submit button at the bottom of the page. One note: the total points of the splits must equal the amount you asked the question for itself, and no person can receive fewer than 20 points.

This post is not intended to be blunt or as a RTFM type of post. C&P is just easier than writing the text myself.

Kind regards

b0lsc0ttIT ManagerCommented:
Give them all to Blue if you wish.  It was a dumb mistake and would not have worked.  I'm glad that I could help a bit.  Thanks for the fun question.

split the points ;)
aumandgAuthor Commented:
thank you!
b0lsc0ttIT ManagerCommented:
Your welcome!  I'm glad that I could help.  Thank you for the grade, the points and the fun question.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.