ARAD Posted May 3, 2020 Share Posted May 3, 2020 Hello I am a total beginner and don't know first thing about php, but still trying to figure this out. So what I am trying to achieve is, send a http request from a software to my website with a ticket number, is it possible in php to receive that request and show it on a different webpage of the same site? It would be helpful if you can point me to some related articles. Quote Link to comment https://forums.phpfreaks.com/topic/310682-php-script-to-receive-http-request-from-a-software/ Share on other sites More sharing options...
Barand Posted May 3, 2020 Share Posted May 3, 2020 One of the reasons for using an http request (AJAX) is to stay on the same page. If you want output to go to another page use a link or a form with GET or POST and send to the other page. Quote Link to comment https://forums.phpfreaks.com/topic/310682-php-script-to-receive-http-request-from-a-software/#findComment-1577465 Share on other sites More sharing options...
niraeth Posted May 4, 2020 Share Posted May 4, 2020 If I understand you correctly, you want to update your ticket information from a software (e.g a exe file). Yes it is possible. What you need to do is, On the server side, create a script e.g updateTicket.php that updates your sql database On the client side, your software, launch a http request to e.g http://example.com/updateTicket.php or whereever your script is located, with the new ticket information e.g http://example.com/updateTicket.php?ticketId=1234&ticketTitle=something&ticketContent=something I cant give you any code here since I don't know what language you are using. I think what you need to know is that it is possible to save the ticket information into your database through your php script. Other pages on your website can access the very same database for the updated ticket information. Please also remember to authenticate the http request ! Quote Link to comment https://forums.phpfreaks.com/topic/310682-php-script-to-receive-http-request-from-a-software/#findComment-1577514 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.