Bluehost.com Web Hosting $6.95

[Windows Nitwit] Distribute Script for Windows

This is a discussion on [Windows Nitwit] Distribute Script for Windows within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I do not have a Win machine. This works in WINE. I have a very simple command like script that ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-15-2007
DC Hart
 
Posts: n/a
Default [Windows Nitwit] Distribute Script for Windows

I do not have a Win machine. This works in WINE.

I have a very simple command like script that takes an IP address as
the argument and then checks the TQMcube dnsbl for a listing.

I packaged this in a zip along with a default php.ini, php.exe and
php5ts.dll. The presumed instructions are to copy the four files to
c:\windows with a warning not to overwrite anything that already
exists.

The expected result is to be able to type, from a command line;

php.exe dnsbl.php [ip-address]

Will this work?
--
"Black Hole": The economic effect of administering a DNSBL
Eliminate Spam at the Source: http://www.TQMcube.com
Don't Subsidize Criminals: http://boulderpledge.org
Reply With Quote
  #2 (permalink)  
Old 03-19-2007
Ian Hobson
 
Posts: n/a
Default Re: [Windows Nitwit] Distribute Script for Windows

DC Hart wrote:
> I do not have a Win machine. This works in WINE.
>
> I have a very simple command like script that takes an IP address as
> the argument and then checks the TQMcube dnsbl for a listing.
>
> I packaged this in a zip along with a default php.ini, php.exe and
> php5ts.dll. The presumed instructions are to copy the four files to
> c:\windows with a warning not to overwrite anything that already
> exists.
>
> The expected result is to be able to type, from a command line;
>
> php.exe dnsbl.php [ip-address]
>
> Will this work?

No. Sorry to be bearer of bad tidings....

Not all versions of windows are installed into c:\windows or have the
equivalent on their path statement. Win2K using C:\winnt for example.

The traditional way to install a program is to copy it to a new subdir
under %ProgramFiles%. If you really want to install into C:\windows,
then install into %windir%.

If the user has already installed php, your approach will pick up his
php.exe and (probably) his php.ini because of the order on the path.

Opening and closing command prompt windows is simply not done in
windows, except as a techie kludge. Your users will not know how to do it.

Regards

Ian




Reply With Quote
  #3 (permalink)  
Old 03-19-2007
DC Hart
 
Posts: n/a
Default Re: [Windows Nitwit] Distribute Script for Windows

On Sun, 18 Mar 2007 23:47:13 GMT, Ian Hobson
<ian.hobson@ntlworld.com> opined:
> DC Hart wrote:
> > I do not have a Win machine. This works in WINE.
> >
> > I have a very simple command like script that takes an IP address
> > as the argument and then checks the TQMcube dnsbl for a listing.
> >
> > I packaged this in a zip along with a default php.ini, php.exe and
> > php5ts.dll. The presumed instructions are to copy the four files
> > to c:\windows with a warning not to overwrite anything that
> > already exists.
> >

> The traditional way to install a program is to copy it to a new
> subdir under %ProgramFiles%. If you really want to install into
> C:\windows, then install into %windir%.
>
> If the user has already installed php, your approach will pick up
> his php.exe and (probably) his php.ini because of the order on the
> path.
>
> Opening and closing command prompt windows is simply not done in
> windows, except as a techie kludge. Your users will not know how to
> do it.
>

Thanks. I actually have this in C but there are problems
cross-compiling the damned thing. Oh well.
--
"Black Hole": The economic effect of administering a DNSBL
Eliminate Spam at the Source: http://www.TQMcube.com
Don't Subsidize Criminals: http://boulderpledge.org
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0