Hola Jose espero poder ayudarte, si no sabes php, es jodido pero te paso un ejemplo:
Creamos un archivo .PHP que cuando le pasemos los valores los guarda en algun sitio (una base de datos no que sino te complicas jaja) puedes coger este Php de un ejemplo de Cookie Stealer:
recogerdatos.php
<?
$fecha=time();
$dato1 = $_GET['dato1'];
$dato2 = $_GET['dato2'];
$fff = fopen("temperaturas.txt","a"); //no es a+ porque queremos que se actualicen
$salida = "<br><table width='449' border='1' cellpadding='2' cellspacing='1' bordercolor='#000000' bgcolor='#FFFFFF'>
<tr>
<td width='137' rowspan='3'><div align='center'>$fecha</div></td>
</tr>
<tr>
<td><div align='center'>$dato1</div></td>
</tr>
<tr>
<td><div align='center'>$dato2</div></td>
</tr>
</table>";
fwrite($fff, $salida);
fclose($fff);
echo "<script>location.href='www.google.es';</script>"; //Nos lleva a Google
?>
Desde tu programa, tendrás que acceder a la página web de la siguiente manera:
http://www.tupagina.com/recogerdatos.php?dato1=30&dato2=233
Puedes meter tantos datos como quieras. En vb6:
Option Explicit
Public Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Public Declare Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal sURL As String, ByVal sHeaders As String, ByVal lHeadersLength As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
Public Declare Function InternetReadFile Lib "wininet.dll" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Public Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
Public Const IF_FROM_CACHE = &H1000000
Public Const IF_MAKE_PERSISTENT = &H2000000
Public Const IF_NO_CACHE_WRITE = &H4000000
Private Const BUFFER_LEN = 256
Public Function ActualizarDatos(dato1 As String, dato2 as string) as string
Dim sBuffer As String * BUFFER_LEN, iResult As Integer, sData As String
Dim hInternet As Long, hSession As Long, lReturn As Long
'get the handle of the current internet connection
hSession = InternetOpen("vb wininet", 1, vbNullString, vbNullString, 0)
'get the handle of the url
dim sURL as string
sURL = "http://www.tupagina.com/recogerdatos.php?dato1="&dato1&"&dato2="&dato2
If hSession Then hInternet = InternetOpenUrl(hSession, sURL, vbNullString, 0, IF_NO_CACHE_WRITE, 0)
'if we have the handle, then start reading the web page
If hInternet Then
'get the first chunk & buffer it.
iResult = InternetReadFile(hInternet, sBuffer, BUFFER_LEN, lReturn)
sData = sBuffer
'if there's more data then keep reading it into the buffer
Do While lReturn <> 0
iResult = InternetReadFile(hInternet, sBuffer, BUFFER_LEN, lReturn)
sData = sData + Mid(sBuffer, 1, lReturn)
Loop
End If
'close the URL
GetUrlSource = sData
End Function
y en cualquier parte de tu código:
ActualizarDatos(500,36) //Por ejemplo
Con esto, la pagina guardará los últimos datos que le pases en el archivo de texto, que puede ser leido en otro php (iframe por ejemplo) asi:
<?php
readfile ("http://www.tupagina.com/temperaturas.txt")
?>
Espero haberte ayudado