Home > Backend Development > PHP Tutorial > php编程有关问题新手!怎么获取php文件远程变量

php编程有关问题新手!怎么获取php文件远程变量

WBOY
Release: 2016-06-13 11:55:07
Original
878 people have browsed it

php编程问题新手求助!如何获取php文件远程变量
lz是新手,想用php完成一个文件同步的系统。
大致代码写到客户端用curl链接远程服务器的php文件,需要一个返回值来对客户端下一步进行选择,但是该怎么样获取这个值呢??
求各种大牛方法推荐……
------解决方案--------------------
你想给客户端什么,就 echo 什么
$r=curl_exec($ch); 后
$r 的内用就是服务端 echo 的内容

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