dotnet69 Posted February 4, 2008 Share Posted February 4, 2008 I still need help with linking a specific line of text from a text file, into PHP coding Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/ Share on other sites More sharing options...
Northern Flame Posted February 4, 2008 Share Posted February 4, 2008 be more specific Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-457368 Share on other sites More sharing options...
haku Posted February 4, 2008 Share Posted February 4, 2008 And you expect that we can help you with that brief line? I need help making a php document. Can you help me? Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-457373 Share on other sites More sharing options...
Lamez Posted February 4, 2008 Share Posted February 4, 2008 open up notepad, and type this <?php echo "I need help"; ?> and save it as file.php, then upload it to a web server that has php installed, or install php Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-457392 Share on other sites More sharing options...
dotnet69 Posted February 5, 2008 Author Share Posted February 5, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458773 Share on other sites More sharing options...
Zhadus Posted February 5, 2008 Share Posted February 5, 2008 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); Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458777 Share on other sites More sharing options...
dotnet69 Posted February 5, 2008 Author Share Posted February 5, 2008 if you have multiple txt files you need to pull off specific information, do you have to create a new PHP document for each of the files you are trying to bring specific info to? Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458792 Share on other sites More sharing options...
trq Posted February 5, 2008 Share Posted February 5, 2008 The description of what it is exactly your trying to do really does still leave quite a bit to be desired. Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458797 Share on other sites More sharing options...
dotnet69 Posted February 5, 2008 Author Share Posted February 5, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458804 Share on other sites More sharing options...
dotnet69 Posted February 5, 2008 Author Share Posted February 5, 2008 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") } //--> Quote Link to comment https://forums.phpfreaks.com/topic/89319-still-need-help/#findComment-458809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.