PHP read remote database transfer speed problem?

Source: Internet
Author: User
I now have some pages to hang on to someone else's website, and then to read data from my database to those pages display, if the direct mysql_connect () connection to read the data will not be very slow? Will there be a big problem? Because you also want to buy items on those pages, and then jump to our back-office payment ...
Seek the Master's opinion ...


Reply to discussion (solution)

Test it and you'll know.

It is not recommended to do so. Let him host the server in your same network section of the machine room. Make the server an intranet data, then two front-end read the intranet data server data

hang it to someone else's website and then read the data from my database
Remote operation must be slower, that's all.
The problem is that remote operations require open access, with a slight careless exposure of your data to each other.
This should not be what you want, because there are still payments to our backstage

Hang it to someone else's website and then read the data from my database
Remote operation must be slower, that's all.
The problem is that remote operations require open access, with a slight careless exposure of your data to each other.
This should not be what you want, because there are still payments to our backstage
Hello ·
So, we have a shopping backstage, but the front-end want to put on the co-operation of the site (there may be multiple sites), and then on the cooperation of the site has a number of separate pages dedicated to our site products, and then click on the purchase jumped to us to pay the deal.
Do you think such an idea is realistic, good to achieve it? Is the main security this piece of difficulty is not very high?

Reference 3 Floor xuzuning reply: Hang to someone else's website, and then read the data from my database
Remote operation must be slower, that's all.
The problem is that remote operations require open access, with a slight careless exposure of your data to each other.
This should not be what you want, because there are still payments to our backstage
Hello ·
So, we have a shopping backstage, but the front-end want to put on the cooperation of the site (there may be multiple sites), and then on the cooperation of the site has a number of separate pages dedicated to our network ... If it is through someone else's website to hang their own things, just make a link, in fact, nothing, if it involves payment or something, or cautious point good.

I understand what you mean, you want to put the merchandise on your platform on the other merchant's website. In fact, you do not need to open MySQL permissions, because the other people have access to the database is not safe for you.
You can learn about other ways of interacting with data, such as XML or webserver, and you provide them with an interface that is much better than the permissions you give them directly to their database operations.

If it is not the same engine room, under the same switch, the speed is very slow, the best way is to do an API interface to each other to let the other side to tune

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.