- 主题:怎么在php中执行另一个带参数的php
- a.php操作$_REQUEST域,把要传的变量放进去,然后包含b.php,b.php从$_REQUEST域取值。
 【 在 itemII 的大作中提到: 】
 : 修改一下问题,重新发一遍
 :
 : a.php和b.php位于同一个目录,a调用b的处理结果,都是用echo传递的数据
 : ...................
 --
 FROM 124.207.72.*
 
- SESSION是跨请求的,人家这个最好要在一个请求里面。
 【 在 billybear04 的大作中提到: 】
 : 貌似该用SESSION变量吧?
 --
 FROM 124.207.72.*
 
- this does not look obvious to me from the original question.
 
 and back to the beginning, why?  it looks like a typical x-y question.
 
 【 在 dhcn (Growth Coder) 的大作中提到: 】
 : SESSION是跨请求的,人家这个最好要在一个请求里面。
 --
 FROM 180.173.115.*
 
- title里面有"执行"",原文里面有"调用",你要还觉得不明确,自己复习redirec和forward的区别去。
 【 在 XeCycle 的大作中提到: 】
 :this does not look obvious to me from the original question.
 :
 :and back to the beginning, why?  it looks like a typical x-y question.
 :...................
 --
 修改:dhcn FROM 123.66.186.*
 FROM 123.66.186.*
 
- 晚上回家专门在Resin下面给你试一下,php中的$_GET不是只读,是可以写的。可以尝试直接给$_GET["c"]和$_GET["d"]赋值,看能不能传递过去。
 很多年不写php了,机器里面没有正经php环境,方便resin凑活一下。
 【 在 itemII 的大作中提到: 】
 : 修改一下问题,重新发一遍
 :
 : a.php和b.php位于同一个目录,a调用b的处理结果,都是用echo传递的数据
 : ...................
 --
 修改:dhcn FROM 123.66.186.*
 FROM 123.66.186.*
 
- iirc that
 $E = result from b.php
 echo $E;
 was not in the original post; sorry i did not read it again.
 
 but, imo, how "execute" and "invoke" are performed server side is just
 nonsense to the client.  if a redirection must not be used the question
 ought to be worded differently, because that matters the api visible to
 the client.
 
 【 在 dhcn (Growth Coder) 的大作中提到: 】
 : title里面有"执行"",原文里面有"调用",你要还觉得不明确,自己复习redirec和forward的区别去。
 : :this does not look obvious to me from the original question.
 : :and back to the beginning, why?  it looks like a typical x-y question.
 : ...................
 --
 FROM 180.173.115.*
 
- 已经决定用curl方案,只是觉得同一台机器也需要这样,效率低,
 但是不需要调整b.php,这很关键,因为b.php很复杂,
 
 
 【 在 XeCycle (据说是小 X) 的大作中提到: 】
 : iirc that
 :   $E = result from b.php
 :   echo $E;
 : ...................
 --
 FROM 118.244.254.*