Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP and php
Message
From
05/10/2004 05:17:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
XMLHTTP and php
Miscellaneous
Thread ID:
00948730
Message ID:
00948730
Views:
53
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.
Reply
Map
View

Click here to load this message in the networking platform