www.webdeveloper.com
Results 1 to 4 of 4

Thread: article_id=4

  1. #1
    Join Date
    Jul 2012
    Posts
    2

    article_id=4

    Hello everybody,

    I am new to php.

    Can anybody tell me were to find the original article when a link points to the following address /article_details.php?article_id=4

    I went through different folders on the hosted space, but I could not find an article or document named 4.html

    Thanks

  2. #2
    Join Date
    Aug 2006
    Posts
    1,902
    It's impossible for us to know. "4" is passed to the article_details.php script, and that script is apparently doing something with "4" to show you an article. You'd need to look though that script and see what it does with the parameter "article_id"

    Dave

  3. #3
    Join Date
    Jul 2012
    Posts
    2

    article_details.php?article_id=1

    Thanks for your reply.

    the website contains 18 different documents, that simply appears to the viewer / user with the same background. what I am looking for is the documents / articles that range from

    site/docs/article_details.php?article_id=1

    to

    site/docs/article_details.php?article_id=18

    Why can not I find documents 1 to 18 in directories site/docs/


    Where else could they be

  4. #4
    Join Date
    Mar 2011
    Posts
    1,137
    The contents of the articles are either stored in a database or pulled from other external files. That's why (a) they use a single .php script to fetch the article content and display it, and (b) changing the value for the 'id' parameter in the query string selects the article to be displayed. If the articles were not in a database, the site would be much more likely to use conventional HTML files and you would be able to locate them individually. You would need to examine the source code for 'article_details.php' in order to know exactly where the data comes from, and to do that you would need direct access to the files on the server.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles