Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to find the actual link behind a php id link , For example , i have a link like www.website.php?id=2 , how do find out the actual link

share|improve this question
up vote 5 down vote accepted

PHP is server-side scripting. When you access a page fed by a script, the web server runs that script and dynamically generates HTML or other client-side code for your browser to render.

The only file being referenced in, say, http://www.example.com/index.php?id=2 is the PHP script index.php. The content of the webpage you're viewing could come from any number of things, including a database server, the script itself, or other scripts (or files, which may or may not be public-URI-accessible). The script decides which content to output based on the id=2 argument.

The point of server-side scripting is that you, the user, aren't supposed to know what's going on. So, 9 times out of 10, the PHP link you see is the "actual" link—there's simply no other way to get that content as a public web browser.

The other 1 time out of 10 might be something with shortURLs or redirects, but we'd need more specific information to figure something like that out for you.

share|improve this answer

I guess there is no link behind it and the page is generated on the fly by a dynamic website.

share|improve this answer
    
There must be a way, If something comes this side we should be able to go that side too – subanki Aug 28 '10 at 7:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .