Jump to content

still need help


dotnet69

Recommended Posts

Ok i have a text file, which another program dumps information into

Whenever this text file updates, i want a specific field of text to be pointed to an area in PHP

 

Say the text file has a column that has SLA for example.  In this column, there is a total for SLA, and this information gets updated every, say half hour, and i want that total linked into a PHP page, and it will refresh once the SLA has been updated

 

Is that a little better? I had to find a way of explaining it :)

Link to comment
Share on other sites

For the page that displays that line, you'll need to have it load that text file. You could have it just find the line with the SLA by using syntaxes, or I would recommend an easier way of having the program that dumps that info into the file, to put like a + sign before and after the info you need. Then when you load the text file, you can explode it into an array using the + sign as separators, and it would be ArrayVar[1].

 

Example:

$SLAval = explode('+',$textfile);

Link to comment
Share on other sites

This is the information i need to put into my page

the text in bold is the information i need to put onto my page

 

 

 

Posts: 12

 

 

View Profile Email Personal Message (Online)

 

 

Re: Trying to Add Content to Page from a text file

« Reply #15 on: February 01, 2008, 11:35:40 AM »

Reply with quoteQuote

These are the three tables i need to pull info from

 

<quote>

Date:  2/1/2008

Split/Skill: 

Start Time  <b>Service Level</b>  ASA  Calls Offered  Calls Answered  AHT  Aban

 

Calls  % Aban  % Occ.  % Avail  % AUX  Staffed Time  Avail Time  Aux Time  Avg

 

Talk Time  Avg Hold Time  Avg ACW Time  APS  Max Delay

 

Totals  <b>99</b>  :03  298  298  12:14  0  .00  61  27  12  117:25:15 

 

32:02:51  14:26:02  12:35  :42  :37  -  :52

7:30 AM  0  0  0  0  0  0  0  0  46  54  :20:28  :09:19  :11:09  0  0  0 

 

1  :00

8:00 AM  100  :03  25  25  7:45  0  .00  52  41  7  8:44:51  3:36:41  :36:26 

 

10:30  :08  :13  17  :03

8:30 AM  100  :03  28  28  11:56  0  .00  58  33  9  13:05:28  4:16:28 

 

1:13:17  15:15  :07  :40  26  :03

9:00 AM  100  :03  39  39  10:45  0  .00  59  36  6  18:58:33  6:45:56 

 

1:05:03  14:41  :38  :35  38  :03

9:30 AM  100  :03  50  50  14:59  0  .00  56  30  14  23:15:43  7:00:40 

 

3:13:15  13:48  :53  :49  47  :03

10:00 AM  97  :04  71  71  12:24  0  .00  66  15  19  25:14:31  3:49:30 

 

4:51:16  11:37  :46  :44  50  :33

10:30 AM  100  :03  85  85  12:36  0  .00  65  23  12  27:45:41  6:24:17 

 

3:15:36  11:26  :56  :33

 

 

Link to comment
Share on other sites

This is the Table i want to put in my Information from the text file into

 

 

 

last updated

 

 

 

SLA: %

 

AHT:

 

 

(CW):

 

 

(AA):

 

 

last refresh:

<!--

var currentTime = new Date()

var month = currentTime.getMonth() + 1

var day = currentTime.getDate()

var year = currentTime.getFullYear()

var hours = currentTime.getHours()

var minutes = currentTime.getMinutes()

if (minutes < 10)

minutes = "0" + minutes

 

document.write(month + "/" + day + "/" + year + " ")

document.write(hours + ":" + minutes + " ")

if(hours > 11){

document.write("PM")

} else {

document.write("AM")

}

//-->

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.