dongshi9489 2013-10-17 10:00
浏览 91
已采纳

使用WAMP在本地计算机上创建和使用Web服务

Is it possible to create an environment on local machine( i.e. localhost) where we can create and consume web service using PHP?

Is there any flow to create a web service like environment on localhost?

I would like to create an environment on localhost for web services where local machines, on intranet, get connected to main server (here again it's local machine) and can consume web services.

Like on internet we have Web Servers from where we can create and consume web services, Can we do the same on localhost?

Edit:

I am using WAMP with

PHP 5.3
Apache 2.*
MySQL 5
Windows 8

  • 写回答

1条回答 默认 最新

  • douaoj0994 2013-10-17 10:16
    关注

    It is easy to create a local web service. You will need a local web server (like IIS or xampp) to execute PHP locally.

    Access you PHP application in your browser using http://localhost/<yourApp>.php and provide any webservice at a local URL as well, e.g. http://localhost/<yourService>.php. Your application can then access the webservice using the local URL.

    This works both for REST or SOAP-style services.

    EDIT: Your edit shows that you already set up a local environment to develop and test webservices. You should really be more specific in your question, maybe you are looking for a tutorial to create web services with PHP in genereal. If so, Google will be your best friend: https://www.google.de/#q=create+web+service+using+php+tutorial

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀