store .asp output in php string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
imatrox05
Forum Newbie
Posts: 16
Joined: Wed Mar 29, 2006 8:44 pm

store .asp output in php string

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's possible.
imatrox05
Forum Newbie
Posts: 16
Joined: Wed Mar 29, 2006 8:44 pm

Post by imatrox05 »

@feyd and may i ask how? :lol:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply