dsgft1486 2012-04-16 05:10
浏览 25

如何使用php创建CMS,最终用户无需了解有关数据库的任何信息。 那可能吗

In genera sense if I create a CMS using php .Where I created and named the database in my localhost. Now if I or my clent upload the CMS in any server how will it work. because there is no database in that server.

And in my php code I wrote to create database. Now how can i create a CMS which can automatically create database and tables where client doesn't have to know about anything besides uploading the CMS.

Example: In the CMS there is a query saying (SELECT * FROM users). I named the table users which contains user information.

but If a client upload my CMS into his server how will it work. Does he have to go phpmyadmin and create a identical database like I created and named while developing the CMS.

  • 写回答

1条回答 默认 最新

  • dongneng5383 2012-04-16 05:25
    关注

    You can create a php page that will execute some queries to create the database and tables.

    But I think, it would be a good choice to ask your user to create a database(blank database) and provide the details of the hostname, database name, database username and database password, to your CMS system. So you could use this to execute the queries for creating the tables. I think, that's how most of the forums and CMS softwares do.

    评论

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图