This content has been marked as final. Show 5 replies
Or proxy the call on the server. Have HTTPService make a call, then have the server run the php page.
What does a normal HTTPService call do?
Originally posted by: compubrook
What is the best way for me to run a example.php? I don't think an HTTP Servce works, but I do not understand why not.
Why do you think that HTTPService does not work? It has some problems but generally it's OK.
What is the location of your example.php? Is it on the local/remote Apache server?
The example is on a local server.
Basically, I'm charting live data and I want a warning when one of the data points is above a certain point, in the form of an email. I wrote the php code and everything is working fine, but I cant seem to get the http service call to run it. I have a few other http services working fine (to collect data) but they return an xml file.
So, if I just want it to just straight up run the http, what do I do?
http_srv = new HTTPService();
http_srv.url = "./php/sample.php";
This code should work.
Debugging PHP is a tricky part - did you check error.log and access.log files on you server?
You can place error_log() statement and check if HTTPService hits php code.
Mitek, you're exactly right.
Thanks for your help.