title: PHP (A few questions) OO, refactoring, eclipse
body: <p>I am using PHP in eclipse.  It works ok, I can connect to my remote site, there is colour coding of code elements and some code hints.</p>
  
  <p>I realise this may be too long to answer all questions, if you have a good answer for one part, answering just that is ok.</p>
  
  <p><strong>Firstly General Coding</strong></p>
  
  <ol>
  <li><p>I have found that it is easy to
  loose track of included files and
  their variables.  For example if
  there was a database $cursor it is
  difficult to remember or even know
  that it was declared in the included
  file (this becomes much worse the
  more files you include).  How are
  people dealing with this?</p></li>
  <li><p>How are people documenting their
  code - in particular the required
  GET and POST data?</p></li>
  </ol>
  
  <p><strong>Secondly OO Development:</strong> </p>
  
  <ol start="3">
  <li><p>Should I be going full OO in my
  development.  Currently I have a
  functions library which I can
  include and have separated each
  "task" into a separate file. It is a
  bit nasty but it works.</p></li>
  <li><p>If I go OO how do I structure the
  directories in PHP, java uses
  packages - what about php?</p></li>
  <li><p>How should I name my files, should I
  use all lower case with _ for spaces
  "hello_world.php"?  Should I name
  classes with Uppercase like Java
  "HelloWorld.php"?  Is there a
  different naming convention for
  Classes and regular function files?</p></li>
  </ol>
  
  <p><strong>Thirdly Refactoring</strong></p>
  
  <ol start="4">
  <li><p>I must say this is a real pain.  If
  I change the name of a variable in
  one place I have to go through whole
  document and each file that included
  this file and change the name their
  too.  Of course, errors everywhere
  is what results.  How are people
  dealing with this problem?  In Java
  if you change the name in one place
  it changes everywhere.</p></li>
  <li><p>Are there any plugins to improve php
  refactoring?  I am using the
  official PHP version of Eclipse from
  their website.</p></li>
  </ol>
  
  <p>thanks</p>