Project #35106 - PHP

I'm trying to code a simple php script that open an file and print custom data from it

 

Here some of the file contents:

 

192.168.2.1 - - [06/Jul/2014:05:00:18 -0700] "GET /dice.php HTTP/1.1" 304 182 "htttp://{localhost}/log.html?varb=74657374" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"

 

it's a log file .

 

basically the data i need to get from the file is like this

 

the varb in the url 74657374

 

and echo that number or store in in a variable.

 

for example we have a file "demo.txt" and when i execute the php script the script should open the demo.txt and search for ( varb= ) and get the data after the equal sign (=) then echo it or store in in a variable

note that: the duplicated data should not imported more than one time

 

and will need an template ( interface ) for user to see that dumped info 

 

in table:

Date: MM/DD/YYYY

URL: (without the varb)

Varb: only the varb (parameter) 74657374

 

and the page should able to be saved and used for offline use.

 

ask me for any questions.

Subject Computer
Due By (Pacific Time) 07/15/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