Hi there,
I've used the cUrl library to return a query string from a remote server to a variable. The
query string looks a bit like this:
...php?message_ id=a1&recipient =unit1&sendday= fri
At the moment, the whole of this query string is contained in a single variable ($qstring) so if I print $qstring, "message_id=a1& recipient=unit1 &sendday=fri " will be sent to...
User Profile
Collapse
-
Getting values from a query string
-
Great news! my hosting company say that I have privileges to run cron jobs! Woo hoo! -
Hi Motoma,
I think we are talking about the same thing. I only need something to schedule and repeat the execution of my php script which, as you say, would collect incoming information and write it to the database. Users would then have an up to date record of their messages read back out from the database by various other php pages whenever they log on to the application.
The only concern that I have is that I usually...Leave a comment:
-
Thanks devsusan and Motoma,
I've no problem with contacting the server with PHP but it is getting this script to run automatically every second or whatever that I wasn't sure about.
The reason for me wanting to use PHP is simply that other than vb and a bit of javascript, it's the only language that I'm that confident in. I'm just a hobbyist really. I have to admit that I'm not sure what a cron job is yet! but I'll...Leave a comment:
-
Regularly poll server for messages
Hi there,
I'm writing a PHP web app that sends and recieves sms text messages. I need to regularly poll the server for new incoming messages. I say regularly but it would be all the time really, every second or two, 24/7. Clearly this is outside of PHP's normal usage. Do you have any suggestions about the best language to use for this kind of action?
Thanks in advance,
Paul -
Help! with php and cURL
Hi there,
I’m having a real heap of trouble with PHP and cURL
My aim is to use this code (or something like it) to submit 2 fields to a remote server (using GET) and receive back 6 fields (again with GET).
When I run the function below, I get back a 401 unauthorized error although the Username and Password are correct. Presumably then, they are not reaching the remote server at all or in the correct...
No activity results to display
Show More
Leave a comment: