Is there anyone know how to parse a dynamic url as a normal variable with dynamic url (in php)?
Example:
http://ex.com/info.php?var1=<dynamic url>
where <dynamic url> is http://site.com/test.php?v=1&t=2
resulting:
http://ex.com/info.php?var1=http://site.com/test.php?v=1&t=2
How to make the dynamic url (var1) as a normal variable so that it can be parsed as a normal variable?
urlencode() the value.
It will mean that it will look like:
http://ex.com/info.php?var1=http%3A%2F%2Fsite.com%2Ftest.php%3Fv%3D1%26t%3D2
Then just URL decode when you get there. (urldecode())