Dear all,
I'm new to PHP. My requirement is,
I've notepad in which logs are present. I need to design a web page by which if some one paste their ticket number and click on "search" the logs for that ticket number should be displayed at the bottom.
I need some advice on how to do this and which is the right platform to do this.
Regards
Gopalan
Web design
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Web design
the details you give is a bit vague but here is a direction you can look into; a database stores all the ticket numbers and use a php script to search through them for the given input; i'm not sure what you mean by 'platform', could you clarify this?ilugopal wrote:I need some advice on how to do this and which is the right platform to do this.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
-
x_mutatis_mutandis_x
- Forum Contributor
- Posts: 160
- Joined: Tue Apr 17, 2012 12:57 pm
Re: Web design
If by platform you mean OS, then UNIX/LINUX is better as you can make use of 'tail', 'head' to process certain lines of the logs and grep-ing them with the search request made by the user. You can have a simple php page that makes a system call.
You can also parse the file and store data in a database, like social_experiment suggested, in which case you can use any OS but you need a DB server.
You can also parse the file and store data in a database, like social_experiment suggested, in which case you can use any OS but you need a DB server.