Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.