|
|
[Help] Getting PHP to work in Tiger?
|
|
|
|
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status:
Offline
|
|
I've read a couple of the other threads and still nothing seems to be working for me. Also this seems like an OS issue and not a Safari issue so I'm posting it here.
I've edited the httpd.conf file in /etc/httpd/ to remove the # in front of the appropriate lines and restarted Apache a couple of times (as per this PHPmac article), and still Safari won't open .php files. Well, it will open them but it displays them as a text file instead of rendering the page.
Anyone know what I'm doing wrong?
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status:
Offline
|
|
Are you trying to open the file directly, or call it through apache?
try 127.0.0.1/~user/index.php
or whereever your page is.
|
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Apr 2002
Location: Quetzlzacatenango
Status:
Offline
|
|
Ha! That's it! Thank you!
Any idea why it doesn't work to go file:///users/ anymore?
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status:
Offline
|
|
Originally Posted by Ozmodiar
Ha! That's it! Thank you!
Any idea why it doesn't work to go file:///users/ anymore?
It never ought to have worked under a local address, because it wasn't being processed through Apache. If it was an HTML file, it would've worked because HTML is read by the browser, not by the server. It's client side. PHP is a server-side thing.
Oh, maybe you mean why you can't access it. Probably because of a path error. For instance, file:///users/ doesn't exist. It's file://Users/
capitals make a difference.
|
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|