Project #36485 - Php script to parse out refeer url form log file

i'm trying to code a simple php script to parse out refeer urls from an log file

and echo that urls

here's an example of a line from the log file

94.249.20.37 - - [26/Jul/2014:19:54:39 -0400] "GET /orig.jpg HTTP/1.1" 404 - "http://xaxad.com/view.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"

94.249.20.37 - - [26/Jul/2014:19:54:39 -0400] "GET /orig.jpg HTTP/1.1" 404 - "http://xxadd.com/view.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"

94.249.20.37 - - [26/Jul/2014:19:54:39 -0400] "GET /orig.jpg HTTP/1.1" 404 - "http://3f3fxad.com/vaaadew.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"


94.249.20.37 - - [26/Jul/2014:19:54:55 -0400] "GET /tt/orig.jpg HTTP/1.1" 304 - "http://xaxa.org/lla.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"

what i need to parse is the urls ( it's reefer urls ) you can google it for more info.
the urls should prased only for tt/orig.jpg  





also don't get the duplicated urls, just get one copy
the newer urls should printed on the top

the script should print on the screen 30 url

and if i scroll down using the scroll-bar it should load automatically more 15 url ( like facebook ) i think it's an jquery

also i need an style to make the printed results looks good using css + jquery( interface )
see the attachments for examples of output

please note that the log file size is always more than 50 mb , i think that will make some load on the server when reading over 50 mb file line by line
if there's any method to make the load low would be fantastic !




Subject Computer
Due By (Pacific Time) 07/31/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy