URL parsing, help



With a lot of search in Google I made it in JS but there is a part I'd
like to be in PHP and I can't find how to do it.

From a page that usually display in a frame I have this JS :

if (self == top) { top.location.href="/index.php?url=test.php"; }

Now you may have guessed what I'm trying to do, load the top page but
with the frame I passed in the URL

I successfully achieved my goal with JS but I think it would be nice
using PHP.

How can I extract only "test.php" from the URL so I can:

<?php echo "<iframe src=\'" + url + "'>" ?>


Thanks
.



Relevant Pages

  • Re: Websites 101
    ... > I am presently attempting my first commercial site and was hoping I ... Google Groups, and search the archive of this group, for example ... PHP is, uhm, a very bad designed programming language which has its ... Altough learning a programming language takes a lot of time, ...
    (alt.internet.search-engines)
  • Re: How is this possible?
    ... This is usenet and it has nothing to do with Google. ... Using php or any other server language to insert the query ... Just recreate the output with whatever code (in whatever language) ...
    (comp.lang.php)
  • Re: How is this possible?
    ... This is usenet and it has nothing to do with Google. ... Using php or any other server language to insert the query ... I'm just here to ask for simple advices on where to start. ... Just recreate the output with whatever code (in whatever language) you want. ...
    (comp.lang.php)
  • Re: [SLE] GUI webpage program needed
    ... If anyone points that sort of stuff at me it goes straight to ... > about 90% of the web sites) huge volumes of html are ... > database engines where google can't get at it. ... and the backend with PHP and MySQL on a Linux box. ...
    (SuSE)
  • Re: [PHP] Join question
    ... question doesn't belong even there because it has zilch to do with php, ... anything but bitch and complain. ... 1,930 results of which Google keeps track. ...
    (php.general)