From | Oran Fry |
Date | Mon, 05 Nov 2007 09:27:13 +1300 |
Subject | Re: [greenstone-users] Get my collection name from a class attribute inPHP 5 progamming on greenstone |
In-Reply-To | (356451-43921-qm-web25809-mail-ukl-yahoo-com) |
Hi Bertrand, Do you see any error messages when you run your php script? Does it still fail when you use a literal collection name? If so it is probably not a problem with PHP objects. import.pl -removeold demo Have you tried using quotes? shell_exec( "import.pl -removeold " . $up->getDocCollectionDest() ); Or creating the command as a string and checking it first? $import_command = "import.pl -removeold " . $up->getDocCollectionDest(); var_dump($import_command); //check that everything looks good shell_exec($import_command); Let us know if you still have trouble. Kind Regards, Oran. Bertrand SODJAHIN wrote: Hello everybody ! |