I've been having a lot of troubles with the PHP Get object lately. I've already used the extension successfully, but for some reason on my latest endeavour, it has not been working so well.
I have the PHP script all up and running, which works fine with a web page doing a similar call to the script using Ajax. And I have the Get URL correct, with the right post data name and information being sent. On the PHP, I just do a simple check to see how many entries there is in one of my databases and then echo the result (1 or 0).
The problem is that nothing is being returned. There is sign of data being echoed, but nothing can be stored. I use the "Get Complete" event to set a counter to 1 when content is received back, and this works. But when I try and store the received information in a variable, the variable will always remain empty.
I've tried;
- Echoing static data (fixed to a numerical value or string).
- Storing the data received in global values(using val() ) and strings.
- Setting a counter to the value of the content received using val().
- Setting Alterable Values of objects to the received content.
Does any PHP developer know what my problem may be here? The counter changing signifies that content is being recieved, but there never seems to be anything in the content. I'm just using the standard
echo "1"; at the moment.