[PHP] Re: is there a commandline php.exe interpreter?

2001-11-01 Thread Chris Lee

sure there is, get it at php.net goto download section and choose the cgi
version. there you are. php.exe

--

  Chris Lee
  [EMAIL PROTECTED]



"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed ActivePerl, which gives me a way to run .pl files,
> i.e. :
> c:\> perl someprogram.pl
>
> Does the Win32 php installation give me a command-line
> interpreter like that?
>
> Here's why I'm asking. I have a set of pages that I want to convert
> to php, but I will also need to drop those pages onto a CD too.
> I suppose I could view each page from the server and 'save as
> HTML' locally, but I was thinking that I might be able to run a php
> interpreter on the *.php pages and generate corresponding *.html
> pages in batch mode as follows:
> c:\> php index.php > index.html
> c:\> php about.php > about.html
> etc.
>
> Then I would have to run a batch search/replace program on the
> *.html files to change all links to *.php pages to link to the
> newly-generated *.html pages.
>
> Is there anything like that in the win32 install package or
> just configure a web server? I started to install it, but it looked
> like it was going to just install server stuff, so I cancelled it.
>
> --
> John A. Grant  * I speak only for myself *  (remove 'z' to reply)
> Radiation Geophysics, Geological Survey of Canada, Ottawa
> If you followup, please do NOT e-mail me a copy: I will read it here
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-26 Thread John A. Grant

"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
022901c15dbd$76a34c20$[EMAIL PROTECTED]">news:022901c15dbd$76a34c20$[EMAIL PROTECTED]...
> try this
>
>  system("php.exe ", $output);
> echo $output;
> ?>
>
> make sure you put the correct paths to the .exe and file  otherwise it
will
> think that it is realtive to where you are in the file system.

Thanks Jim (and to DNeil and David).

Short answer: I got it working ok

Long answer: I guess I wasn't very clear... Let me explain...

Up until now I have been creating php pages to run on our
departmental php-enabled server. Now I want to run php
locally on my NT system to generate *.html pages from those
*.php pages (to include the *.html pages on a CD).

I started to run php406_installer.exe on my system and
it started asking questions about my server (upload and
temporary directories). I figured the package was just for
use with a server on my system so I cancelled the install.

I had another go at it and told it "no server" and it installed
fine. Then I had a look at the install directory. Wow!! It's just
a couple of files - very compact. I thought it might be like a
Perl install with tonnes of stuff.

Anyway, I tried it out and it works just fine:
php -q xxx.php > xxx.html
php -q yyy.php > yyy.html

So I can now generate the *.html files from *.php. Then I
run a batch editor on them to replace links to *.php with
links to corresponding *.html files.

Thanks.

--
John A. Grant  * I speak only for myself *  (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread Jim Lucas

try this

", $output);
echo $output;
?>

make sure you put the correct paths to the .exe and file  otherwise it will
think that it is realtive to where you are in the file system.

Jim
- Original Message -
From: "John A. Grant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 6:07 AM
Subject: [PHP] Re: is there a commandline php.exe interpreter?


> "John A. Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've installed ActivePerl, which gives me a way to run .pl files,
> > i.e. :
> > c:\> perl someprogram.pl
> >
> > Does the Win32 php installation give me a command-line
> > interpreter like that?
> [...]
> No replies. I guess not, just server-based... :(
>
> --
> John A. Grant  * I speak only for myself *  (remove 'z' to reply)
> Radiation Geophysics, Geological Survey of Canada, Ottawa
> If you followup, please do NOT e-mail me a copy: I will read it here
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread David Robley

On Thu, 25 Oct 2001 22:37, John A. Grant wrote:
> "John A. Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > I've installed ActivePerl, which gives me a way to run .pl files,
> > i.e. :
> > c:\> perl someprogram.pl
> >
> > Does the Win32 php installation give me a command-line
> > interpreter like that?
>
> [...]
> No replies. I guess not, just server-based... :(
>
> --
> John A. Grant  * I speak only for myself *  (remove 'z' to reply)
> Radiation Geophysics, Geological Survey of Canada, Ottawa
> If you followup, please do NOT e-mail me a copy: I will read it here

Sorry - just found time to go through my stash of emails to find a 
possible solution for you. These may be useful.



Re: [PHP] PHP site to CDRom
Date: Wed, 18 Oct 2000 16:53:06 +0200
From: Andrea Resmini <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]


Phil Driscoll wrote:
> 
> I do this kind of job (on windows) with some software called WinHTTrack
> http://httrack.free.fr/
> It sorts everything out for you.



Yowza!

Thanks Phil.
I went to the site above and found out that they also have a new site at
www.httrack.com, and that the thing is  also available for Linux and
Solaris.
I downloaded and simply launched it (as usual, you have your
three-screens-load of switches) and it correctly parsed and saved the
files in a safe format (index.html and then index.html, where 
is an alphanumberic combo).
Works great: anybody looking out for a quick way to move some PHP site
to a CDRom should go take a look.

Thanks again



Re: [PHP] PHP site to CDRom
Date: Wed, 18 Oct 2000 10:57:53 -0700
From: "Robert V. Zwink" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, "Andrea Resmini" <[EMAIL PROTECTED]>


There was a message posted today for a script viewer that is probably what
you guys are looking for.  It can be found here:
http://www.angorasoftware.com/scriptviewer.html

This windows application is designed to show a parsed script file without
the need of a web server. This may be useful for CD-ROM distribution,
Stand-Alone materials, and other uses. The application starts the php
executable with a file parameter, showing the result in a HTML format.

Hope this helps.

Robert V. Zwink



Cheers
-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   If At First You Don't Succeed Ignore The Docs...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread DL Neil

> "John A. Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've installed ActivePerl, which gives me a way to run .pl files,
> > i.e. :
> > c:\> perl someprogram.pl
> >
> > Does the Win32 php installation give me a command-line
> > interpreter like that?
> [...]
> No replies. I guess not, just server-based... :(

=maybe we're all hoping someone intelligent will pipe up, so we call all learn!?

=I can fire up a DOS box (WinNT 4.0), navigate to the bin sub-directory and run PHP 
with a script as an argument.

=However as PHP is 'built' to output HTML and the DOS box is no web browser... you'd 
need to be using pure ASCII output!

=give it a go Jo!

=dn



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread John A. Grant

"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed ActivePerl, which gives me a way to run .pl files,
> i.e. :
> c:\> perl someprogram.pl
>
> Does the Win32 php installation give me a command-line
> interpreter like that?
[...]
No replies. I guess not, just server-based... :(

--
John A. Grant  * I speak only for myself *  (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]