php-windows Digest 12 Apr 2004 05:56:55 -0000 Issue 2205

Topics (messages 23414 through 23417):

Need help using "php.exe"
        23414 by: Eugen
        23416 by: DvDmanDT

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

fake
        23417 by: danny.heijl.cevi.be

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi all,


When you parse a file using the command "php.exe -f c:\myfile.php >
c:\myfile.htm"  , what command is required to set a variable. Example:
In IE addressbar, when i type(doesn't matter what server i use) :
http://localhost/myfile.php?thevariable=anyvariable, the "myfile.php" file
is now parsed with indicated variable.
But if i launch "php.exe -f c:\myfile.php?thevariable=anyvariable >
c:\myfile.htm" , the output file (c:\myfile.htm) contains one line:
No input file specified.

How can i make it work, without using a webserver ?

--- End Message ---
--- Begin Message ---
Try to replace the ? with a space.. But I really have no idra.. Make sure
you use latest version, cause I think this was changed to work better in
latest version.. Although, I would recommend to use the CLI version instead
of the CGI..

-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"Eugen" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi all,
>
>
> When you parse a file using the command "php.exe -f c:\myfile.php >
> c:\myfile.htm"  , what command is required to set a variable. Example:
> In IE addressbar, when i type(doesn't matter what server i use) :
> http://localhost/myfile.php?thevariable=anyvariable, the "myfile.php" file
> is now parsed with indicated variable.
> But if i launch "php.exe -f c:\myfile.php?thevariable=anyvariable >
> c:\myfile.htm" , the output file (c:\myfile.htm) contains one line:
> No input file specified.
>
> How can i make it work, without using a webserver ?

--- End Message ---
--- Begin Message ---
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" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> What is the point you want to make with this reference?
>
> -----Original Message-----
> From: DvDmanDT
> To: [EMAIL PROTECTED]
> Sent: 2004-04-10 18:05
> Subject: Re: [PHP-WIN] 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

--- End Message ---
--- Begin Message ---
i'm waiting

--- End Message ---

Reply via email to