News index / Submit files
Posted: Sat Apr 05, 2003 1:05 pm
I have had problems thinking how i would go about this.
I want to have an index that fgetss() so many bytes(undecided) of the 5 latest news submits in the articles directory. And i would want the article to have a picture that would go with the article on the index as well.
On the submit page, i would allow uploading to /articles, of .jpg and .html articles, which would be parsed with index's fgetss....
The problem i am thinking of is How would i go about keeping track of the latest five submits? How would i know the .jpg and .html file to load on index.php dynamically? I dont want to use a DB (MySQL) for this site since it is for a friend, and he wont have access to MySQL.
THanks alot guys,
Clark Askam Dragonsimoto
I want to have an index that fgetss() so many bytes(undecided) of the 5 latest news submits in the articles directory. And i would want the article to have a picture that would go with the article on the index as well.
On the submit page, i would allow uploading to /articles, of .jpg and .html articles, which would be parsed with index's fgetss....
The problem i am thinking of is How would i go about keeping track of the latest five submits? How would i know the .jpg and .html file to load on index.php dynamically? I dont want to use a DB (MySQL) for this site since it is for a friend, and he wont have access to MySQL.
THanks alot guys,
Clark Askam Dragonsimoto