View Full Version : include files in a cmd line launched script
09-15-2011, 11:53 PM
I'm launching a script using the cmd function. I have an include line in it but the code is that block isn't executing...do I have to do something special with a cmd line launched script or does it just not support includes?
09-16-2011, 12:20 AM
Nope, nothing special.
Check your path though, DOCUMENT_ROOT cannot be used in a CLI environment. Also, GET, POST, COOKIE, etc also have no value, so you have to use argv instead.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.