Re: [PHP] DOS CLI?

2011-12-08 Thread Richard Quadling
On 2 December 2011 21:00, Matt Neimeyer m...@neimeyer.org wrote:
 Is there (or is there a way to compile) a DOS CLI version of a fairly
 recent version of PHP? I have not been able to find one using the
 powers of Google.

 Not a Windows Command Prompt CLI but an actual CLI version of PHP that
 can be made to run in a real DOS environment?

 I'm sure I could find another scripting language for DOS but to
 prototype this project I'd like to not have to learn a new language as
 well. :)

 Thanks in advance for ANY suggestions.

 Matt

According to http://en.wikipedia.org/wiki/MSDOS#Versions, the last
retail version of DOS would be V6.22, though V7.1 was the last one to
be used as a Windows loader.

But I have no idea what compiler could be used. MSDOS has no built in
network support, so advanced memory management, etc. Not without
having to load additional drivers and the TCP/IP drivers for MS DOS
are not tiny. Sure, you really can (and I have) cram then into upper
memory, but it is on a motherboard by motherboard basis - one size
does not fit all.

All of these things would severely cripple PHP's usage in a true MSDOS
environment.

Add to that, the vast majority of libraries will be talking to the
windows api in some form and that doesn't exist.

You are pretty much stuck with no network services, limited memory and
restricted extensions.

Can you describe your project and to why it MUST run on such an ancient OS?

OOI, Using something like DosBox [1] can help with some development -
a DOS emulator for Windows. I use it to run REALLY old games.

Richard.


[1] http://www.dosbox.com/
-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc : Fantasy Shopper
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea :
fan.sh/6/370

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



Re: [PHP] DOS CLI?

2011-12-08 Thread Matt Neimeyer
On Thu, Dec 8, 2011 at 7:16 AM, Richard Quadling rquadl...@gmail.com wrote:
 On 2 December 2011 21:00, Matt Neimeyer m...@neimeyer.org wrote:
 Is there (or is there a way to compile) a DOS CLI version of a fairly
 recent version of PHP? I have not been able to find one using the
 powers of Google.

 You are pretty much stuck with no network services, limited memory and
 restricted extensions.

 Can you describe your project and to why it MUST run on such an ancient OS?

We have a utility disk that we use for a variety of things where I
work and some of them are DOS based. We use the purely DOS ones rarely
enough these days that people have trouble remembering how to use
them. I wanted to see if it would be possible to write a menu type
front end that would detect what OS it is running under and present
the tools and options that are suitable for that OS.

My thought was to use PHP because it is cross platform (to some
degree) and then in theory the disk could be run under anything that
can run PHP and anything that would run under the current OS can then
be presented to the end user. If there is a better solution than PHP
I'm open to it, but I already know PHP so I figured that would make it
easier.

Basically I need to be able to present a menu to the end user so they
can select the tool they want to run. We currently have tool disks for
DOS, Windows and OSX. If I could combine them into one big disk/usb
key I would be a hero around these parts.

Matt

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



[PHP] DOS CLI?

2011-12-02 Thread Matt Neimeyer
Is there (or is there a way to compile) a DOS CLI version of a fairly
recent version of PHP? I have not been able to find one using the
powers of Google.

Not a Windows Command Prompt CLI but an actual CLI version of PHP that
can be made to run in a real DOS environment?

I'm sure I could find another scripting language for DOS but to
prototype this project I'd like to not have to learn a new language as
well. :)

Thanks in advance for ANY suggestions.

Matt

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