Web design

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
ilugopal
Forum Newbie
Posts: 1
Joined: Wed May 02, 2012 12:17 am

Web design

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Web design

Post 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?
“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

Post 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.
Post Reply