/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@tracknutJul 08.2012 — 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
Copy linkTweet thisAlerts:
@wehbesamaraauthorJul 08.2012 — 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
Copy linkTweet thisAlerts:
@rtretheweyJul 08.2012 — 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.
×

Success!

Help @wehbesamara spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...