title: javascript post can't find php file in include directory
body: <p>For security, I have gotten in the habit of placing php files in the default php include directory. On Red Hat based distros this is /usr/share/php. All my web page files (html php) find this directory with out problem. It is not even necessary to add a path to the file name.</p>
  
  <p>When writing javascript, such as a form which POST to a php file, the script can not find php files in the php include directory. I'm guessing this is because of cross domain request or same origin policy? I'd rather not place the php files in the web site's directory. Is there a work around which won't destroy the security benefits of placing php files in the default include directory?</p>