A
A
Alexander Pupkin2017-01-21 23:05:05
PHP
Alexander Pupkin, 2017-01-21 23:05:05

Sending data to the site from the local area?

What we have:
1. There is a site
2. There is access to the site - admin panel, database, ftp It is
necessary to perform the following task:
I start OpenServer (as an example), I go to the local site, there are forms, I fill out the forms, before sending to js or php I do formatting articles (editing, amending, replacing, etc.), I click on the Send button, it all flies to the site (for example, immediately to the page for adding an article), forms are also there, they are filled with my data and the article is saved.
Do not ask why this whole hemorrhoids =)
Direct on the true path, what is needed for this? Links, examples, any information.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vincent1, 2017-01-21
@sakrab

You do this:
1) on the localhost, write a php script
1.1) that will log in to your admin panel of your site on the Internet. Here use curl
1.2) send POST requests for editing, amendment, replacement, etc. Here, use curl
2) write an html page with forms on the localhost, on which, when you click the "send" button, the script from paragraph 1 will be called
3) if you wish, you can add checks to see if the entire operation was completed successfully. You will need ajax and parse the response from the admin panel of your site on the Internet.

E
entermix, 2017-01-21
@entermix

Direct on the true path, what is needed for this?

  • Arms
  • Firebug/HttpFox
  • CuRL

U
Uno, 2017-01-22
@Noizefan

What is the range of tasks of your tool?
It seems to me that it is easier to upload your own php script to the server, which will work directly with the database.
Curl, forms and so on - an extra load and obstacles to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question