NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Need to pass command line parameters


Joined: 19 Mar 2005
Posts: 7
Reply with quote
I've tried everything I can think of to pass a parameter from the command line to phpdock without any success. Is this even possible?

I need something like this:

phpdock.exe /startup
phpdock.exe /shutdown

Code:
$action = $_GET['action']; // This would get the switch
switch ($action){
 case 'startup':
 //Run this at startup
 break;
 case 'shutdown:
 // Run this at shutdown
 break;
}


Is it possible to pick these up in phpdock?
View user's profileFind all posts by Neil WestlakeSend private message
Need to pass command line parameters
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic