Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Using VB to send data to a PHP page | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Xtreme984

Koopa
Level: 18

Posts: 15/111
EXP: 25164
For next: 4733

Since: 07-27-04

Since last post: 116 days
Last activity: 58 days
Posted on 08-30-04 07:52 PM Link | Quote
does anyone have a method to get system stats and send them to a PHP page?
I'm trying to make my own kind of SigX.
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 1273/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 08-30-04 10:27 PM Link | Quote
hmm...well, you could probably use VB to write to a file on a server that PHP will use to determine what it will do. But to use VB to provide input to PHP directly, I do not think that is possible.
Jesper
Busy, busy, busy.
Level: 69

Posts: 773/2390
EXP: 2856000
For next: 13743

Since: 03-15-04
From: Sweden.

Since last post: 176 days
Last activity: 79 days
Posted on 08-31-04 06:18 PM Link | Quote
You want the Internet Transfer Control, and you want it to send data to a special PHP script that will store it in a file for you. The sig file would read the file and print out as usual.
Xtreme984

Koopa
Level: 18

Posts: 16/111
EXP: 25164
For next: 4733

Since: 07-27-04

Since last post: 116 days
Last activity: 58 days
Posted on 08-31-04 07:27 PM Link | Quote
is there a way to detect CPU usage, webbrowser and things like that with VB?
I know how to let a timer do a every 3 min update.
Jesper
Busy, busy, busy.
Level: 69

Posts: 760/2390
EXP: 2856000
For next: 13743

Since: 03-15-04
From: Sweden.

Since last post: 176 days
Last activity: 79 days
Posted on 09-01-04 04:44 AM Link | Quote
I'm pretty sure there are APIs for checking all of that. For default web browser specifically, you can work out the path if you read the register key at HKEY_CLASSES_ROOT\HTTP\shell\open\command - that's the association for the http:// protocol, IE default browser. Once you have the path it should be pretty easy to figure out what browser name it is and version data should be retrievable via file metadata API functions.
Kaiser Wilhelm

Red Goomba
Level: 11

Posts: 1/37
EXP: 4653
For next: 1332

Since: 09-01-04
From: Sheffield/Liverpool, UK

Since last post: 423 days
Last activity: 339 days
Posted on 09-01-04 05:11 AM Link | Quote
Not sure if this is applicable (you don't mention if it's .net/vb6), but in .net this is all pretty trivial.

Use the System.Diagnostics namespace to pull whatever data you need, then make a WebRequest with the data you want to push into your php script input like a form (keep the php simple, ya know).

http://lab.msdn.microsoft.com/express/vbasic/default.aspx

For a free (as in beer) Visual Basic.NET, although C# would probably be better, it's the same libraries anyway.

Pretty informative first post (! ) I think. Let's hope it degenerates into toilet humour and obscure anime/music references asap eh
dan

Snap Dragon
Level: 43

Posts: 145/782
EXP: 534516
For next: 30530

Since: 03-15-04

Since last post: 20 hours
Last activity: 14 hours
Posted on 09-01-04 05:46 AM Link | Quote
Here's a good article on retrieving the default browser. If you look around that website a bit more, you may find the rest of the answers to your questions. (That website is a great VB resource)
Xtreme984

Koopa
Level: 18

Posts: 18/111
EXP: 25164
For next: 4733

Since: 07-27-04

Since last post: 116 days
Last activity: 58 days
Posted on 09-01-04 06:23 PM Link | Quote
thnx everyone, I'll try to see what I can gather from your resources. btw I'm using Visual Basic 6 EE.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Using VB to send data to a PHP page | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.006 seconds.