Re: Including remote PHP script, Return DO NOT works.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pretty much exactly what I wrote.. It does work, it works as it should and
it nothing wrong with it really..

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"B.A.T. Svensson" <B.A.T.Svensson@xxxxxxx> skrev i meddelandet
news:D291F33C586C8E48B95C26F8C805513A01A3DA1C@xxxxxxxxxxxxxxxx
> What is the point you want to make with this reference?
>
> -----Original Message-----
> From: DvDmanDT
> To: php-windows@xxxxxxxxxxxxx
> Sent: 2004-04-10 18:05
> Subject: Re:  Including remote PHP script, Return DO NOT works.
>
> Quote from the manual:
>
> "Handling Returns: It is possible to execute a return() statement inside
> an included file in order to terminate processing in that file and return
> to the script which called it. Also, it's possible to return values from
> included files. You can take the value of the include call as you would
> a normal function. This is not, however, possible when including remote
> files unless the output of the remote file has valid PHP start and end
tags
> (as with any local file). You can declare the needed variables within
those
> tags and they will be introduced at whichever point the file was included.
"
>
> Therefore, it works as intended, and is not a fault of any kind.. The
> reason it doesn't work for the OP is that the script tries to include the
> generated output from the script on http://localhost/, which doesn't have
> any return keywords, and thats why.. If he rename the file he tries to
> include to .txt, it will work as he want it to..
>
> http://php.net/manual/en/function.include.php - Example 11-7, and the
> text right above it..
> -- 
> // DvDmanDT
> MSN: dvdmandt$hotmail.com
> Mail: dvdmandt$telia.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux