Jump to content

[SOLVED] get redirected url


neugi

Recommended Posts

header("LOCATION: http://www.test.com/additem.php");

 

when you have your thing like...

 

switch ($red) {

 

case additem:

header("LOCATION:http://www.test.com/additem.php");

break;

 

}

 

note that the header command will not work if any html has been passed before you call it.

my problem is, i got an url with an id, an this url will be redirected to some new url with some unkonwn id.

 

is there a way to get the new url with the new id?

 

i need a script where i can enter a url and the script returns me the new url where this page will be redirected

 

best

okay here is an eg from a nother page that explains such problem:

 

http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/constructing_youtube_1.php

 

on this page they are entering a url from youtube to get the real url of the flv file.

 

they create the new url with the action script an i would need something like this in php.

 

i hope this will help

 

best

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.