| View previous topic :: View next topic |
Christian Sciberras
Joined: 11 Jan 2008 Posts: 8 Location: Malta
|
Posted: Sat Jan 12, 2008 7:49 pm Post subject: PHP Runner The smallest "server" for serving php l |
|
|
|
To test you PHP scripts, you most probably need a server like Apache or IIS.
You will quickly notice the hassel there is to install them, let alone managing them.
PHP Runner is a very good solution. It uses a different aproach unlike real servers (notice the double quotes). The program works by feeding PHP code through the CLI version of PHP.
You'll be surprised, it's rather fast and very small. Runs in two modes, normal run (preview PHP output) or debug!!
Enough talking here's the link:
http://www.covac-software.com/downloads/app/PHP_Runner_Public.zip
Enjoy!
Christian Sciberras
Edit (forgot usage instructions):
Right-click on any php file -> Click Open With -> Browse and find ParamShell.exe
Next click Ok and Check the box "Always open file...".
And lastly click "OK".
Caution:
*You must have PHP CLI installed.
*Both executables must be in the same directories.
*The system works by using batch files and temporary html files. These are removed automatically. |
|
| Back to top |
|
|
yancho Site Admin
Joined: 13 Nov 2007 Posts: 56 Location: Iklin
|
Posted: Sun Jan 13, 2008 8:36 pm Post subject: |
|
|
|
Does this software allow the user to install it on a mobile device and act as a PHP server?
Any integration with an SQL engine - naming SQLite ?
I didn't yet check it to be honest, bust seems a decent software
( Is it Open Source? ) _________________
 |
|
| Back to top |
|
|
Christian Sciberras
Joined: 11 Jan 2008 Posts: 8 Location: Malta
|
Posted: Mon Jan 14, 2008 8:46 pm Post subject: |
|
|
|
| Quote: | | Does this software allow the user to install it on a mobile device and act as a PHP server? | It is Windows only (please specify what you exactly mean by mobile device).
| Quote: | | Any integration with an SQL engine - naming SQLite ? | Nope, check below why.
| Quote: | | I didn't yet check it to be honest, bust seems a decent software | Thanks! I don't want to force you to try it, but this isn't a normal server. In fact it doesn't serve through ports. But it does serve data. I never installed any database software correctly (MSSql,MySql,SQLLite,uSQL...), so I can't offer support for that (I even don't use PHP with them for that reason). All server software I tried didn't do the work correctly of handling PHP, including Apache (v4 and v5 I think, I long forgot about it) nor IIS. I did this for a quick solution (with extra features, such as the debug one, which is very good).
| Quote: | | ( Is it Open Source? ) | The code isn't available for download, but it's so small I could offer the code for free.
BTW are you from Malta? I'm a lone programmer from Gozo, that's why I ask. For some reason, noone I've ever encoutered is up to my level of coding (not that it's great, just people I encounter aren't much up to programming).
If only I had a friend to help in my projects... Ah well it's an impossible wish. Been like this for years (4 or 5?).
Anway, regards,
Christian[/quote] |
|
| Back to top |
|
|
yancho Site Admin
Joined: 13 Nov 2007 Posts: 56 Location: Iklin
|
Posted: Tue Jan 15, 2008 1:09 am Post subject: |
|
|
|
Yes we are all Maltese here, hence the Usergroup
If you really need a Windows based WAMP (Windows / Apache / Mysql / PHP) there is the wamp server - www.wampserver.com which is extremely easy to install
By mobile device I meant - PDA's, Mobiles etc, which use the Windows CE operating system.
Can you explain better how is the software operating please? Can't seem to much get the picture .. is it using the PHP engine to parse the script which you pass?
Or is it a PHP script that accepts another PHP script so as to parse it? _________________
 |
|
| Back to top |
|
|
Christian Sciberras
Joined: 11 Jan 2008 Posts: 8 Location: Malta
|
Posted: Tue Jan 15, 2008 3:39 pm Post subject: |
|
|
|
Here's a screenshot of the program after double-clicking a php file:
Please notice that there are actually 2 programs, the GUI one (shell) and non-visible server.
The program does alot of things at once, without the user needing to notice. Here's a shortened list:
-GUI exe forms a URL, possibly with GET variables (done through the dialog shown above).
-Runs the server exe with URL as parameter and closes itself.
-The server exe runs php code file from command-line (needs PHP CLI) plus adds some sniffing php code (used for debugging and setting GET variables), which is executed before the php file is.
-Next the resulting data is put in a temp html file and it is previewed with a browser.
-When the browser closes down, the server deletes the temp file and closes down too.
The debugging technique is a bit more difficult to understand, so I'm not giving any particulars about that. Here's a preview of the debugger result:
Kind regards,
Christian |
|
| Back to top |
|
|
yancho Site Admin
Joined: 13 Nov 2007 Posts: 56 Location: Iklin
|
Posted: Tue Jan 15, 2008 5:49 pm Post subject: |
|
|
|
Seems very cool
Sorry but before I thought its a "productive" server thats why I was mislead
Will try it out for sure  _________________
 |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
Powered by phpBB © 2001, 2002 phpBB Group |
|
|