[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB.NET Read PHP Array Output.

Posted on 2012-09-02
1
Medium Priority
?
1,049 Views
Last Modified: 2012-09-02
Hi, I have a function that reads php page, the php page outputs data as an array:



Array
(
    [GameMaster] => TestMaster
    [CycleStartDate] => 2012-08-01 00:00:00
    [CycleEndDate] => 2012-08-31 23:59:59
    [SolvedTickets] => 1414
    [FirstTicket] => 2012-08-01 00:01
    [LastTicket] => 2012-08-31 11:34
    [ServerTimeZone] => America/New_York
    [ServerTimeStamp] => 2012-09-02 18:52:03
    [TicketTypes] => Array
        (
            [Purposefully Feeding] => 339
            [Item Spamming/Abuse] => 165
            [Spam Purchasing Items (Couriers, etc)] => 131
            [Avoiding AFK Detection] => 492
            [Destroying Item(s)] => 89
            [Excessive Verbal Abuse] => 198
        )

    [TicketDecisions] => Array
        (
            [Guilty] => 593
            [Warning] => 289
            [Innocent] => 522
            [Undone] => 10
        )

    [Dates] => Array
        (
            [2012-08-31] => 5
            [2012-08-30] => 167
            [2012-08-29] => 177
            [2012-08-27] => 99
            [2012-08-26] => 109
            [2012-08-25] => 65
            [2012-08-24] => 34
            [2012-08-23] => 11
            [2012-08-15] => 93
            [2012-08-13] => 8
            [2012-08-12] => 160
            [2012-08-11] => 144
            [2012-08-10] => 136
            [2012-08-09] => 4
            [2012-08-08] => 80
            [2012-08-07] => 1
            [2012-08-06] => 32
            [2012-08-05] => 67
            [2012-08-01] => 22
        )

)

How do I read this data correctly using VB.NET ?
0
Comment
Question by:VAL1N
1 Comment
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 38359683
Technically, that isn't the array but a text output from var_dump() or some similar function.  It would probably be easiest to convert the array into a common format like XML or JSON that is implemented in both languages.  Then let the VB.NET program download it as file from the PHP page.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question