N
N
Nikita Kudinov2017-01-15 17:05:31
PHP
Nikita Kudinov, 2017-01-15 17:05:31

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

5 answer(s)
T
ThunderCat, 2017-01-15
@Nikita_Kudinov

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.

H
honormgr, 2017-01-15
@honormgr

The best and safest solution is API (json).

A
Alexander Varakosov, 2017-07-12
@thelongrunsmoke

This is SPA - Single Page Application.
All this beauty rests on JS, a little on styles and, mainly, on the nerves of the coder.

D
Dark Hole, 2017-07-12
@abyrkov

jQuery scroll event.

V
Vasyl Boyko, 2017-07-12
@ferdasfarmazone

All animations are made with CSS3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question