|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-09 08:50 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 01:00:01 2025 UTC |
Description: ------------ I don't know if this is the wanted situation... But if you include a remote php script that has a RETURN statment, the value is not return from remote script. Reproduce code: --------------- simples.php 's code: <? $val = "simples"; return $val; ?> ----------------------------------------------- main_1.php 's code: <? $resultado = include ("./simples.php"); print_r($resultado); ?> ----------------------------------------------- main_2.php 's code: <? $resultado = include ("http://localhost/simples.php"); print_r($resultado); ?> ----------------------------------------------- Expected result: ---------------- Running main_1.php (http://localhost/main_1.php) I got the following output: simples Actual result: -------------- Running main_2.php (http://localhost/main_2.php) I got the following output instead of "simples": 1 What could be done to return the result of a remote script execution??