Shared publicly  - 
I'm having what to me is a weird php problem, and I'm wondering if you can help me figure out the shamefully obvious mistake I'm making. Sound like fun?

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 do not work if Ajax runs them.

Things I have tried by way of debugging:

- The javascript works fine on my non-Lion computers
- I have adjusted httpd.conf so that the php module loads, and I have restarted my Mac to make double sure that the configuration change has taken.
- Apache is definitely running: 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've tried googling for this up and down, but I'm stumped. Any suggestions? Thanks!
Roger Stegeby's profile photoKevin Marks's profile photo
if you make an info.php file with '<?php phpinfo(); ' in it, what does it show?

You may need to add execute permissions to php.ini
Might be worth asking on Stack Overflow
So what you're saying is that before your script who run Ajax command received the server parsed content of the PHP-file and afterwards you got a unparsed PHP-file?
Add a comment...