php/mysql help

snicka

Registered
I have php and mysql set up on 10.2.6.

I have placed a php file in the server root with a call to the phpinfo() function and it works fine. I also have phpMyAdmin set up and it too works fine.

My problem is that whenever I try to call any other php pages in either the server root or my username's sites directory, I get this error:

Warning: Failed opening '/Users/myusername/Sites/index.php' for inclusion (include_path='.:/usr/lib/php') in Unknown on line 0

Any help is appreciated.

Also, why can't I access localhost when I am not physically connect to the internet?

Thanks again.
 
Check your permissions.

Your php script needs to have read and execute permissions for the everyone group.
I get that error from time to time if I move a page into the web folders rather than creating it there. If you use the terminal to change permission they should be 755. If you use "get info" make sure the everyone group says "read only".
 
Back
Top