![]() |
HTML Code Question
If I have a small site hosted on an internal work network which is basically just a page with links, is it possible to include some code so that users can add their own links, and delete links (whilst adhering to the site formatting) ?
Just an idea I had as the links won't be static anymore. If not, fair enough. I'm not that tecchy at all, so apologies if this doesn't make sense and I need you to explain your replies :p: Ta. |
Re: HTML Code Question
The trouble is where and how to store the list of current links. And is the set of links communual, or personal? i.e. does everyone have their own different list, or they share the same list?
Do you have access to PHP? Its free so if you run the webserver yourself, you can install it yourself. Having MySql would make things quicker and easier, but its not essiential. |
Re: HTML Code Question
Quote:
They are communual and everyone has access to the page at the moment via the network. |
Re: HTML Code Question
They could always open the files in Word or something and change links in there.
|
Re: HTML Code Question
Everyone has access to read the html page, or they all have write access too? If they've got write access, then as Rich says, give 'em something basic to update the links with... pretty much everyone can use Word nowadays, and you can edit hyperlinks in that with yer eyes closed.
|
Re: HTML Code Question
Quote:
|
Re: HTML Code Question
Quote:
The easiest way of getting around this is to set up a MySql server to facilitate the transactions. The advantage of this is that it can easy make the links personalised, should you wish to go down that route (make some links communal and some private). Its not really difficult but it can be a bit of agro if you've never done it before. |
Re: HTML Code Question
Quote:
|
Re: HTML Code Question
Quote:
The best way around it still using a simple flat text file is to give users the option, to add or edit links. If they want to add, fine just open as normal and append. If they want to edit/delete a link, then you need to give the user exclusive access by locking the file. PHP can do this with flock. If it didn't or isn't supported, you could just temporarily rename the file, so the second person attempting to gain access would an "in use" message when PHP does the "file_exists" bit. |
| All times are GMT. The time now is 17:54. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum