Page 1 of 1

Web design

Posted: Wed May 02, 2012 12:20 am
by ilugopal
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

Re: Web design

Posted: Wed May 02, 2012 3:56 pm
by social_experiment
ilugopal wrote:I need some advice on how to do this and which is the right platform to do this.
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?

Re: Web design

Posted: Fri May 04, 2012 9:56 am
by x_mutatis_mutandis_x
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.