一个网站下两个项目应该怎么调用数据

WBOY
Release: 2016-06-13 12:20:17
Original
806 people have browsed it

一个网站下两个项目应该如何调用数据
比如一个网站根目录下,分别有两个项目A和B,
现在想使A中调用B中的数据,或B调用A的数据。
前提,这个站是用框架做的,当然框架不是很完整,没有类似thinkphp的跨项目调用的方法。
此时应该如何做呢。
------解决思路----------------------
要么直接操作数据库调用数据
要么就在两个项目里写个接口,http访问接口返回数据

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!