Hi,
A helpful person gave me this code fragment and told me to run it within the root directory of a PHP application causing me some grief.
The specific were a touch vague, but I was told to create a file, put this code in and run it. He assumed I knew how to do so, which I think I do.
Here are the instructions I was given:
"- create a file in root directory to run the following -
$updateModulesList = array( ‘Project’ => ‘packages/vtiger/optional/Projects.zip’,
‘Google’ => ‘packages/vtiger/optional/Google.zip’,
‘ExtensionStore’=> ‘packages/vtiger/marketplace/ExtensionStore.zip’);
foreach ($updateModulesList as $moduleName => $packagePath) {
$moduleInstance = Vtiger_Module::getInstance($moduleName);
if($moduleInstance) {
updateVtlibModule($moduleName, $packagepath);
}
}
[Note: I hope you know how to run a standalone .php file which interact to internal module in vtiger from vtigir root directory.]"
So, using cpanel editor within File Manager on my shared hosting server, I create David.php and literally pasted the code. Saved it. My understanding of running it via my browser to go the http://www.domainname.com/vtiger/david.php where domainname is of course the appropriate domain.
When I do, the code simply displays on screen. I then researched, and found that I should be enclosing the code fragment in a <?php ... ?> construct to inform the webserver this is to be interpreted as php; but when I do so via aforementioned editor; it shows an error on the first line which I do not understand.
I have replied to the author, who insists all is ok, and now doesn’t reply to me!
I’m sure this is something simple…
Can someone here help me with the correct content to use? ;D ;D ;D
David