Jump to content

andrewgarn

Members
  • Posts

    193
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

andrewgarn's Achievements

Member

Member (2/5)

0

Reputation

  1. Solved by removing a line from the CSS file. Closed
  2. Take a look at this page: http://www.rstracking.com/expgainrecords.php Can anyone tell me why its displaying like that? With the table displayed at the bottom of the page? Cant work it out as well why the last <td> is much bigger than the rest. Any ideas?
  3. Thanks, that works Now to find words that appeared each number of times, i just need to use the numbers from the 2nd array, and echo the new array with that as the key Thanks
  4. Ignore the second array, I can make that a string, so ignore it. What I want to make is a NEW array with the key being NUMBERS and the values being the words that appeared for that NUMBER of times. So this: [syktt] => 1 [sewsgc] => 1 [lbdxn] => 1 [ttjklz] => 1 would become: [1] => syktt, sewsgc, lbdxn, ttjklz etc Hope thats more clear.
  5. Each word in $keynb has a value associated with it. (This value is the number of times a word has appeared in a document) These values are stored in $result. All I want to do is echo the words that correspond to each value so: Number 1 //all words with value of 1 Number 2 //all words with value of 2
  6. and I forgot the $keynb array is sorted by value using: asort($keynb); print_r($keynb); [syktt] => 1 [sewsgc] => 1 [lbdxn] => 1 [ttjklz] => 1 [lrvht] => 1 [tmdec] => 1 [internal] => 2 [structures] => 2 [demands] => 2 [coherent] => 2 [content] => 2 [imposition] => 2 [fourth] => 2 [second] => 2 [third] => 2 [fifth] => 2 [distinguished] => 2 [reason] => 2 [treated] => 2 [unrelated] => 2 [courses] => 2 [different] => 2 [memorised] => 2 [intrinsic] => 2 [deepsurface] => 2 [slide] => 2 [distinguishes] => 2 [conversational] => 2 [nthpr] => 2 [experience] => 2 [signs] => 2 [associated] => 2 [concepts] => 2 [argument] => 2 [unreflectively] => 2 [evidence] => 2 [everyday] => 2 [theoretical] => 2 [master] => 3 [however] => 4 [succeed] => 4 [present] => 4 [provides] => 4 [challenge] => 4 [motivation] => 4 print_r($result); [click] => 1 [internal] => 2 [master] => 3 [however] => 4 [important] => 5 [styles] => 6 [questions] => 7 [skill] => 8 [cognitive] => 9 [groups] => 10 [skills] => 12 [ideas] => 14 [teacher] => 16 [model] => 17 [group] => 20 [within] => 22 [which] => 24 [models] => 25 [behavior] => 28 [based] => 29 [their] => 40 [knowledge] => 42 [learners] => 44 [learning] => 67 For $result, all i want to use is the values, as i am trying to find all the words with the same number of occurrences. I can turn $result into a string by doing: foreach($result as $value) { $stnb = $stnb.' '.$value; } echo $stnb; Gives: 1 2 3 4 5 6 7 8 9 10 12 14 16 17 20 22 24 25 28 29 40 42 44 67
  7. Try this? $post = '<span style="color:#FF0000">This post has been deleted by:'. $usr.'</span>';
  8. Because I someone suggested the thread had changed to a different topic, and should be changed, read the last post. And i'm afraid i dont understand COM or have a windows server to host the file on.
  9. This is probably simple, but i'm not making it work. I have a n array which contains a set of values, each of these values are one of the possible values in another array What i want to do, is for each of the values in the first array, echo the coresponding values in the second. I have this: <?php $result = array_unique($keynb); foreach($result as $value) { $check = array_search($value, $keynb); print_r($check); } This only prints one of the keys of each value.
  10. My project I was attempting is an automatic php system which takes a user submitted powerpoint file, opens it and extracts keywords. These could then be added to a database and be made searchable. What I have done so far, is open a powerpoint file in php. split the data by carriage returns and spaces removed parts under 5 characters and over 15. removed words from string that contain characters other than A-Za-z I started off with the original data extracted which was around 2mb of text. After doing the steps above i'm left with 3.8kb of keywords from inside the powerpoint file. But I still have "junk" pieces of data: agilgdyj lhcls tdmqjx qokkjf xbxan bwpgt cmucj zqbbrp bgac jwmlnx ufsxt photoshop maasp dpkka wpedb kczbb huqz jjbnf jcztpf hqvoi ccpau vljxa pyfjm mhhvb hyfkk rdqhk liwip aezeg ejyow jsuznw kuqsu syktt zctbq upijhvb lbdxn sewsgc tmdec ttjklz lrvht dqypb omqzpng decdj nskxjr mpcvx vccmath puddg laapcr uteqqo svzyo urgvub yvcro ihxjr ebvve rnngz zrudu irtlb cddzo yqxgy ngzro aktpk yahuc ndelz uzqtk olpar aqrty bnxpuygd vltxj citpj ngwso beysx bexpq Would there be any way further to remove these junk pieces?
  11. no i want to know if there is any of methods I can use to remove this: avxds fdbb2 vqme0 igsbe rgqsl za9f6 qqok1 ccci2 idat1 idatw fdyll qeyv3h tdesdr 98s9er 1fxhi rvuk1f wva8j b2iam p9uk0 jakten ynfe2f from the data string. The random garbage letters change for each file.
  12. Is it possible to have php send an email to a gmail account, then download it back again from the account in different format e.g. send a powerpoint file then use the "view as html" option to get the ppt back? Probably not possible I just wondered if it could be done I know there is no standard url it could retrieve, but i thought by using a specific title for the message, and reading it back? Probably not possible Just looking into web only ways of converting files.
  13. This works: $newpieces = preg_split("/\s+| /", $newoutput); Thanks but i'm still getting duplicate words appear in the output, including "master" which appears 5 times. Its the same all 5 times in the source code. EDIT: fixed that myself, i was making everything lowercase AFTER the if fuction. Last problem is the junk still in the file: avxds fdbb2 vqme0 igsbe rgqsl za9f6 qqok1 ccci2 idat1 idatw fdyll qeyv3h tdesdr 98s9er 1fxhi rvuk1f wva8j b2iam p9uk0 jakten ynfe2f
  14. <br><br>$newpieces[278] = master<br><br>$newpieces[279] = styles second<br><br>$newpieces[280] = level third<br><br>$newpieces[281] = level fourth<br><br>$newpieces[282] = level fifth<br><br>$newpieces[288] = master<br><br>$newpieces[289] = styles second That means the problem is hidden /n right?
×
×
  • 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.