Jump to content

How to make a DOS console application using PHP?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Melinanushka

Melinanushka

    Newbie

  • Members
  • Pip
  • 2 posts
Hi, i've been looking for how to make a Windows console application with graphic interface, coded in PHP (such as Ncurses library does, but Ncurses doesn't work on Windows).

Google hasn't been helpful for now. I found something called PDcurses, wich is sort of a Ncurses for Windows, but I tried to load the library in PHP and it didn't work. Does anyone have a clue on how to do this?

This is a pic that sorta shows what I'm trying to accomplish:
http://batnav.source...rab-ncurses.gif

Cheers.

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
I think you should look into PHP-CLI (Command Line Interface), which is (was?) part of the normal php package. There is also PHP-GTK which supports normal windows interface programs.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
Melinanushka

Melinanushka

    Newbie

  • Members
  • Pip
  • 2 posts
I already looked into those, I even read the entire documentation of both of them. PHP-CLI only creates a text-based interface, while GTK creates apps but only in a Windows desktop enviroment (that is, it creates windows with titles on them and content). I need something similar to Ncurses or Pdcurses (that are libraries that you can use to make console interfaces in C, but don't work with PHP).

#4
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#
ah, there seems to be a ncurses for php, see PHP: Ncurses - Manual
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY
The time and effort you spend trying to get PHP to do this, you could have spent learning C/C# and have it implemented properly.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users