Ted Penner
asked on
Favorites web-page
I need a way to formulate a page of URLs for my team as follows:
Assistance with the below is greatly appreciated.
Expand and collapse each section
- Add new URL button allows for URL and brief description.
- Search button searches all URLs and descriptions.
URLs BRIEF DESCRIPTION OF SECTION
BRIEF DESCRIPTION OF URLS
+/-url.com
url.com/page1
url.com/page2
url.com/page3
+/-url2.com
url2.com/page1
url2.com/page2
url2.com/page3
Assistance with the below is greatly appreciated.
Expand and collapse each section
- Add new URL button allows for URL and brief description.
- Search button searches all URLs and descriptions.
URLs BRIEF DESCRIPTION OF SECTION
BRIEF DESCRIPTION OF URLS
+/-url.com
url.com/page1
url.com/page2
url.com/page3
+/-url2.com
url2.com/page1
url2.com/page2
url2.com/page3
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I looking for a solution. mysql is out, jquery or php might be ok. I know we can't spin up a mysql database so php and jquery if it could be run from a simple network file share might be the best. What would be best suited for that?
You will run into concurrency / lock issues if you're attempting to do this with a file as the "database". If you want something that allows more than one person to write at any point, you need a true database.
Might be worth considering E-E Gigs for this. A simple search for "shared bookmarks" turns up lots of good ideas, but if you want to use your own design instead, it's custom application development work that doesn't really fit neatly into the concept of a question with an answer.
One idea to help mitigate (although not completely resolve) file lock / concurrency issues would be to create one file for every "link". You would allow users to create and search links via the web form, but not edit them.
Ray is correct that, unless you find a very willing Expert who doesn't mind working for free, this type of request is probably better suited for Gigs.
I don't mind helping with ideas to get you going in the right direction, or answering specific questions related to coding problems you encounter along the way.
Ray is correct that, unless you find a very willing Expert who doesn't mind working for free, this type of request is probably better suited for Gigs.
I don't mind helping with ideas to get you going in the right direction, or answering specific questions related to coding problems you encounter along the way.
ASKER
Hmm, I think first I probably need to decide on the method I want to use.
We have storing, editing, and searching that will be needed. Can this be done in a single flat php file?
We have storing, editing, and searching that will be needed. Can this be done in a single flat php file?
No. You can't store in PHP. You will need a database, or some other mechanism, like files. PHP can be used to read the contents of a directory (such as file names, etc) but it can not store the data.
But the code that handles the create / edit / search operation could be in one PHP file (that also includes JQuery / JavaScript to handle the user interaction, such as clicking and opening a chevron to see more details). You can stuff as much code as you'd like into one PHP file.
You might also want a CSS file for styling, although even CSS can be stuffed into the PHP file if you really want everything in one file.
But the code that handles the create / edit / search operation could be in one PHP file (that also includes JQuery / JavaScript to handle the user interaction, such as clicking and opening a chevron to see more details). You can stuff as much code as you'd like into one PHP file.
You might also want a CSS file for styling, although even CSS can be stuffed into the PHP file if you really want everything in one file.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh man. I'm learning something today!
So are you saying there is no way to accomplish what I am looking for (reasonably) within a flat file?
So are you saying there is no way to accomplish what I am looking for (reasonably) within a flat file?
Modern methods are oriented towards using databases. If you use your own flat file methods, then you need to basically duplicate the methods used in database servers. The biggest problem is controlling reading and writing from multiple sources. Database servers are designed to do that. No web page language that I know of can do that 'reasonably'.
ASKER
Thank you both
ASKER