/    Sign up×
Community /Pin to ProfileBookmark

dynamic creation of News entries.

Hi everybody.

I have stories that appear on my front page using [i]PHP Include[/i].
Each item is an html table with text.
Files are stored in a folder called NEWS and named sequentially – news1.htm news2.htm and so on.

The index page is editied manually.

What I’d like to learn is how to create a php page (say scan.php) and have it reside in the NEWS folder along with a dynamic index page – so visitors can enter the News folder to peruse past items – without me having to manually edit the index file to link to them.

[i]Hope that makes sense. ?[/i]

I’m guessing some sort of recursive search is needed – but no idea where to start.

Can somebody steer me in the right direction?

Cheers in advance!

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@NightShift58Feb 06.2007 — Use glob() and run a loop through the resulting array.
Copy linkTweet thisAlerts:
@ShuggyauthorFeb 06.2007 — Wow thats a fast reply. Cheers!

Sadly I have no idea what you mean though. Sorry!

Any chance of a small example?
Copy linkTweet thisAlerts:
@ShuggyauthorFeb 06.2007 — Cheers! ?
×

Success!

Help @Shuggy 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,
)...