Answer the question
In order to leave comments, you need to log in
How to connect to the database of another site in a PHP script?
I have a site on which a php script opens with a cron task.
How can I make it so that in this script data is entered on another site, not on this hosting?
Answer the question
In order to leave comments, you need to log in
Options 2:
1) API of a remote site with the ability to receive requests with data (if you are not aware - google the API)
2) Set up access to the remote server database from the outside, connect to it directly and enter data directly into the database.
This is SPA - Single Page Application.
All this beauty rests on JS, a little on styles and, mainly, on the nerves of the coder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question