Execute PHP scripts with PHP Executer

Posted on Sunday 20 November 2005 - Popularity: 2%

I had some fun with Platypus this weekend. First thing what I did was a “clone” of Chaos Antidote using a PHP script. I’ll let you download that one later after some bug testing. Anyway, I did a second application with Platypus, PHP Executer. Just drop any normal PHP file over it and it will be executed. [download link]

This is the PHP script I’ve used with Platypus to make this little app:


#!/usr/bin/php

< ?php

$dropfile = $argv[2];

if ($dropfile != "" && is_file($dropfile)){


echo "Executing: ".$dropfile."\n\n\n";
include $dropfile;


} else {


echo "You haven't dropped a file over me!";


}
?>

Really simple, but it works (remove that space in front of the first ‘?’). :-)

Fredi

OOOOO
This product was rated 5 (1 votes) - Vote now!
Bookmark options for this entry: Add to del.icio.us | Add to Furl | Add to Spurl

One Response to “Execute PHP scripts with PHP Executer”

  1. tris Says:

    ok so like what hmm can u tell me how to write these things like what i need to do it and stuff man if u do this for me i will like owe you forever ok so email me






Times when I have posted during the last month



(c) 2005 by Fredi Bach


New: Feed Aggregator


New: Projects Site


New: Weblog






To gain maximum knowledge of the network world, go for some online courses like N10-003 and SY0-101. You will easily be able to play with the wireless cable concept. It will not be hard to install a computer software without any instructions. Not only this, you will also be able to work on a remote pc software. Sounds too good? Bet it is!








Recently Used Apps
- - -
On my G5
- - -
AutomountMaker
- - -
Clutter
- - -
Cyberduck
- - -
Firefox
- - -
Flash 8
- - -
Microsoft Word
- - -
Systemeinstellungen
- - -
TextEdit
- - -
TextMate
- - -
Yummy FTP
- - -
On my MacBook
- - -
Adobe Photoshop CS3
- - -
Firefox
- - -
Google Earth
- - -
iTunes
- - -
Overflow
- - -
QuickTime Player
- - -
Systemeinstellungen
- - -
TextMate
- - -
Vorschau
- - -
Yummy FTP





Give me a 10!

Computers Blog Top Sites





Recent Comments

- - -
startoy
(A list of the best free Ajax web apps):ajaxflakes - Read all about the...
- - -
michelle
(The future of the iPod):can you tell me my code...
- - -
Sohbet
(Everything tagged in TagWorld):Thanks for the tips Dan, a...
- - -
pascal
(Macworld Keynote 2006 ... live updates):i lover mac compuetre
- - -
toothpick_tp
(Am I unhealthy because I run a blog?):Never mind! There are a lot...
- - -
Sohbet
(Everything tagged in TagWorld):I think the idea of writing...
- - -
Mcgill
(Flip4Mac, free download!):QuickTime can play any file format...
- - -
freda
(OS X Code for ya!):Try Mac Cleanse http://www.qweas.com/download/antivirus/internet_tracks_cleanup/mac_cleanse.htm
- - -
Enlargement
(Flip4Mac, free download!):First of all I d'like to...
- - -
pyrethrum
(WordPress plugin "wikicache" preview):Hi,very colorful article in this nice...