就是哦。。我做了一个system,然后要用两架电脑来link....
电脑A输入了data,电脑B可以直接拿到那个data。。。
谁能教我。。。
或者给我网站教这些的.......
|
5662| 30
|
谁可以帮我教我怎么弄server |
)http://www.apachefriends.org/en/xampp-windows.html
step 1.1 - 进去这个网站。
step 1.2下载XAMPP for windows.exe
step 1.3 如果不会Install的话请参考这个http://www.apachefriends.org/en/xampp-windows.html#522
step 1.4 keep default setting,安装好了就可以run XAMPP control panel , start Apache, start Mysql 如下图。
step 1.5 XAMPP 就是个 APACHE + MYSQL + PHP 的综合体。(我是拿来开发PHP,做功课的啦~)
2.1 打开 IE type http://localhost 或 http://127.0.0.1
2.2 就会出 XAMPP for window 的header 字样。
2.3 C:\xampp\htdocs 里面就是你的Hosting directory, 你在里面能把你的网页放在这里。
2.4 你可以Skip ,如果你已经会PHP或已经有经验了。
2.4Con... 新建个Folder rename 成 testing, 然后新建个 textpad 里面写入 <?php print("hello there~"); ?> , save as hello.php
step 3.1 按Windows start 找 search。 windows 7, vista 的 看图。 windows xp run Command prompt。
(图1)
step 3.2 然后键入CMD, 如图1, right click cmd 的logo, run as admin(要不要都可以)。
(图2)
step 3.3 如图所示,键入 ipconfig/all 然后 ENTER 接下来看图3
drag 到 图3 所示的位子,有个IPV4 Address 的。 我的是 192.168.x.x
step 3.4 打开你的IE , 然后键入 http://192.168.x.x 看看会不会出 XAMPP for Windows。 如果失败的话请 roll 回 step 1 的做法吧。
step 3.5 如果你登入成功, 那么恭喜你, 你的电脑已经是个 LAN server 了。 接下来你只要打开另外一架电脑,然后输入那个IP, 就能了。
step 3.6(require 2.4Con) 在client的browser输入 http://192.168.x.x/testing/hello.php 就会看到~ hello there~ 的字样了。恭喜你完成了 basic client server tutorial 了~
(NOTE: 切记一定是要同个LAN, 我加是WI-FI 如果你是打过联机游戏那么你肯定懂是什么。)

JBTALKS.CC |联系我们 |隐私政策 |Share
GMT+8, 2026-1-2 06:25 AM , Processed in 0.091224 second(s), 27 queries .
Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
Dedicated Server powered by iCore Technology Sdn. Bhd.