I'm having what to me is a weird problem, and I'm wondering if you can help me figure out the shamefully obvious mistake I'm making.

I have a javascript app that runs a bunch of php scripts via ajax, all running locally on my Mac, using the built-in apache server. It's been working for years, but on my new Lion Mac, the php scripts no longer return the files they're supposed to be reading. They return the php script itself.

The php scripts work fine if I run them from the command line. They work fine if I run them directly from the command line. They work fine run from Ajax on a Snow Leopard computer. They do not work if Ajax runs them on my Lion Mac.

Things I have tried :

* I have adjusted httpd.conf so that the php module loads, and I have restarted my Mac.
* Apache is definitely running: 127.0.0.1/~myname/ gets the "it works" msg.
* I have tried running the ajax using jquery and using the old-fashioned longhand ways. Same problem. (I have made sure that jquery is in fact loading.)
* I am not using the short code "<?" in my php scripts
* The php file is in the same directory as the html and javascript files. The permissions are the same as the permissions on the Snow Leopard computer where it all works fine

I've tried googling for this up and down, but I'm stumped. Any suggestions? Thanks!