Jump to content
Sign in to follow this  
Ignotas

Data sorting and C++

Recommended Posts

HelloI'm just starting working with web pages and I have an assinment for work to make web application (if you could call it that way) which has to take .txt file from one server then sort data which is in it and then display it on the web page. The data looks like this:2013.5.14 00:03:22;"555000000000000000";22;"ANSWERED". I have to take data lines only from certain date, delete numers which repeat, count their call duration, average call duration and display it on the web page. My question is can make such sorting with Php ? Or can I run programm in server, on click of the button on web page, which would sort it and put it on .txt file from which the page would read it and then display it? Or can I put c++ code inside the web page ? Thank you for any help!

Share this post


Link to post
Share on other sites

you can use PHP.

Share this post


Link to post
Share on other sites

So it's not possible to start a programm in server and then take sorted data from .txt file ? Becouse I already have a programme I only need to make few cganges to it.

Share this post


Link to post
Share on other sites

you probably could, but since you posted in a PHP forum and asked if it could be done with PHP, I was saying that yes, it could do it. PHP can do all the things you are asking about.

Share this post


Link to post
Share on other sites

You can either configure the web server to run your program when it receives certain requests, or you can use PHP to execute the program via a command line and return the output.

Share this post


Link to post
Share on other sites

Thank you your answers, I think I'll try doing with PHP. And is there any PHP library or chapter for working with text and files ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...