Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLHTTP and php
Message
De
05/10/2004 05:17:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
XMLHTTP and php
Divers
Thread ID:
00948730
Message ID:
00948730
Vues:
54
I made a fatclient application that use "Microstoft.XMLHTTP" to send requeries to my server. I make it work for IIS/VBScript. My knowledge of PHP is mimimal and i cannot make it work for Apache/PHP. Do you have a hint how should look the server side(in php)? I have attempted with $_POST, but the array is empty
(
<?php 
print_r $_POST;
echo "PLEEEEEEEAAAAAAAASSSSSEEEEEE return something!";
?>
). So the client shows ARRAY() and please return ... .
<?php
echo "[";
foreach($_POST as &Field => $Value)
{
    echo $Field;
    echo $Value;
}
echo "]";
?>
. The client shows [].

This is a sample of fox code on client side:
local loXMLHTTP, lcStringToSend
    ...
    loXMLHTTP=createobject("Microsoft.XMLHTTP")
    loXMLHTTP.Open("POST", "http://localhost/test_server.php", .F.)
    loXMLHTTP.SetRequestHeader("Content-Type", "text/xml; charset=utf-8")
    loXMLHTTP.Send(lcStringToSend)
    MessageBox(loXMLHTTP.ResponseText())
    ...
Please help me out!
Mecu Sorin
mecusorin@spymac.com
There is no spoon! Use your hand.
Répondre
Fil
Voir

Click here to load this message in the networking platform