Page 1 of 1

store .asp output in php string

Posted: Sat Aug 19, 2006 2:19 am
by imatrox05
hi,

I'm looking for a solution to the following issue.

I access users info from out database in the server.
a. i access the report page from "http://192.168.1.118/db/user_report.asp"
b. I select a user from the list and press submit.
C. the result is displayed in another page

Now the url that is passed is like this

http://192.168.1.110/db/user_report_...p?cboUser=1724

Now there are around 45 users and currently i am getting statistics(eg total work done) by manually checking one employee at a time

Now...This is what i am trying to do

1. have all user id's in an array
2. Pass this url "http://192.168.1.110/db/user_report_view.asp?cboUser=" & array value
3. Get the resulting html output as a string
4. Parse my required data later from results

Now is this possible or should i look into some other solution

Posted: Sat Aug 19, 2006 2:22 am
by feyd
it's possible.

Posted: Sun Aug 20, 2006 9:47 pm
by imatrox05
@feyd and may i ask how? :lol:

Posted: Sun Aug 20, 2006 9:55 pm
by feyd
With simple get requests file_get_contents() often works well for most people. If more complex interaction is needed, cURL may be of interest, as well as Snoopy.