Microsoft Project MPP File Update in PHP

Aspose.Tasks - Update Project File

To Update Project File using Aspose.Tasks Java for PHP, simply invoke UpdateProjectFile module. Here you can see example code.

PHP Code

$project = new Project('test_tasks.mpp');
$task = $project->getRootTask()->getChildren()->add("Task1");
$cal = new Calendar();
$cal = $cal->getInstance();
$cal->set(2015, 7, 1, 8, 0,0);
$tsk = new Tsk();
$task->set($tsk->START, $cal->getTime());
$cal->set(2015, 7, 1, 17, 0, 0);
$task->set($tsk->FINISH , $cal->getTime());
$saveFileFormat = new SaveFileFormat();
$project->save("AfterLinking.mpp", $saveFileFormat->MPP);
print "Project file updated, please check the output file.";

Download Running Code

Download Update Project File (Aspose.Tasks) from any of the below mentioned social coding sites: