Hi,

I want my script to redirect the visitor to the another script which is in another folder under the same parent directory. And i cannot use the "header()" redirect method.

/www/index.php/ (where i want the visitor to be redirected to)

/www/upload/upload.php/ (where i want the visitor to be redirected from)

Here is what i have so far:

<?php

echo '<META HTTP-EQUIV="Refresh" Content="0; URL="../index.php">';    

?>

try this one instead

<?php

echo '<META HTTP-EQUIV="Refresh" Content="0; URL="../../index.php">';

?

I fixed it. I put the quotation in the wrong place. Here's the older code

<?php
	echo '<META HTTP-EQUIV="Refresh" Content="3; URL="../index.php">';  

?>

Here's the revised one:

echo '<META HTTP-EQUIV="Refresh" Content="3; URL=../index.php">';

TY britoniah3480 your way works as well.

Ok no problem! Anytime! :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.