Jump to: navigation, search

DSDP/PMC/SettingUpPDT

< DSDP‎ | PMC
Revision as of 16:48, 3 June 2008 by Doug.gaff.windriver.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Intro

  • If all you need to do is render your project pages locally, you technically only need to install XAMPP and then grab the project pages out of CVS.
  • If you'd also like PHP syntax highlighting, browsing, and debugging, you can also install PDT. These instructions cover both.

Setting up PHP Development Tools

  • Install XAMPP and make sure it runs.
  • Download PDT project - I used the full install with all of the prereqs version.
  • Setup an Eclipse workspace as the htdocs folder. I found that it was easier to just use htdocs at the workspace directory. Then no path mapping is needed for PHP debug launches, and you can render eclipse pages by doing to the follow adddress in your browser: http://localhost/dsdp/index.php
  • Install the Zend Debugger
  • I also had to disable the optimizer becauase Apache was reporting a loading order error. I'm sure this can be fixed, but I didn't investigate it.
    •  ; zend_extension_ts = "D:\xampp-1.6.6a\php\zendOptimizer\lib\ZendExtensionManager.dll"
    •  ; zend_extension_manager.optimizer_ts = "D:\xampp-1.6.6a\php\zendOptimizer\lib\Optimizer"
    •  ; zend_optimizer.enable_loader = 0
    •  ; zend_optimizer.optimization_level=15
  • To render Eclipse websites locally, get these directories from CVS. I think the projects directory is optional, but I didn't try trimming it down.
    •  :extssh:your_committer_id@dev.eclipse.org/cvsroot/org.eclipse/dsdp
    •  :extssh:your_committer_id@dev.eclipse.org/cvsroot/org.eclipse/eclipse.org.common
    •  :extssh:your_committer_id@dev.eclipse.org/cvsroot/org.eclipse/images
    •  :extssh:your_committer_id@dev.eclipse.org/cvsroot/org.eclipse/projects
  • Now you can make changes to your php code
    • The PDT project has a PHP editor which is handy for code formatting.
    • You can use your external browser to preview the pages, or just use the browser in Eclipse.
    • If you want to step through the PHP code, you simply create a PHP launch.
  • There is additional information about getting the Zend debugger to work with MySQL statements on the wiki. I haven't configured yet.
  • The foundation does allow some access to their databases, but I didn't investigate it. There's some info here. Note that I'm not sure if remote DB access is allowed or whether you have to deploy your PHP code onto the eclipse servers to test them out. I suspect remote access is disabled.