Running PHP scripts from browser without a webserver on MS

Running PHP scripts from browser without a webserver on MS

am 17.04.2008 13:41:43 von colin.mckinnon

Hi all,

I am looking for a way to run PHP scripts without using a webserver
(from a MS Windows machine). While there are shareware solutions for
doing this, it strikse me that it might be possible to use HTA (http://
www.microsoft.com/technet/scriptcenter/hubs/htas.mspx) to achieve my
result, however all the documentation just describes doing this with
VBScript.

So far I've not found anything relevant in Google.

I'd prefer not to have to re-write the code to work with GTK

Anybody had any experiences in this area they would like to share?
Links?

TIA

C.

Re: Running PHP scripts from browser without a webserver on MS

am 17.04.2008 13:50:07 von Captain Paralytic

On 17 Apr, 12:41, "C. (http://symcbean.blogspot.com/)"
wrote:
> Hi all,
>
> I am looking for a way to run PHP scripts without using a webserver
> (from a MS Windows machine). While there are shareware solutions for
> doing this, it strikse me that it might be possible to use HTA (http://www.microsoft.com/technet/scriptcenter/hubs/htas.msp x) to achieve my
> result, however all the documentation just describes doing this with
> VBScript.
>
> So far I've not found anything relevant in Google.
>
> I'd prefer not to have to re-write the code to work with GTK
>
> Anybody had any experiences in this area they would like to share?
> Links?
>
> TIA
>
> C.
If you want to run php scripts without a webserver, why not just use
the command line version. What do you need the browser for?

Re: Running PHP scripts from browser without a webserver on MS

am 17.04.2008 14:34:46 von colin.mckinnon

On 17 Apr, 12:50, Captain Paralytic wrote:
> On 17 Apr, 12:41, "C. (http://symcbean.blogspot.com/)"
>
> wrote:
> > Hi all,
>
> > I am looking for a way to run PHP scripts without using a webserver
> > (from a MS Windows machine). While there are shareware solutions for
> > doing this, it strikse me that it might be possible to use HTA (http://www.microsoft.com/technet/scriptcenter/hubs/htas.msp x) to achieve my
> > result, however all the documentation just describes doing this with
> > VBScript.
>
> > So far I've not found anything relevant in Google.
>
> > I'd prefer not to have to re-write the code to work with GTK
>
> > Anybody had any experiences in this area they would like to share?
> > Links?
>
> > TIA
>
> > C.
>
> If you want to run php scripts without a webserver, why not just use
> the command line version. What do you need the browser for?

Interface sugar really. The target users are not the most
sophisticated.

C.

Re: Running PHP scripts from browser without a webserver on MS

am 17.04.2008 15:00:14 von Captain Paralytic

On 17 Apr, 13:34, "C. (http://symcbean.blogspot.com/)"
wrote:
> On 17 Apr, 12:50, Captain Paralytic wrote:
>
>
>
> > On 17 Apr, 12:41, "C. (http://symcbean.blogspot.com/)"
>
> > wrote:
> > > Hi all,
>
> > > I am looking for a way to run PHP scripts without using a webserver
> > > (from a MS Windows machine). While there are shareware solutions for
> > > doing this, it strikse me that it might be possible to use HTA (http://www.microsoft.com/technet/scriptcenter/hubs/htas.msp x) to achieve my
> > > result, however all the documentation just describes doing this with
> > > VBScript.
>
> > > So far I've not found anything relevant in Google.
>
> > > I'd prefer not to have to re-write the code to work with GTK
>
> > > Anybody had any experiences in this area they would like to share?
> > > Links?
>
> > > TIA
>
> > > C.
>
> > If you want to run php scripts without a webserver, why not just use
> > the command line version. What do you need the browser for?
>
> Interface sugar really. The target users are not the most
> sophisticated.
>
> C.

If that's the case, why not install a local web server and then it
will look just like any other web page.

Re: Running PHP scripts from browser without a webserver on MS

am 17.04.2008 16:36:56 von hellsop

On Thu, 17 Apr 2008 05:34:46 -0700 (PDT), C.
(http://symcbean.blogspot.com/) wrote:

> On 17 Apr, 12:50, Captain Paralytic wrote:
>
>> On 17 Apr, 12:41, "C. (http://symcbean.blogspot.com/)"
>>
>> wrote:
>>
>> > Hi all,
>>
>> > I am looking for a way to run PHP scripts without using a webserver
>> > (from a MS Windows machine). While there are shareware solutions
>> > for doing this, it strikse me that it might be possible to use HTA
>> > (http://www.microsoft.com/technet/scriptcenter/hubs/htas.msp x) to
>> > achieve my result, however all the documentation just describes
>> > doing this with VBScript.

There's probably ways to hook in via C as well, that makes for writing
your own php extension, which is a non-trivial task to do well.

>> > So far I've not found anything relevant in Google.
>>
>> > I'd prefer not to have to re-write the code to work with GTK
>>
>> > Anybody had any experiences in this area they would like to share ?
>> > Links ?
>>
>> > TIA
>>
>> > C.
>>
>> If you want to run php scripts without a webserver, why not just use
>> the command line version. What do you need the browser for?
>
> Interface sugar really. The target users are not the most
> sophisticated.

Webserver/browser combination or Gtk or ncurses, etc., *are* your
interface sugar basically. If you want them, you have to use them or
write your own. (And if you're thinking about writing your own, think
really, really hard. It'll be a bigger task that all of the rest of your
project combined.)

--
Graham's First Rule of Internet Retailing:
If your 'shopping cart' site requires anything more complex than
HTML, SSL and a session cookie, at least one of your competitors
will run a site which does not. Your competitor will get the sale.

Re: Running PHP scripts from browser without a webserver on MS

am 17.04.2008 18:16:28 von alvaroNOSPAMTHANKS

Captain Paralytic escribió:
>>> If you want to run php scripts without a webserver, why not just use
>>> the command line version. What do you need the browser for?
>> Interface sugar really. The target users are not the most
>> sophisticated.
> If that's the case, why not install a local web server and then it
> will look just like any other web page.

I've seen several programs that do so, including Google Desktop. It's
definitively the best solution unless you want to write your own GUI
using php-gtk [1] or WinBinder [2].

[1] http://gtk.php.net/
[2] http://winbinder.org/


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--

Re: Running PHP scripts from browser without a webserver on MS

am 18.04.2008 14:14:42 von Captain Paralytic

On 17 Apr, 16:16, "=C1lvaro G. Vicario"
wrote:
> Captain Paralytic escribi=F3:
>
> >>> If you want to run php scripts without a webserver, why not just use
> >>> the command line version. What do you need the browser for?
> >> Interface sugar really. The target users are not the most
> >> sophisticated.
> > If that's the case, why not install a local web server and then it
> > will look just like any other web page.
>
> I've seen several programs that do so, including Google Desktop. It's
> definitively the best solution unless you want to write your own GUI
> using php-gtk [1] or WinBinder [2].
I don't want any of this, I was just responding to the OP.